1007 B
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:
- Clone the repository to a location of your liking.
- Create a docker image containing crosstool-ng.
cd support/create-cross-compilerdocker build -t <docker image name> -f create-cross-compiler.Dockerfile . - 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>