network-experiment/support/create-cross-compiler
Bart Beumer 9dde8eaf8e Added scripts to build a cross compiler. 2026-04-18 21:27:19 +00:00
..
armv6-rpi-linux Added scripts to build a cross compiler. 2026-04-18 21:27:19 +00:00
scripts Added scripts to build a cross compiler. 2026-04-18 21:27:19 +00:00
README.md Added scripts to build a cross compiler. 2026-04-18 21:27:19 +00:00
create-cross-compiler-armv6-rpi-linux.sh Added scripts to build a cross compiler. 2026-04-18 21:27:19 +00:00
create-cross-compiler.Dockerfile Added scripts to build a cross compiler. 2026-04-18 21:27:19 +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>