[OE-core] [PATCH 6/7] bitbake.conf: set USE_NLS based on DISTRO_FEATURES
Christopher Larson
kergoth at gmail.com
Mon Aug 24 22:18:38 UTC 2015
From: Christopher Larson <chris_larson at mentor.com>
If our libc doesn't support locales, we don't need gettext nls bits enabled.
Signed-off-by: Christopher Larson <chris_larson at mentor.com>
---
meta/conf/bitbake.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 4250ca5..0ef185d 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -114,7 +114,7 @@ TUNE_ASARGS ??= ""
TUNE_FEATURES ??= "${TUNE_FEATURES_tune-${DEFAULTTUNE}}"
LIBCEXTENSION ??= ""
ABIEXTENSION ??= ""
-USE_NLS ??= "yes"
+USE_NLS ??= "${@bb.utils.contains('DISTRO_FEATURES', 'libc-locale-code', 'yes', 'no', d)}"
SDKUSE_NLS ??= "yes"
TARGET_ARCH = "${TUNE_ARCH}"
--
2.2.1
More information about the Openembedded-core
mailing list