Saturday, April 30, 2011

How to install CodeSourcery ARM Cross-Compiler on Mac

ARM EABI Version
RTOS systems or bare metal systems where no operating system is present. These configurations should not be used to build Linux kernels or applications.

The source tarball includes:
binutils-2010.09-51.tar.bz2
cloog-2010.09-51.tar.bz2
coreutils-2010.09-51.tar.bz2
expat-2010.09-51.tar.bz2
gcc-2010.09-51.tar.bz2
gdb-2010.09-51.tar.bz2
gmp-2010.09-51.tar.bz2
libelf-2010.09-51.tar.bz2
libiconv-2010.09-51.tar.bz2
make-2010.09-51.tar.bz2
mpc-2010.09-51.tar.bz2
mpfr-2010.09-51.tar.bz2
newlib-2010.09-51.tar.bz2
ppl-2010.09-51.tar.bz2
zlib-2010.09-51.tar.bz2

How to rebuild the toolchain from CodeSourcery released source tarball
$ git clone https://github.com/jsnyder/arm-eabi-toolchain.git
$ cd arm-eabi-toolchain
$ sudo make install-deps
$ sudo make install-cross

$ export PATH=$HOME/arm-cs-tools/bin:$PATH

ARM GNU/Linux Version
Systems running full Linux, i.e., Linux on CPUs with an MMU. Use Sourcery G++ to build both the Linux kernel and applications.

The source tarball includes:
The difference between these 2 versions are the C library and, of course, the Linux kernel source code.
glibc-2010.09-50.tar.bz2
glibc_localedef-2010.09-50.tar.bz2
glibc_ports-2010.09-50.tar.bz2

Reference:
1. https://github.com/jsnyder/arm-eabi-toolchain
2.

Friday, April 29, 2011

Mac Developer Centor

Apple Mac Dev Center

Download GCC Compiler Xcode 3.2.6 and iOS SDK 4.3


Install GIT
http://code.google.com/p/git-osx-installer/

Or using macports
$ sudo port selfupdate
$ sudo port install git-core +svn

For cross-compiler, the "--build" and "--host" are change to x86_64-apple-darwin10.0
sh-3.2# echo $MACHTYPE
x86_64-apple-darwin10.0