network-experiment/support/create-cross-compiler/README.md

1007 B

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>