Add support for uclibc NPTL toolchain.
authorKhem Raj <raj.khem@gmail.com>
Wed, 28 Jul 2010 07:11:37 +0000 (00:11 -0700)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 29 Jul 2010 14:57:00 +0000 (16:57 +0200)
commitcfbf8abc33d86a0cf5c1bb3e0817a22009b7f301
tree96678f8624b25204f8720a5bf1efc4340e1dfdc9
parent7bfc9e464cf448f83b06953f1b26a150539b3960
Add support for uclibc NPTL toolchain.

This patch modifies current toolchain build sequence so that
NPTL enabled toolchain can be built. The new sequence works
well with linuxthreads as well.

It introduces a new pass for gcc cross compilation. The new
sequence is binutils->gcc-initial->linux-headers -> uclibc-configured
(some cheats to generate phony shared libc.so and libm.o)
-> gcc-intermediate(with shared lib support) -> uclibc -> gcc-final

I also added a new sample config arm_nptl_toolchain_defconfig which
builds the toolchain and busybox.

I have only tried it on arm. However it should work for other
architectures which support NPTL on uclibc e.g. mips, sh, x86, ppc, x86_64

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
configs/arm_nptl_toolchain_defconfig [new file with mode: 0644]
toolchain/binutils/binutils.mk
toolchain/gcc/Config.in
toolchain/gcc/gcc-uclibc-4.x.mk
toolchain/uClibc/uClibc-snapshot.config
toolchain/uClibc/uclibc.mk