This project contains the configuration and scripts used to build the cross-compilers for the Nerves project. While pre-built toolchains exist for various hosts and targets, they don't seem to exist for the combination supported by Nerves. This project fills that gap.
Install the following packages:
sudo apt-get install TBD
Run build.sh and wait.
Install the following packages:
brew update
brew tap homebrew/dupes
brew install gawk binutils xz wget automake
brew install libtool autoconf gnu-sed mpfr gmp gcc
brew install grep -—with-default-names
brew install --universal gettext
brew link --force gettext
Run build.sh and wait.
TBD
You may need to update the ctng configurations if gcc needs to be upgraded
or the C library needs to change. The small defconfigs are stored in the
configs directory and expanded automatically by build.sh to
work-.../build/.config. In that directory, you can run make menuconfig to
change the ctng configuration. When you're done, run make savedefconfig and
copy the result to the configs directory.
Glibc 2.22 has a #define change that breaks the Raspberry Pi userland
(rpi-userland) package. You'll get an error that EAI_AGAIN and some other
defines are missing sue to a #ifdef that changed from __USE_POSIX to
_USE_XOPEN2K. Do NOT select glibc 2.22 until rpi-userland is fixed.
See https://bugs.busybox.net/show_bug.cgi?id=8446 for more details.