This project will compile GCC for ARMv7 to provide the ABI that is required for cross-compiling source code for Raspberry Pi and similar single board computers.
$ git clone https://github.com/tavianator/arch-rpi-cross.git
$ cd arch-rpi-cross/
$ git submodule init
$ git submodule update
$ ./install.sh
The build is performed in multiple stages. After each stage is completed you will be prompted to install the resulting package. The script will then proceed automatically to the next stage.
If desired you can add options for makepkg
when invoking the script:
$ ./install.sh -Csf
To do an unattended build for CI or automated build systems, pass the
--unattended
option. Any other options will be ignored.
$ ./install.sh --unattended