A Docker environment for cross-compiling Ada arm-eabi binaries on x86_64
678
A Docker environment for cross-compiling Ada arm-eabi binaries on x86_64.
Choose one:
This image is automatically built and made available on Docker Hub.
docker pull synack/ada-builder:latest
docker build -t ada-builder .
Assuming all of your dependencies are in the Alire index, this command will build the project in your working directory.
docker run --rm -t -i -v $PWD:/build alr build
The easiest way to do this is to write a shell script to be executed in the build environment. The following example shows how to build the pico_examples project with local copies of some of its dependencies.
#!/bin/bash
git clone --depth=1 https://github.com/JeremyGrosser/rp2040_hal
git clone --depth=1 https://github.com/JeremyGrosser/pico_bsp
git clone --depth=1 https://github.com/JeremyGrosser/pico_examples
cd pico_examples
alr -n pin -f --use=../pico_bsp pico_bsp
alr -n pin -f --use=../rp2040_hal rp2040_hal
alr build
docker run --rm -t -i -v $PWD:/build ada-builder ./pico-build.sh
Content type
Image
Digest
Size
896.8 MB
Last updated
over 5 years ago
docker pull synack/ada-builder