]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes, conf: Exclude native and nativesdk recipes from libc specific override
authorKhem Raj <raj.khem@gmail.com>
Thu, 1 Dec 2011 03:07:07 +0000 (19:07 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 1 Dec 2011 12:52:49 +0000 (12:52 +0000)
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.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/native.bbclass
meta/classes/nativesdk.bbclass
meta/conf/distro/include/tclibc-eglibc.inc
meta/conf/distro/include/tclibc-uclibc.inc

index 8f7cc1f2d3d400c8812327c7a73e7cb5442e663b..49823d6fc62837ba9337cb3a94837680568f61bb 100644 (file)
@@ -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 () {
index e6204c02ba113cbe8c87686d1444a0750d7f4805..b8abc9f3f821b957a6976ae906b7f2e736f8e392 100644 (file)
@@ -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
 #
index 8ef3cebb9a178a7dc35a70e5dcd9a1bb8f40e8c1..8b8a21413251779db318708069d69257fbe482e3 100644 (file)
@@ -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"
index e0f50a056770edf17f529d7f4c4de4ba84239323..3984235d94aea0028c6d3dcd603d309d9d4c8c32 100644 (file)
@@ -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"