q7s build working
This commit is contained in:
parent
622dd603db
commit
9660b1fd38
@ -1,22 +1,32 @@
|
|||||||
FROM ubuntu:latest
|
FROM ubuntu:latest
|
||||||
# FROM alpine:latest
|
# FROM alpine:latest
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y cmake g++
|
RUN apt-get update && apt-get install -y curl cmake g++
|
||||||
|
|
||||||
RUN wget https://eive-cloud.irs.uni-stuttgart.de/index.php/s/aBjpbMAFCEP7prF/download/cortexa9hf-neon-xiphos-linux-gnueabi.tar.gz /usr/rootfs
|
# Q7S root filesystem, required for cross-compilation
|
||||||
RUN wget https://eive-cloud.irs.uni-stuttgart.de/index.php/s/5bDHLF4spqn2zJT/download/gcc-arm-linux-gnueabi.tar.gz usr/tools
|
RUN mkdir -p /usr/rootfs; \
|
||||||
|
curl https://eive-cloud.irs.uni-stuttgart.de/index.php/s/aBjpbMAFCEP7prF/download/cortexa9hf-neon-xiphos-linux-gnueabi.tar.gz \
|
||||||
|
| tar xvz -C /usr/rootfs
|
||||||
|
# Q7S C++ cross-compiler
|
||||||
|
RUN mkdir -p /usr/tools; \
|
||||||
|
curl https://eive-cloud.irs.uni-stuttgart.de/index.php/s/5bDHLF4spqn2zJT/download/gcc-arm-linux-gnueabi.tar.gz usr/tools \
|
||||||
|
| tar xvz -C /usr/tools
|
||||||
|
|
||||||
# RUN apk add cmake make g++
|
# RUN apk add cmake make g++
|
||||||
|
|
||||||
|
# Required for cmake build
|
||||||
|
ENV Q7S_SYSROOT="/usr/rootfs/cortexa9hf-neon-xiphos-linux-gnueabi"
|
||||||
|
ENV PATH=$PATH:"/usr/tools/gcc-arm-linux-gnueabi/bin"
|
||||||
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
rm -rf build-hosted; \
|
rm -rf build-q7s; \
|
||||||
mkdir build-hosted; \
|
mkdir build-q7s; \
|
||||||
cd build-hosted; \
|
cd build-q7s; \
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -DOS_FSFW=linux ..;
|
cmake -DCMAKE_BUILD_TYPE=Release -DOS_FSFW=linux -DTGT_BSP="arm/q7s" ..;
|
||||||
|
|
||||||
# ENTRYPOINT ["cmake", "--build", "build-hosted"]
|
ENTRYPOINT ["cmake", "--build", "build-q7s"]
|
||||||
# CMD ["-j"]
|
CMD ["-j"]
|
||||||
CMD ["bash"]
|
# CMD ["bash"]
|
||||||
|
Loading…
Reference in New Issue
Block a user