Skip to content

crosstool-ng#

Overview#

Build a cross compiler with the ct-ng CLI.

Build and run#

A local path must be mounted inside the container to retrieve the resulting toolchain. Crosstool must be run as non-root user, so the image will not be writable.

With make:

make

With docker commands:

docker build -t crosstool .
docker run --rm -it -v $(pwd):/code -w /code crosstool

Once inside, you will be able to use the ct-ng tool:

# ct-ng list-samples
# ct-ng mips-unknown-elf
# ct-ng menuconfig
# ct-ng build