eglibc: enable support in the Buildroot toolchain backend
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 30 Jun 2013 19:29:12 +0000 (21:29 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 4 Jul 2013 09:08:27 +0000 (11:08 +0200)
commit8d29893893fe25461abef645bfd38bf2f49c59a4
treebe15b85d95cfecbda3f0ca34736aed8775b8a7dd
parent413ecfa80faf29b55a94b666c97efea0dc8162d9
eglibc: enable support in the Buildroot toolchain backend

Using the newly introduced 'eglibc' package, this commit enables the
option of building a toolchain using the eglibc C library in the
Buildroot toolchain backend.

In details, this commit:

 * Creates a choice to select uClibc or eglibc in the Buildroot
   toolchain backend (in toolchain/toolchain-buildroot/Config.in), and
   removes the fact that the Buildroot toolchain backend forcefully
   enables uClibc (toolchain/Config.in).

 * Creates a BUILDROOT_LIBC variables, which points to the package
   implementing the C library (i.e either 'uclibc' or 'eglibc').

 * Modifies the gcc-final and gcc-intermediate makefiles to use the
   BUILDROOT_LIBC variable instead of hardcoding the use of uclibc.

 * Ensures that TLS support is always enabled when building eglibc.

[Peter: fix commit text to refer to BUILDROOT_LIBC]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/gcc/Config.in.host
package/gcc/gcc-final/gcc-final.mk
package/gcc/gcc-intermediate/gcc-intermediate.mk
package/uclibc/Config.in
toolchain/Config.in
toolchain/toolchain-buildroot.mk
toolchain/toolchain-buildroot/Config.in