From f6037420148fda52e452637fa261fd295879d5e0 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Mon, 9 May 2011 20:15:39 +0200 Subject: [PATCH] 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" --- config/config.mk | 4 ---- config/libc/eglibc.in.2 | 1 + config/libc/glibc-eglibc.in-common | 8 +------- config/libc/glibc.in.2 | 1 + 4 files changed, 3 insertions(+), 11 deletions(-) create mode 120000 config/libc/eglibc.in.2 create mode 120000 config/libc/glibc.in.2 diff --git a/config/config.mk b/config/config.mk index 8cb63f81..1f9dc663 100644 --- a/config/config.mk +++ b/config/config.mk @@ -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!!!"; \ diff --git a/config/libc/eglibc.in.2 b/config/libc/eglibc.in.2 new file mode 120000 index 00000000..01d33d44 --- /dev/null +++ b/config/libc/eglibc.in.2 @@ -0,0 +1 @@ +glibc-eglibc.in-common \ No newline at end of file diff --git a/config/libc/glibc-eglibc.in-common b/config/libc/glibc-eglibc.in-common index 7b75fcb7..f3310a7f 100644 --- a/config/libc/glibc-eglibc.in-common +++ b/config/libc/glibc-eglibc.in-common @@ -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 diff --git a/config/libc/glibc.in.2 b/config/libc/glibc.in.2 new file mode 120000 index 00000000..01d33d44 --- /dev/null +++ b/config/libc/glibc.in.2 @@ -0,0 +1 @@ +glibc-eglibc.in-common \ No newline at end of file