Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| software:linux:toradex:toolchain [2015-06-30 13:18] – angelegt abajric | software:linux:toradex:toolchain [Unbekanntes Datum] (aktuell) – gelöscht - Externe Bearbeitung (Unbekanntes Datum) 127.0.0.1 | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== Toradex Colibri i.MX6 - Toolchain ====== | ||
| - | The toolchain is build with Buildroot. We use GCC 4.7 since 4.8 and 4.9 caused problems. | ||
| - | |||
| - | < | ||
| - | $ cd $WD | ||
| - | $ git clone git:// | ||
| - | $ cd buildroot | ||
| - | </ | ||
| - | |||
| - | |||
| - | Configure Buildroot: | ||
| - | |||
| - | < | ||
| - | $ git checkout -b branchXY 2014.11 | ||
| - | $ make menuconfig | ||
| - | Target options ---> | ||
| - | Target Architecture: | ||
| - | Target Architecture Variant: cortex-A9 | ||
| - | Target ABI: EABIhf | ||
| - | ... | ||
| - | </ | ||
| - | |||
| - | Alternatively we can use the already created configuration: | ||
| - | |||
| - | < | ||
| - | $ git checkout branchXY | ||
| - | $ make toradex_imx6_config | ||
| - | </ | ||
| - | |||
| - | Download all the sources: | ||
| - | |||
| - | < | ||
| - | $ time make source | ||
| - | </ | ||
| - | |||
| - | Build the Toolchain: | ||
| - | |||
| - | < | ||
| - | $ time make | ||
| - | </ | ||
| - | |||
| - | After a successful build, we can configure the environment to use our toolchain: | ||
| - | |||
| - | < | ||
| - | $ export PATH=$WD/ | ||
| - | $ export ARCH=arm | ||
| - | $ export CROSS_COMPILE=arm-buildroot-linux-uclibcgnueabihf- | ||
| - | </ | ||
| - | |||
| - | Test if toolchain works: | ||
| - | |||
| - | < | ||
| - | $ ${CROSS_COMPILE}gcc -v | ||
| - | Using built-in specs. | ||
| - | COLLECT_GCC=arm-buildroot-linux-uclibcgnueabihf-gcc | ||
| - | COLLECT_LTO_WRAPPER=/ | ||
| - | Target: arm-buildroot-linux-uclibcgnueabihf | ||
| - | Configured with: ./configure --prefix=/ | ||
| - | Thread model: posix | ||
| - | gcc version 4.7.4 (Buildroot 2014.11) | ||
| - | </ | ||