Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
development:toolchain [2018/01/10 12:18] – [Toolchain] preisigdevelopment:toolchain [2018/01/10 12:29] – [Getting Started] 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 toolchain from above on your Linux x86 PC
 <code bash> <code bash>
 wget ftp://share.netmodule.com/router/public/toolchain/netbox-ppc/toolchain-ppc-4.4.5-x86_64.tar.bz2 wget ftp://share.netmodule.com/router/public/toolchain/netbox-ppc/toolchain-ppc-4.4.5-x86_64.tar.bz2
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
 +</code>
 +
 +__ARM:__
 +<code bash>
 +arm-openwrt-linux-gcc -Wall hello.c -o hello
 </code> </code>
  
Line 59: Line 66:
 This example shows you how to compile a program from source. The program in this example is [[https://stedolan.github.io/jq/download/ | jq]] This example shows you how to compile a program from source. The program in this example is [[https://stedolan.github.io/jq/download/ | jq]]
  
 +__PowerPC__
 <code bash> <code bash>
 wget https://github.com/stedolan/jq/releases/download/jq-1.5/jq-1.5.tar.gz wget https://github.com/stedolan/jq/releases/download/jq-1.5/jq-1.5.tar.gz
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
 +</code>
 +
 +__ARM__
 +<code bash>
 +wget https://github.com/stedolan/jq/releases/download/jq-1.5/jq-1.5.tar.gz
 +tar -xzf jq-1.5.tar.gz
 +cd jq-1.5
 +CC=arm-openwrt-linux-gcc ./configure --host=arm --disable-maintainer-mode
 make make
 </code> </code>