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 12:29] – [Example: Compile a program from Source] preisig | ||
---|---|---|---|
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 | ||
+ | |||
+ | __Power PC:__ | ||
<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 | ||
</ | </ |