2021-07-29 12:06:14 +02:00
|
|
|
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
|
2022-02-18 11:39:03 +01:00
|
|
|
RUN apt-get --yes install cmake libgpiod-dev xz-utils nano curl git gcc g++ lcov valgrind libgps-dev
|
2021-07-29 12:06:14 +02:00
|
|
|
|
|
|
|
# Q7S root filesystem, required for cross-compilation.
|
|
|
|
RUN mkdir -p /usr/rootfs; \
|
2022-04-19 18:30:21 +02:00
|
|
|
curl https://buggy.irs.uni-stuttgart.de/eive/tools/eive-compile-rootfs-v0.1.0-7-gae69838.tar.xz \
|
2022-04-19 18:18:07 +02:00
|
|
|
| tar -xJ -C /usr/rootfs
|
2021-07-29 12:06:14 +02:00
|
|
|
|
|
|
|
# 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-04-19 18:18:07 +02:00
|
|
|
ENV ZYNQ_7020_SYSROOT="/usr/rootfs/eive-compile-rootfs"
|
2022-03-28 13:30:26 +02:00
|
|
|
ENV PATH=$PATH:"/usr/tools/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin"
|