summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-01-31 11:29:50 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-01-31 11:29:50 (GMT)
commit9f53d6a4b8a1ca76ad3d28b5c2c59b543b449b84 (patch)
tree5b4aa4504d3288c14658da9a29f8daa4ca51e486 /config
parent2aaa5b8b687d47aea62dd90bf9ff7b2c91af5224 (diff)
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(-)
Diffstat (limited to 'config')
-rw-r--r--config/config.mk4
-rw-r--r--config/libc.in7
-rw-r--r--config/libc/glibc-eglibc.in-common4
3 files changed, 8 insertions, 7 deletions
diff --git a/config/config.mk b/config/config.mk
index 5997056..f3b6715 100644
--- a/config/config.mk
+++ b/config/config.mk
@@ -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
diff --git a/config/libc.in b/config/libc.in
index a373990..394db6f 100644
--- a/config/libc.in
+++ b/config/libc.in
@@ -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
diff --git a/config/libc/glibc-eglibc.in-common b/config/libc/glibc-eglibc.in-common
index 279f2c6..863f0fe 100644
--- a/config/libc/glibc-eglibc.in-common
+++ b/config/libc/glibc-eglibc.in-common
@@ -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