libc/glibc: use the multi-inclusion capability of the new kconfig

Now that kconfig can include a file multiple times, link the glibc/eglibc
common stuff to two .in.2 files.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
Yann E. MORIN" 2011-05-09 20:15:39 +02:00
parent 82250e56c7
commit f603742014
4 changed files with 3 additions and 11 deletions

View File

@ -118,10 +118,6 @@ 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)
$(SILENT)(echo "# $(2) second part options"; \
echo "# Generated file, do not edit!!!"; \

1
config/libc/eglibc.in.2 Symbolic link
View File

@ -0,0 +1 @@
glibc-eglibc.in-common

View File

@ -1,8 +1,6 @@
# This file contains the common configuration options
# that apply to both glibc and eglibc.
if LIBC_glibc || LIBC_eglibc
# Some architectures require the ports addon. List them one by one here:
# This list must be carefully in sync with the architectures names
# we can find in config/arch/*
@ -18,8 +16,6 @@ config LIBC_glibc_familly
default y
select BINUTILS_FORCE_LD_BFD
comment "glibc/eglibc common options"
config LIBC_GLIBC_EXTRA_CONFIG
string
prompt "extra config"
@ -152,7 +148,7 @@ endif
if KERNEL_linux
choice
choice LIBC_GLIBC_SUPPORTED_KERNEL
bool
prompt "Minimum supported kernel version"
default LIBC_GLIBC_KERNEL_VERSION_AS_HEADERS
@ -247,5 +243,3 @@ config LIBC_GLIBC_MIN_KERNEL
default LIBC_GLIBC_MIN_KERNEL_VERSION if LIBC_GLIBC_KERNEL_VERSION_CHOSEN
endif # KERNEL_linux
endif # LIBC_glibc || LIBC_eglibc

1
config/libc/glibc.in.2 Symbolic link
View File

@ -0,0 +1 @@
glibc-eglibc.in-common