diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-10-13 11:23:51 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-10-13 11:23:51 +0000 |
commit | d2fe51a715cf16f94abb23b34b48549b0d63d4e4 (patch) | |
tree | e1f0de8f4d8635afdc1ddfb521720c17cd2ebd7e /config/libc.in | |
parent | f9838b0853e5604a9c61a22134c824f876004800 (diff) | |
download | crosstool-ng-d2fe51a715cf16f94abb23b34b48549b0d63d4e4.tar.gz crosstool-ng-d2fe51a715cf16f94abb23b34b48549b0d63d4e4.tar.bz2 crosstool-ng-d2fe51a715cf16f94abb23b34b48549b0d63d4e4.zip |
Generate the choice menu for C libraries, the same way arch and kernels are generated.
/trunk/kconfig/kconfig.mk | 10 8 2 0 ++++++--
/trunk/scripts/build/libc/glibc.sh | 2 1 1 0 +-
/trunk/config/libc/glibc.in | 22 6 16 0 +++++-------------
/trunk/config/libc/uClibc.in | 7 6 1 0 +++++-
/trunk/config/libc/eglibc.in | 12 11 1 0 +++++++++-
/trunk/config/libc.in | 53 4 49 0 +++-----------------------------------------
6 files changed, 36 insertions(+), 70 deletions(-)
Diffstat (limited to 'config/libc.in')
-rw-r--r-- | config/libc.in | 53 |
1 files changed, 4 insertions, 49 deletions
diff --git a/config/libc.in b/config/libc.in index 27228d13..a3739903 100644 --- a/config/libc.in +++ b/config/libc.in @@ -2,10 +2,7 @@ config LIBC string - default "none" if BARE_METAL - default "glibc" if LIBC_GLIBC - default "eglibc" if LIBC_EGLIBC - default "uClibc" if LIBC_UCLIBC + default "none" if BARE_METAL if ! BARE_METAL @@ -25,37 +22,7 @@ config LIBC_VERSION So if you want to be able to re-build your toolchain later, you will have to save your C library tarball by yourself. -choice - bool - prompt "C-library to use:" - default LIBC_GLIBC - -config LIBC_GLIBC - bool - prompt "glibc" - select LIBC_SUPPORT_NPTL - select LIBC_SUPPORT_LINUXTHREADS - -config LIBC_EGLIBC - bool - prompt "eglibc (EXPERIMENTAL)" - select LIBC_SUPPORT_NPTL - select LIBC_SUPPORT_LINUXTHREADS - depends on EXPERIMENTAL - help - EGLIBC (Embedded GLIBC) is a variant of the standard GNU GLIBC - that is designed to work well on embedded systems. EGLIBC strives - to be source and binary compatible with GLIBC. Its goals include - a reduced footprint, configurable components, and improved - cross-compilation support. EGLIBC also includes some embedded ports - (such as e500/spe) that are normally separate add-ons of GLIBC. - -config LIBC_UCLIBC - bool - prompt "uClibc" - select LIBC_SUPPORT_LINUXTHREADS - -endchoice +source config.gen/libc.in comment "Common C library options" @@ -96,23 +63,11 @@ config THREADS_NONE endchoice -if LIBC_GLIBC -source config/libc/glibc.in -endif - -if LIBC_EGLIBC -source config/libc/eglibc.in -endif - # Hack: mconf does not allow to include a file multiple times, # so include glibc and eglibc common options from here, rather # than from each config files. -if LIBC_GLIBC || LIBC_EGLIBC -source config/libc/glibc-eglibc-common.in -endif - -if LIBC_UCLIBC -source config/libc/uClibc.in +if LIBC_glibc || LIBC_eglibc +source config/libc/glibc-eglibc.in-common endif endmenu |