From c0a1da7ebcc48f87c53690a8d943ca606edb14cd Mon Sep 17 00:00:00 2001 From: Paul Melnikov Date: Mon, 15 Apr 2024 13:32:54 +0000 Subject: [PATCH] arm-gcc container --- gcc-arm-none-eabi/Dockerfile | 14 ++++++++++++++ gcc-arm-none-eabi/README.md | 7 +++++++ 2 files changed, 21 insertions(+) create mode 100644 gcc-arm-none-eabi/Dockerfile create mode 100644 gcc-arm-none-eabi/README.md 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`.