eive-obsw/automation/Dockerfile

28 lines
1.1 KiB
Docker
Raw Normal View History

FROM ubuntu:focal
RUN apt-get update
RUN apt-get --yes upgrade
2022-02-17 18:31:21 +01:00
#tzdata is a dependency, won't install otherwise
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get --yes install cmake libgpiod-dev xz-utils nano curl git gcc g++ lcov valgrind libgps-dev
2022-05-06 01:01:56 +02:00
ARG XIPHOS_SDK_NAME=sdk-xiphos-eive-v0.2.0
2022-05-05 20:16:42 +02:00
# Install Xiphos ARK SDK, which also installs Q7S root filesystem, required for cross-compilation.
2022-05-06 01:01:56 +02:00
RUN curl https://buggy.irs.uni-stuttgart.de/eive/tools/${XIPHOS_SDK_NAME}.tar | tar -x && \
2022-05-05 20:16:42 +02:00
cd ${XIPHOS_SDK_NAME} && \
./ark-glibc-x86_64-eive-image-cortexa9hf-neon-toolchain-nodistro.0.sh -y
# Cross compiler
RUN mkdir -p /usr/tools; \
curl https://buggy.irs.uni-stuttgart.de/eive/tools/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf.tar.gz \
| tar -xz -C /usr/tools
2021-07-29 12:17:30 +02:00
2022-05-05 19:48:04 +02:00
RUN git clone https://github.com/catchorg/Catch2.git && \
cd Catch2 && \
git checkout v3.0.0-preview5 && \
cmake -Bbuild -H. -DBUILD_TESTING=OFF && \
cmake --build build/ --target install
2022-05-05 20:16:42 +02:00
ENV ZYNQ_7020_SYSROOT="/opt/xiphos/sdk/ark/sysroots/cortexa9hf-neon-xiphos-linux-gnueabi"
ENV PATH=$PATH:"/usr/tools/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin"