path: root/meta-linaro-toolchain/recipes-core
diff options
authorKhem Raj <>2015-02-20 06:08:06 +0000
committerFathi Boudra <>2015-02-20 08:11:13 +0200
commite6e66d3c93c571e82635ac1e5d83fffbcaaf144f (patch)
tree306e2e9966d443ddbac76796207313cdebc89a66 /meta-linaro-toolchain/recipes-core
parent3eaede2cfe054456b30d4f026916ed35aea21b04 (diff)
glibc,external-toolchain: spare the native and nativesdk recipe variants
We should make this change only when TARGET recipes are concerned since we use glibc for native and nativesdk providers even on uclibc and musl systems Change-Id: Ia93c5d808320516e856d77dee00479e653eea553 Signed-off-by: Khem Raj <>
Diffstat (limited to 'meta-linaro-toolchain/recipes-core')
1 files changed, 4 insertions, 6 deletions
diff --git a/meta-linaro-toolchain/recipes-core/glibc/ b/meta-linaro-toolchain/recipes-core/glibc/
index cf41fb9..63f0383 100644
--- a/meta-linaro-toolchain/recipes-core/glibc/
+++ b/meta-linaro-toolchain/recipes-core/glibc/
@@ -98,16 +98,14 @@ GLIBC_BROKEN_LOCALES = " _ER _ET so_ET yn_ER sid_ET tr_TR mn_MN gez_ET gez_ER bn
FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/glibc-${PV}', '${FILE_DIRNAME}/glibc', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}"
-# For now, we will skip building of a gcc package if it is a uclibc one
-# and our build is not a uclibc one, and we skip a glibc one if our build
-# is a uclibc build.
-# See the note in gcc/gcc_3.4.0.oe
+# We will skip parsing glibc when system C library selection is not glibc
+# this helps in easing out parsing for non-glibc system libraries
python __anonymous () {
import re
- if d.getVar("TCLIBC", True) != "glibc":
+ notglibc = (re.match('.*uclibc$', d.getVar('TARGET_OS', True)) != None) and (re.match('.*musl$', d.getVar('TARGET_OS', True)) != None)
+ if notglibc:
raise bb.parse.SkipPackage("incompatible with target %s" %
d.getVar('TARGET_OS', True))