Skip to content
Dockerfile for Alpine Linux based machine for building bare-metal Cortex-Mx applications
Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile
LICENSE
README.md

README.md

docker-llvm-arm-none-eabi-builder

Dockerfile for Alpine Linux based machine for building bare-metal Cortex-Mx applications with LLVM This Dockerfile was made as a part of the following tutorial: https://mightydevices.com/index.php/2019/09/building-bare-metal-stm32l4-firmware-using-clang-llvm/

How to use this in the build process

  1. Open a terminal (console).
  2. Build the image from the Dockerfile provided: docker build -t llvm-arm-none-eabi .
  3. Start this image in the background (detached mode) with the directory sharing: docker run --name llvm-arm-none-eabi-container --rm -v absolute/path/to/your/project/:/share -d -it llvm-arm-none-eabi sh
  4. Every time you want to build your project then from the console or the IDE issue the following command: docker exec llvm-arm-none-eabi-container sh -c "cd /share && make"
  5. After your done you can stop the container by issuing: docker stop llvm-arm-none-eabi-container
You can’t perform that action at this time.