Menu

Tree [e0c23b] master GCC-4.8.2-netx.0 /
 History

HTTPS access


File Date Author Commit
 patches 2013-10-21 Michael Trensch Michael Trensch [edc8bc] Unable to compile binutils 2.23.2 if texinfo 5....
 .gitignore 2010-12-08 Michael Trensch Michael Trensch [eacb72] Initial commit (GCC-4.4.5)
 00_download.sh 2013-04-02 Michael Trensch Michael Trensch [698f1c] Update to GCC 4.8.0
 01_extract.sh 2013-10-21 Michael Trensch Michael Trensch [edc8bc] Unable to compile binutils 2.23.2 if texinfo 5....
 02_build_prerequisites.sh 2013-04-02 Michael Trensch Michael Trensch [698f1c] Update to GCC 4.8.0
 03_buildtoolchain.sh 2013-04-02 Michael Trensch Michael Trensch [698f1c] Update to GCC 4.8.0
 04_makepackage.sh 2012-11-05 Michael Trensch Michael Trensch [080284] Makepackage does not use correct archive name a...
 build.sh 2013-12-06 Michael Trensch Michael Trensch [e0c23b] Fixed typo in build script
 config.sh 2013-10-21 Michael Trensch Michael Trensch [233ffe] Update to GCC 4.8.2
 readme.txt 2011-12-02 Michael Trensch Michael Trensch [af6c80] Switch default toolchain to eabi and removed in...
 version_history.txt 2013-10-21 Michael Trensch Michael Trensch [233ffe] Update to GCC 4.8.2

Read Me

netX ARM GCC Toolchain
======================

Overview:
---------
This project evolved when a GCC was needed for Linux and new compiler generations for the netX were evaluated.
It is a generic build script for ARM9 cores with special ARM926EJ-S / ARM966E optimizations as the currently
used Hitex toolchain has.

These scripts should help others to cross compile newer GCC version, but are currently only used internally
for projects on the Hilscher netX chips.

Usage:
======
Just execute the build.sh script to build the GCC toolchain. 

The following commands can be passed:

"all" - Rebuilds from source completely
"arm-elf" - Build deprecated arm-elf toolchain instead of arm-none-eabi

Partial Targets:
"clean"   - cleanup temporary files
"get"     - Download all neccessary files
"extract" - Extract and prepare the downloaded sources
"compile" - Compile extracted sources
"archive" - Build an archive for distribution

Generic Build process and help:
-------------------------------
1.  cd [binutils-build]
2. [binutils-source]/configure --target=arm-elf --prefix=[toolchain-prefix] --enable-interwork --enable-multilib
3. make all install
4. export PATH="$PATH:[toolchain-prefix]/bin"
5. cd [gcc-build]
6. [gcc-source]/configure --target=arm-elf --prefix=[toolchain-prefix] --enable-interwork --enable-multilib --enable-languages="c,c++" --with-newlib --with-headers=[newlib-source]/newlib/libc/include --disable-libstdcxx-pch --disable-libssp
6a(GCC > 4.5) --enable-lto --with-system-zlib
7. make all-gcc install-gcc
8. cd [newlib-build]
9. [newlib-source]/configure --target=arm-elf --prefix=[toolchain-prefix] --enable-interwork --enable-multilib
10. make all install
11. cd [gcc-build]
12. make all install
13. cd [gdb-build]
14a(Linux). [gdb-source]/configure --target=arm-elf --prefix=[toolchain-prefix] --enable-interwork --enable-multilib
14b(MinGw). [gdb-source]/configure --target=arm-elf --prefix=[toolchain-prefix] --enable-interwork --enable-multilib --enable-gdbtk --with-expat=yes
14c(cvs). --disable-newlib --disable-binutils --disable-ld --disable-gold --with-libelf=/home/Guru/crosscompiler/temp --disable-sid --disable-libgloss --disable-rda --disable-gas
15. make all install 			       

Notes:
 MinGW:
  - Compiling gcc may abort with an error in sys/types.h ("typedef char * caddr_t"). For some reason the compiler
    expands this to "typedef char * char *" which does not work. Temporarily removing this line from "sys/types.h"
    fixes this problem. Make sure to insert this line, before distributing this toolchain.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.