Arm linux toolchain: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 31: | Line 31: | ||
* Create symlink | * Create symlink | ||
roland@spirit:~$ ln -s /usr/include/boost /usr/local/arm/4.3.3_gnulinux/arm-none-linux-gnueabi/include/boost | roland@spirit:~$ ln -s /usr/include/boost /usr/local/arm/4.3.3_gnulinux/arm-none-linux-gnueabi/include/boost | ||
== Test compilation == | |||
* export PATH=$PATH:/usr/local/arm/4.3.3_gnulinux/bin/ | |||
* make -j 2 CROSS_COMPILE=arm-none-linux-gnueabi- LDFLAGS="-Wl,-rpath=/lib:/usr/lib -Wl,--dynamic-linker=/lib/ld-linux.so.3" |
Latest revision as of 10:31, 7 October 2009
Where to get toolchain?
http://www.codesourcery.com/ -> PRODUCTS -> SOURCERY G++ -> EDITIONS -> LITE -> ARM
Or try this link http://www.codesourcery.com/sgpp/lite/arm/download.html
When compiling kernel or software for Voipac PXA270 the you use GNU/Linux version of toolchain
Installation on Ubuntu Linux
- Extract the archive to a temporary location
- Create folder arm in /usr/local
- Create a subdir for the toolchain named 4.3.3_gnulinux
- Copy all extracted files to /usr/local/arm/4.3.3_gnulinux
Check that everything looks alright
roland@spirit:~$ ls -l /usr/local/arm/4.3.3_gnulinux/ total 20 drwxr-xr-x 6 roland roland 4096 2009-08-11 17:33 arm-none-linux-gnueabi drwxr-xr-x 2 roland roland 4096 2009-05-21 21:27 bin drwxr-xr-x 3 roland roland 4096 2009-05-21 21:27 lib drwxr-xr-x 4 roland roland 4096 2009-05-21 21:17 libexec drwxr-xr-x 3 roland roland 4096 2009-05-21 19:12 share
- Go to arm-none-linux-gnueabi folder
roland@spirit:~$ cd /usr/local/arm/4.3.3_gnulinux/arm-none-linux-gnueabi/ roland@spirit:/usr/local/arm/4.3.3_gnulinux/arm-none-linux-gnueabi$
- And make a symlink to ../libexec
roland@spirit:/usr/local/arm/4.3.3_gnulinux/arm-none-linux-gnueabi$ ln -s ../libexec libexec
Getting Boost C++ Libraries to work with ARM toolchain
- If not installed already, install libboost-dev
sudo apt-get install libboost-dev
- Create symlink
roland@spirit:~$ ln -s /usr/include/boost /usr/local/arm/4.3.3_gnulinux/arm-none-linux-gnueabi/include/boost
Test compilation
- export PATH=$PATH:/usr/local/arm/4.3.3_gnulinux/bin/
- make -j 2 CROSS_COMPILE=arm-none-linux-gnueabi- LDFLAGS="-Wl,-rpath=/lib:/usr/lib -Wl,--dynamic-linker=/lib/ld-linux.so.3"