diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-09-14 18:09:36 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-09-14 18:09:36 +0000 |
commit | 02d2b29cdaefd315977bfad549416d6904f40d04 (patch) | |
tree | 8c54aba158dd98ab12dfbd6d2d485747ed6b255a /config/libc.in | |
parent | 91a8de54e4d0176e5697c4d750aba235686cb2e3 (diff) | |
download | crosstool-ng-02d2b29cdaefd315977bfad549416d6904f40d04.tar.gz crosstool-ng-02d2b29cdaefd315977bfad549416d6904f40d04.tar.bz2 crosstool-ng-02d2b29cdaefd315977bfad549416d6904f40d04.zip |
Enhance setting the minimum kernel version glibc will run against.
Ideally, eglibc should also benefit for that, but the current code does not set it.
/trunk/scripts/build/libc/glibc.sh | 38 33 5 0 +++++++++++++++---
/trunk/config/libc/glibc.in | 4 2 2 0 +-
/trunk/config/libc/uClibc.in | 2 2 0 0 +
/trunk/config/libc/eglibc.in | 4 2 2 0 +-
/trunk/config/libc/glibc-eglibc-common.in | 80 68 12 0 +++++++++++++++++++++++++++++++------
/trunk/config/libc.in | 69 38 31 0 ++++++++++++++++++--------------
6 files changed, 145 insertions(+), 52 deletions(-)
Diffstat (limited to 'config/libc.in')
-rw-r--r-- | config/libc.in | 69 |
1 files changed, 38 insertions, 31 deletions
diff --git a/config/libc.in b/config/libc.in index d5647520..27228d13 100644 --- a/config/libc.in +++ b/config/libc.in @@ -11,6 +11,20 @@ if ! BARE_METAL menu "C-library" +config LIBC_VERSION + string + help + Enter the date of the snapshot you want to use in the form: YYYYMMDD + where YYYY is the 4-digit year, MM the 2-digit month and DD the 2-digit + day in the month. + + Please note: + - glibc has snapshots done every monday, and only the last ten are kept. + - uClibc has daily snapshots, and only the last 30-or-so are kept. + + 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:" @@ -22,10 +36,6 @@ config LIBC_GLIBC select LIBC_SUPPORT_NPTL select LIBC_SUPPORT_LINUXTHREADS -if LIBC_GLIBC -source config/libc/glibc.in -endif - config LIBC_EGLIBC bool prompt "eglibc (EXPERIMENTAL)" @@ -40,23 +50,14 @@ config LIBC_EGLIBC cross-compilation support. EGLIBC also includes some embedded ports (such as e500/spe) that are normally separate add-ons of GLIBC. -if LIBC_EGLIBC -source config/libc/eglibc.in -endif - config LIBC_UCLIBC bool prompt "uClibc" select LIBC_SUPPORT_LINUXTHREADS -if LIBC_UCLIBC -source config/libc/uClibc.in -endif - endchoice -config LIBC_VERSION - string +comment "Common C library options" config LIBC_SUPPORT_NPTL bool @@ -66,6 +67,12 @@ config LIBC_SUPPORT_LINUXTHREADS bool default n +config THREADS + string + default "nptl" if THREADS_NPTL + default "linuxthreads" if THREADS_LINUXTHREADS + default "none" if THREADS_NONE + choice bool prompt "Threading implementation to use:" @@ -89,24 +96,24 @@ config THREADS_NONE endchoice -config THREADS - string - default "nptl" if THREADS_NPTL - default "linuxthreads" if THREADS_LINUXTHREADS - default "none" if THREADS_NONE +if LIBC_GLIBC +source config/libc/glibc.in +endif -config LIBC_VERSION - help - Enter the date of the snapshot you want to use in the form: YYYYMMDD - where YYYY is the 4-digit year, MM the 2-digit month and DD the 2-digit - day in the month. - - Please note: - - glibc has snapshots done every monday, and only the last ten are kept. - - uClibc has daily snapshots, and only the last 30-or-so are kept. - - So if you want to be able to re-build your toolchain later, you will - have to save your C library tarball by yourself. +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 +endif endmenu |