Toolchain: Difference between revisions

From Wiki :-)
Jump to navigation Jump to search
m Use version variable
Line 11: Line 11:


Create a file named: <code>/home/$USER/.cross_compile</code> that contains:
Create a file named: <code>/home/$USER/.cross_compile</code> that contains:
<code>
  export ARCH=arm
  export ARCH=arm
  export CROSS_COMPILE=/home/georges/tools/toolchain/arm-${version}/bin/arm-none-linux-gnueabi-
  export CROSS_COMPILE=/home/georges/tools/toolchain/arm-${version}/bin/arm-none-linux-gnueabi-
 
</code>
Each time, you need to build a software with this toolchain, you just have to source it.
Each time, you need to build a software with this toolchain, you just have to source it.


=== Use the Android Build System toolchain ===
=== Use the Android Build System toolchain ===
If you are building Android, you can find a toolchain here: <code>prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/</code>.
If you are building Android, you can find a toolchain here: <code>prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/</code>.

Revision as of 21:54, 25 May 2016

Where to get a ARM toolchain?

Download a prebuilt toolchain

You can find http://sourcery.mentor.com/public/gnu_toolchain/arm-none-linux-gnueabi/ more or less recent toolchains.

Download the .tar.bz2 file.

Uncompress it:

# tar -xvjf arm-${version}-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2

Create a file named: /home/$USER/.cross_compile that contains:

export ARCH=arm
export CROSS_COMPILE=/home/georges/tools/toolchain/arm-${version}/bin/arm-none-linux-gnueabi-

Each time, you need to build a software with this toolchain, you just have to source it.

Use the Android Build System toolchain

If you are building Android, you can find a toolchain here: prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/.