mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-19 21:07:54 +00:00
43ca5b4095
Some components have configuration options that can depend on generic options, so they should go below those. uClibc for example: - has its own options (wchar...) - uses the generic options (threads...) - if linuxthreads chosen, offers two impls So we need to be able to split the components options in 2, one part that is above the generic options, and one part that ends up below the generic options.
71 lines
1.6 KiB
Plaintext
71 lines
1.6 KiB
Plaintext
# C library options
|
|
|
|
menu "C-library"
|
|
|
|
config LIBC
|
|
string
|
|
|
|
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.
|
|
|
|
source "config.gen/libc.in"
|
|
|
|
config LIBC_SUPPORT_NPTL
|
|
bool
|
|
default n
|
|
|
|
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 || LIBC_none
|
|
# No C library, no threads!
|
|
|
|
if ! LIBC_none
|
|
|
|
comment "Common C library options"
|
|
|
|
choice
|
|
bool
|
|
prompt "Threading implementation to use:"
|
|
default THREADS_NPTL if LIBC_SUPPORT_NPTL
|
|
default THREADS_LINUXTHREADS if LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
|
|
default THREADS_NONE if ! LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
|
|
|
|
config THREADS_NPTL
|
|
bool
|
|
prompt "nptl"
|
|
depends on LIBC_SUPPORT_NPTL
|
|
|
|
config THREADS_LINUXTHREADS
|
|
bool
|
|
prompt "linuxthreads"
|
|
depends on LIBC_SUPPORT_LINUXTHREADS
|
|
|
|
config THREADS_NONE
|
|
bool
|
|
prompt "none"
|
|
|
|
endchoice
|
|
|
|
source "config.gen/libc.in.2"
|
|
|
|
endif # ! LIBC_none
|
|
|
|
endmenu
|