eglibc: Enable kconfig for option management

(From OE-Core rev: 13e2ccf6f4e71d674583894750f70865ebe5e4d1)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Khem Raj
2012-09-06 15:19:18 -07:00
committed by Richard Purdie
parent 607a3d57c5
commit 3cfc70fc27
4 changed files with 9 additions and 3 deletions

View File

@@ -19,6 +19,7 @@ do_configure () {
--prefix=/usr \
--without-cvs --disable-sanity-checks \
--with-headers=${STAGING_DIR_TARGET}${includedir} \
--with-kconfig=${STAGING_BINDIR_NATIVE} \
--enable-hacker-mode --enable-addons
}

View File

@@ -2,10 +2,10 @@ def eglibc_cfg(feature, features, tokens, cnf):
if type(tokens) == type(""):
tokens = [tokens]
if type(features) == type([]) and feature in features:
cnf.extend([token + ' = y' for token in tokens])
cnf.extend([token + '=y' for token in tokens])
else:
for token in tokens:
cnf.extend([token + ' = n'])
cnf.extend([token + '=n'])
if token == 'OPTION_EGLIBC_NSSWITCH':
cnf.extend(["OPTION_EGLIBC_NSSWITCH_FIXED_CONFIG = ${S}/nss/nsswitch.conf"])
cnf.extend(["OPTION_EGLIBC_NSSWITCH_FIXED_FUNCTIONS = ${S}/nss/fixed-nsswitch.functions"])

View File

@@ -56,6 +56,10 @@ do_configure_prepend() {
echo '${OE_FEATURES}' > ${B}/option-groups.config
}
do_configure_append() {
oe_runmake config
}
GLIBC_ADDONS ?= "ports,nptl,libidn"
SDK_GLIBC_ADDONS ?= "ports,nptl,libidn"
GLIBC_ADDONS_virtclass-nativesdk = "${SDK_GLIBC_ADDONS}"

View File

@@ -2,7 +2,7 @@ require eglibc.inc
SRCREV = "20393"
DEPENDS += "gperf-native"
DEPENDS += "gperf-native kconfig-frontends-native"
PR = "r8"
PR_append = "+svnr${SRCPV}"
@@ -79,6 +79,7 @@ EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \
--with-headers=${STAGING_INCDIR} \
--without-selinux \
--enable-obsolete-rpc \
--with-kconfig=${STAGING_BINDIR_NATIVE} \
${GLIBC_EXTRA_OECONF}"
EXTRA_OECONF += "${@get_libc_fpu_setting(bb, d)}"