-
Notifications
You must be signed in to change notification settings - Fork 818
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xrt/zocl split for faster build times
* xrt is now build as a stage3 package in the board agnostic image, config can be found in sdbuild/ubuntu/jammy/aarch64/config * xrt_zocl is a new package that builds the zocl kernel module using the petalinux project specific to the board -- it should be included in the .spec file of each board folder
- Loading branch information
Showing
4 changed files
with
11 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,33 @@ | ||
# Set up some environment variables as /etc/environment | ||
# isn't sourced in chroot | ||
|
||
set -e | ||
set -x | ||
|
||
|
||
# build and install | ||
cd /root | ||
mkdir xrt-git | ||
git clone https://github.com/Xilinx/XRT xrt-git | ||
cd xrt-git | ||
git checkout -b temp tags/202020.2.8.726 | ||
git checkout -b temp tags/202210.2.13.466 | ||
|
||
# An incorrect format specifier causes a crash on armhf | ||
sed -i 's:%ld bytes):%lld bytes):' src/runtime_src/tools/xclbinutil/XclBinClass.cxx | ||
|
||
|
||
cd build | ||
chmod 755 build.sh | ||
XRT_NATIVE_BUILD=no ./build.sh -dbg | ||
XRT_NATIVE_BUILD=no ./build.sh -dbg -noctest | ||
cd Debug | ||
make install | ||
|
||
cd .. | ||
# Build and install xclbinutil | ||
cd ../../ | ||
mkdir xclbinutil_build | ||
sed -i 's/xdp_hw_emu_device_offload_plugin xdp_core xrt_coreutil xrt_hwemu/xdp_core xrt_coreutil/g' ./src/runtime_src/xdp/CMakeLists.txt | ||
cd xclbinutil_build/ | ||
cmake ../../src/ | ||
cmake ../src/ | ||
make install -C runtime_src/tools/xclbinutil | ||
mv /opt/xilinx/xrt/bin/unwrapped/xclbinutil /usr/local/bin/xclbinutil | ||
rm -rf /opt/xilinx/xrt | ||
|
||
# put platform name for xrt app | ||
echo ${PYNQ_BOARD} > /etc/xocl.txt | ||
|
||
# cleanup | ||
cd /root | ||
rm -rf xrt-git | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# put platform name for xrt app | ||
echo ${PYNQ_BOARD} > /etc/xocl.txt |
File renamed without changes.