This is raspberry pi compiling toolchains (rpi compatible GCC version) in docker images based on dockcross base image and rpi toolchains.
Usage is same as dockcross. Use armv7-8.3.0
as example:
# create helper scripts
docker run --rm wesleych3n/pi-cross:armv7-buster-8.3.0 > ./armv7-8.3.0
# grant execution mode
chmod +x ./armv7-8.3.0
# (Optional) put scripts into $PATH. Such as:
mv ./armv7-8.3.0 ~/.local/bin/
# into container shell
./armv7-8.3.0 bash
# (in container) verify compiler
$CC --version
# stdout:
# arm-linux-gnueabihf-gcc (GCC) 8.3.0
# Copyright (C) 2018 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Same as dockcross
Most of the use case is docker run args (--args|-a
).
If args contain space, quote are required.
For example, mount host path:
./armv7-8.3.0 -a "-v /path/to/mount:/container/path" bash
Toolchains | GCC versions |
---|---|
armv7(Buster 32-bit) | 8.3.0, 9.4.0, 10.3.0 |
arm64(Buster 64-bit) | 8.3.0, 9.4.0, 10.3.0 |