This repo contains a Dockerfile which can be used to build RTEMS toolchain with Docker. The Dockerfile will fetch RTEMS build scripts from github for the build. For further info on the build process itself, see project RTEMS build scripts.
In case you want to build RTEMS toolchain without Docker, just use the scripts located at RTEMS build scripts and follow the instructions found in project's README.md.
To make use of Dockerfile, docker.io must be installed on the system, e.g. for Debian-based distributions, this can be done by
sudo apt-get install docker.io
Next, the image has to be built (enter directory where Dockerfile located first). The following command shows how to run the RTEMS toolchain build for target x86_64
. Change TARGET_ARCH
to the appriate target symbol as documented at RTEMS target architectures.
docker build --build-arg TARGET_ARCH=x86_64 -t rtemsbuild .
Once done, the actual build can be started with:
docker run -t rtemsbuild
Please note that identifier rtemsbuild
is just an example and feel free to change it.
To get rid of unused images, use the following command, but keep in mind that it might affect other existing Docker images on your machine!
docker system prune
To remove the existing build image, use
docker rmi rtemsbuild
Info: You might want to add the current user to group docker
to avoid use of sudo
.