]> code.ossystems Code Review - openembedded-core.git/commitdiff
eglibc: Enable kconfig for option management
authorKhem Raj <raj.khem@gmail.com>
Thu, 6 Sep 2012 22:19:18 +0000 (15:19 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 10 Sep 2012 11:07:34 +0000 (12:07 +0100)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-core/eglibc/eglibc-initial.inc
meta/recipes-core/eglibc/eglibc-options.inc
meta/recipes-core/eglibc/eglibc.inc
meta/recipes-core/eglibc/eglibc_2.16.bb

index 3b99ac2854e61618c914f10339ff66b46196b1c7..f44db0c00ed793ecea8f2c03436451393816c411 100644 (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
 }
 
index 6009278577a207044c7fbf6530be618d46c8da1b..8a8b364a6e1168dc4e7462b11bf90b632a8869b0 100644 (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"])
index 02f3c7a95947799a68b8e85abd8e1c90bd4fff07..29e303fafd55f68aeefbcbd0cb6db51e54d683f9 100644 (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}"
index 5a10387c1cf206a2dcb1569a4f30e3fa43ccbbcc..030b2351bdfb14a4793d2fff7a13eef11763d791 100644 (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)}"