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:
Yann E. MORIN" 2009-01-31 11:29:50 +00:00
parent 2aaa5b8b68
commit 9f53d6a4b8
3 changed files with 8 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -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