From 3034116b3d9a84b57f800004c70f0a84ee305b2e Mon Sep 17 00:00:00 2001 From: Mario Ruiz <11815099+mariodruiz@users.noreply.github.com> Date: Wed, 13 Nov 2024 14:19:30 +0000 Subject: [PATCH] Tie Linux installer to XRT 2.18 (#82) --- scripts/linux/Dockerfile | 4 +++- scripts/linux/xdna-driver-builder/Dockerfile | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/linux/Dockerfile b/scripts/linux/Dockerfile index cece2d1..e3de3be 100644 --- a/scripts/linux/Dockerfile +++ b/scripts/linux/Dockerfile @@ -38,7 +38,9 @@ ENV LANGUAGE en_US:en ENV LC_ALL en_US.UTF-8 RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC sudo -E apt-get install -y tzdata -RUN git clone https://github.com/amd/xdna-driver.git --recursive --depth=1 +RUN git clone https://github.com/amd/xdna-driver.git --recursive +RUN cd xdna-driver/ && git checkout f60608b +RUN cd xdna-driver/ && git submodule update --recursive RUN sudo chmod +x /home/riallto/xdna-driver/xrt/src/runtime_src/tools/scripts/xrtdeps.sh RUN sudo /home/riallto/xdna-driver/xrt/src/runtime_src/tools/scripts/xrtdeps.sh -docker diff --git a/scripts/linux/xdna-driver-builder/Dockerfile b/scripts/linux/xdna-driver-builder/Dockerfile index bf955a3..38dd4b2 100644 --- a/scripts/linux/xdna-driver-builder/Dockerfile +++ b/scripts/linux/xdna-driver-builder/Dockerfile @@ -34,7 +34,8 @@ RUN dpkg -i /root/$KERNEL_IMAGE RUN git config --global url."https://github.com/".insteadOf "git@github.com:" RUN cd /root && git clone https://github.com/amd/xdna-driver.git --recursive -RUN cd /root/xdna-driver && git checkout main +RUN cd /root/xdna-driver && git checkout f60608b +RUN cd /root/xdna-driver && git submodule update --recursive RUN apt-get install -y cmake jq pkg-config wget libdrm-dev RUN apt-get install -y python3-pip @@ -46,7 +47,7 @@ RUN mkdir /root/debs RUN cd /root/xdna-driver/build && ./build.sh -release RUN cd /root/xdna-driver/build && ./build.sh -package -RUN cd /root/xdna-driver/xrt/build && ./build.sh -noert -noalveo +RUN cd /root/xdna-driver/xrt/build && ./build.sh -noert RUN cp /root/xdna-driver/build/Release/xrt_plugin*.deb /root/debs/ RUN cp /root/xdna-driver/xrt/build/Release/xrt*xrt.deb /root/debs/