diff --git a/gcc-arm-none-eabi/Dockerfile b/gcc-arm-none-eabi/Dockerfile new file mode 100644 index 0000000..91b1e19 --- /dev/null +++ b/gcc-arm-none-eabi/Dockerfile @@ -0,0 +1,14 @@ +FROM ubuntu:22.04 + +RUN mkdir /workdir && \ + apt-get update && \ + apt-get install -y --no-install-recommends --no-install-suggests \ + make xz-utils wget git python3 python3-pip + +RUN wget -O archive.tar.xz "https://developer.arm.com/-/media/Files/downloads/gnu/12.2.rel1/binrel/arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi.tar.xz" && \ + tar xf archive.tar.xz -C /opt && \ + rm archive.tar.xz + +ENV PATH=/opt/arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi/bin:$PATH + +WORKDIR /workdir diff --git a/gcc-arm-none-eabi/README.md b/gcc-arm-none-eabi/README.md new file mode 100644 index 0000000..4dd8d08 --- /dev/null +++ b/gcc-arm-none-eabi/README.md @@ -0,0 +1,7 @@ +An Ubuntu image with ARM gcc compiler. + +Version of GCC is [12.2.rel1](https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads/12-2-rel1). +The container is specifically created for building of Blackmagic Debug probe firmware, which requires this particular version of GCC. +Also for this reason, `python3` and `pip` are included, so that `meson` can be installed manually if needed. + +The compiler is in `/opt/` (and also in `$PATH`), workdir is `/workdir`.