Skip to content

Commit

Permalink
Tie Linux installer to XRT 2.18 (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariodruiz authored Nov 13, 2024
1 parent 06309b2 commit 3034116
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion scripts/linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 3 additions & 2 deletions scripts/linux/xdna-driver-builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ RUN dpkg -i /root/$KERNEL_IMAGE

RUN git config --global url."https://github.com/".insteadOf "[email protected]:"
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
Expand All @@ -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/

0 comments on commit 3034116

Please sign in to comment.