This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
development:toolchain [2018/01/10 12:18] – [Toolchain] preisig | development:toolchain [2018/01/10 13:00] – [Toolchain] preisig | ||
---|---|---|---|
Line 11: | Line 11: | ||
The following Cross-Compilation toolchains are available: | The following Cross-Compilation toolchains are available: | ||
- | * [[ftp:// | + | * [[ftp:// |
- | * [[ftp:// | + | * [[ftp:// |
- | * [[ftp:// | + | * [[ftp:// |
Line 21: | Line 21: | ||
==== Getting Started ==== | ==== Getting Started ==== | ||
- | 1. Download and install the toolchain on your Linux x86 PC | + | 1. Download and install the corresponding |
<code bash> | <code bash> | ||
wget ftp:// | wget ftp:// | ||
Line 50: | Line 50: | ||
3. Compile it | 3. Compile it | ||
+ | |||
+ | __PowerPC: | ||
<code bash> | <code bash> | ||
powerpc-openwrt-linux-gcc -Wall hello.c -o hello | powerpc-openwrt-linux-gcc -Wall hello.c -o hello | ||
+ | </ | ||
+ | |||
+ | __ARM:__ | ||
+ | <code bash> | ||
+ | arm-openwrt-linux-gcc -Wall hello.c -o hello | ||
</ | </ | ||
Line 59: | Line 66: | ||
This example shows you how to compile a program from source. The program in this example is [[https:// | This example shows you how to compile a program from source. The program in this example is [[https:// | ||
+ | __PowerPC__ | ||
<code bash> | <code bash> | ||
wget https:// | wget https:// | ||
Line 64: | Line 72: | ||
cd jq-1.5 | cd jq-1.5 | ||
CC=powerpc-openwrt-linux-gcc ./configure --host=powerpc --disable-maintainer-mode | CC=powerpc-openwrt-linux-gcc ./configure --host=powerpc --disable-maintainer-mode | ||
+ | make | ||
+ | </ | ||
+ | |||
+ | __ARM__ | ||
+ | <code bash> | ||
+ | wget https:// | ||
+ | tar -xzf jq-1.5.tar.gz | ||
+ | cd jq-1.5 | ||
+ | CC=arm-openwrt-linux-gcc ./configure --host=arm --disable-maintainer-mode | ||
make | make | ||
</ | </ |