Created
May 12, 2016 02:33
-
-
Save h0tw1r3/19e48ae3021122c2a2ebe691d920a9ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git clone -b 1.22 https://github.com/crosstool-ng/crosstool-ng.git | |
$ cd crosstool-ng | |
$ ./bootstrap | |
$ ./configure --prefix=/usr/local | |
$ make | |
$ sudo make install | |
$ cd .. | |
$ mkdir ctng | |
$ cd rpi1 | |
$ ct-ng menuconfig | |
- Paths and misc options | |
- Check "Try features marked as EXPERIMENTAL" | |
- Set "Prefix directory" to "/opt/cross/x-tools/${CT_TARGET}" | |
- Target options | |
- Set "Target Architecture" to "arm" | |
- Set "Endianness" to "Little endian" | |
- Set "Bitness" to "32-bit" | |
- Set "Architecture level" to "armv6zk" | |
- Set "Emit assembly for CPU" to "arm1176jzf-s" | |
- Set "Use specific FPU" to "vfp" | |
- Set "Floating point" to "hardware (FPU)" | |
- Set "Default instruction set mode" to "arm" | |
- Check "Use EABI" | |
- Toolchain options | |
- Set "Tuple's vendor string" to "rpi" | |
- Operating System | |
- Set "Target OS" to "linux" | |
- Binary utilities | |
- Set "Binary format" to "ELF" | |
- Set "binutils version" to "2.25.1" | |
- C-library | |
- Set "C library" to "glibc" | |
- Set "glibc version" to "2.19" | |
- C compiler | |
- Check "Show Linaro versions" | |
- Set "gcc version" to "linaro-4.9-2015.06" | |
- Check "C++" under "Additional supported languages" | |
- Set "gcc extra config" to "--with-float=hard" | |
- Check "Link libstdc++ statically into the gcc binary" | |
- Companion libraries | |
- Set "ISL version" to "0.14" | |
Save the configuration and build. | |
$ ct-ng build | |
$ export CCPREFIX="/usr/local/x-tools/arm-rpi-linux-gnueabihf/bin/arm-rpi-linux-gnueabihf-" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment