Skip to contentSkip to conversation

classes, conf: Exclude native and nativesdk recipes from libc specific override

PATCH Applied Khem Raj 2 participants 2 messages Dec 1, 2011

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 classes, conf: Exclude native and nativesdk recipes from libc specific override

Based on suggestions from RP

libc-uclibc and libc-glibc overrides are for denoting system C library in use on the target and not for the host therefore we make sure that the override only takes effect for target recipes only.

---
 meta/classes/native.bbclass                |    3 +++
 meta/classes/nativesdk.bbclass             |    3 +++
 meta/conf/distro/include/tclibc-eglibc.inc |    3 ++-
 meta/conf/distro/include/tclibc-uclibc.inc |    3 ++-
 4 files changed, 10 insertions(+), 2 deletions(-)
meta/classes/native.bbclass +3 -0
index 8f7cc1f..49823d6 100644
@@ -92,6 +92,9 @@ EXTRA_NATIVE_PKGCONFIG_PATH ?= ""
 PKG_CONFIG_PATH .= "${EXTRA_NATIVE_PKGCONFIG_PATH}"
 PKG_CONFIG_SYSROOT_DIR = ""
 
+# we dont want libc-uclibc or libc-glibc to kick in for native recipes
+LIBCOVERRIDE = ""
+
 PATH =. "${COREBASE}/scripts/native-intercept:"
 
 python native_virtclass_handler () {
meta/classes/nativesdk.bbclass +3 -0
index e6204c0..b8abc9f 100644
@@ -6,6 +6,9 @@ EXCLUDE_FROM_WORLD = "1"
 
 STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${SDK_ARCH}${SDK_VENDOR}-${SDK_OS}"
 
+# we dont want libc-uclibc or libc-glibc to kick in for nativesdk recipes
+LIBCOVERRIDE = ""
+
 #
 # Update PACKAGE_ARCH and PACKAGE_ARCHS
 #
meta/conf/distro/include/tclibc-eglibc.inc +2 -1
index 8ef3ceb..8b8a214 100644
@@ -5,7 +5,8 @@
 LIBCEXTENSION = "${@['', '-gnu'][(d.getVar('ABIEXTENSION', True) or '') != '']}"
 
 # Add glibc overrides to the overrides for eglibc.
-OVERRIDES .= ":libc-glibc"
+LIBCOVERRIDE = ":libc-glibc"
+OVERRIDES .= "${LIBCOVERRIDE}"
 
 PREFERRED_PROVIDER_virtual/libiconv ?= "eglibc"
 PREFERRED_PROVIDER_virtual/libiconv-nativesdk ?= "eglibc-nativesdk"
meta/conf/distro/include/tclibc-uclibc.inc +2 -1
index e0f50a0..3984235 100644
@@ -5,7 +5,8 @@
 LIBCEXTENSION = "-uclibc"
 
 # Add uclibc overrides to the overrides.
-OVERRIDES =. "libc-uclibc:"
+LIBCOVERRIDE = ":libc-uclibc"
+OVERRIDES .= "${LIBCOVERRIDE}"
 
 PREFERRED_PROVIDER_virtual/libc = "uclibc"
 PREFERRED_PROVIDER_virtual/libiconv ?= "libiconv"
Signature · 1 line
1.7.5.4
#1 lore raw
Quoted 7 lines · Khem Raj

Based on suggestions from RP

libc-uclibc and libc-glibc overrides are for denoting system C library in use on the target and not for the host therefore we make sure that the override only takes effect for target recipes only.

Quoted 7 lines
---
 meta/classes/native.bbclass                |    3 +++
 meta/classes/nativesdk.bbclass             |    3 +++
 meta/conf/distro/include/tclibc-eglibc.inc |    3 ++-
 meta/conf/distro/include/tclibc-uclibc.inc |    3 ++-
 4 files changed, 10 insertions(+), 2 deletions(-)

Merged to master, thanks.

Richard