-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (17 loc) · 1.23 KB
/
Dockerfile
File metadata and controls
19 lines (17 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM 192.168.10.102:5000/unknown/nw-crosstool:a032942e622f
ARG CMAKE_RELEASE_VERSION=3.25.3
ENV CMAKE_RELEASE_VERSION=$CMAKE_RELEASE_VERSION
RUN apt-get build-dep qtbase5-dev -y && \
apt-get install e2tools -y && \
apt-get clean && \
ln -s /usr/bin/python3 /usr/bin/python && \
cd /opt && \
wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_RELEASE_VERSION}/cmake-${CMAKE_RELEASE_VERSION}-linux-x86_64.tar.gz && \
tar -xf cmake-${CMAKE_RELEASE_VERSION}-linux-x86_64.tar.gz && \
rm cmake-${CMAKE_RELEASE_VERSION}-linux-x86_64.tar.gz && \
ln -s /opt/cmake-${CMAKE_RELEASE_VERSION}-linux-x86_64/bin/cmake /usr/bin/cmake
RUN ln -s /x-tools/armv5-unknown-linux-gnueabihf/bin/armv5-unknown-linux-gnueabihf-ld /usr/bin/arm-linux-gnueabihf-ld && \
ln -s /x-tools/armv5-unknown-linux-gnueabihf/bin/armv5-unknown-linux-gnueabihf-ld.bfd /usr/bin/arm-linux-gnueabihf-ld.bfd && \
ln -s /x-tools/armv5-unknown-linux-gnueabihf/bin/armv5-unknown-linux-gnueabihf-gcc /usr/bin/arm-linux-gnueabihf-gcc && \
ln -s /x-tools/armv5-unknown-linux-gnueabihf/bin/armv5-unknown-linux-gnueabihf-strip /usr/bin/arm-linux-gnueabihf-strip
RUN apt-get install tclsh patchelf bc vim libncurses-dev bison flex libssl-dev -y && apt-get clean