mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-19 03:06:42 +00:00
Add infrastructure to use common config files for generated config files.
/trunk/config/libc/glibc-eglibc.in-common | 4 4 0 0 ++++ /trunk/config/config.mk | 4 4 0 0 ++++ /trunk/config/libc.in | 7 0 7 0 ------- 3 files changed, 8 insertions(+), 7 deletions(-)
This commit is contained in:
parent
2aaa5b8b68
commit
9f53d6a4b8
@ -107,6 +107,10 @@ define build_gen_choice_in
|
||||
echo "source $${file}"; \
|
||||
echo "endif"; \
|
||||
done; \
|
||||
echo ""; \
|
||||
for file in $(wildcard $(4)/*.in-common); do \
|
||||
echo "source $${file}"; \
|
||||
done; \
|
||||
) >$(1)
|
||||
endef
|
||||
|
||||
|
@ -63,13 +63,6 @@ config THREADS_NONE
|
||||
|
||||
endchoice
|
||||
|
||||
# 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.in-common
|
||||
endif
|
||||
|
||||
endmenu
|
||||
|
||||
endif # ! BARE_METAL
|
||||
|
@ -1,6 +1,8 @@
|
||||
# This file contains the common configuration options
|
||||
# that apply to both glibc and eglibc.
|
||||
|
||||
if LIBC_glibc || LIBC_eglibc
|
||||
|
||||
comment "glibc/eglibc common options"
|
||||
|
||||
config LIBC_GLIBC_EXTRA_CONFIG
|
||||
@ -152,3 +154,5 @@ config LIBC_GLIBC_MIN_KERNEL
|
||||
default LIBC_GLIBC_MIN_KERNEL_VERSION if LIBC_GLIBC_USE_HEADERS_MIN_KERNEL
|
||||
|
||||
endif # KERNEL_linux
|
||||
|
||||
endif # LIBC_glibc || LIBC_eglibc
|
||||
|
Loading…
Reference in New Issue
Block a user