|
|
||
|---|---|---|
| .. | ||
| armv6-rpi-linux | ||
| scripts | ||
| README.md | ||
| create-cross-compiler-armv6-rpi-linux.sh | ||
| create-cross-compiler.Dockerfile | ||
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:
- 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>