network-experiment/support/create-cross-compiler
Bart Beumer f25ff99f4d Added mechanisms for building a cross-compiler, that can build for the raspberry pi 0 W. 2026-04-04 21:09:25 +00:00
..
armv6-rpi-linux Added mechanisms for building a cross-compiler, that can build for the raspberry pi 0 W. 2026-04-04 21:09:25 +00:00
scripts Added mechanisms for building a cross-compiler, that can build for the raspberry pi 0 W. 2026-04-04 21:09:25 +00:00
README.md Added mechanisms for building a cross-compiler, that can build for the raspberry pi 0 W. 2026-04-04 21:09:25 +00:00
create-cross-compiler-armv6-rpi-linux.sh Added mechanisms for building a cross-compiler, that can build for the raspberry pi 0 W. 2026-04-04 21:09:25 +00:00
create-cross-compiler.Dockerfile Added mechanisms for building a cross-compiler, that can build for the raspberry pi 0 W. 2026-04-04 21:09:25 +00:00

README.md

Creating cross-compilers

This folder contains configuration, scripts and docker images that are used for creating cross-compilers. The intended use case is to build C and C++ software for various platforms. Docker is being used to provide a common environment and isolating the build process.

How to use:

  1. Clone the repository to a location of your liking.
  2. Create a docker image containing crosstool-ng. cd support/create-cross-compiler docker build -t <docker image name> -f create-cross-compiler.Dockerfile .
  3. Use the docker image to create the cross comiler.
    • Configuration needs to be provided. (environment variable: CROSS_TARGET_INFO_PATH).
    • Destination location needs to be provided (environment variable: CROSS_TARGET_DST_PATH).
    • Use docker volume functionality to link directories to the docker container. docker run -ti -e CROSS_TARGET_INFO_PATH=/config -e CROSS_TARGET_DST_PATH=/dst -v ./armv6-rpi-linux:/config -v ./dst:/dst <docker image name>