Skip to content

Commit

Permalink
arm-gcc container
Browse files Browse the repository at this point in the history
  • Loading branch information
positron96 committed Apr 15, 2024
1 parent 8edf4b0 commit c0a1da7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions gcc-arm-none-eabi/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions gcc-arm-none-eabi/README.md
Original file line number Diff line number Diff line change
@@ -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`.

0 comments on commit c0a1da7

Please sign in to comment.