[oe-commits] Christopher Larson : bitbake.conf: set USE_NLS based on DISTRO_FEATURES

git at git.openembedded.org git at git.openembedded.org
Sun Aug 30 11:48:18 UTC 2015


Module: openembedded-core.git
Branch: master
Commit: 8144069cd295fae67a7007a984e285c1a2a320e5
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=8144069cd295fae67a7007a984e285c1a2a320e5

Author: Christopher Larson <chris_larson at mentor.com>
Date:   Mon Aug 24 15:18:38 2015 -0700

bitbake.conf: set USE_NLS based on DISTRO_FEATURES

If our libc doesn't support locales, we don't need gettext nls bits enabled.

(From OE-Core rev: f1bc8afa6ee584a81fb65bcf77e5ae1a8889f47c)

Signed-off-by: Christopher Larson <chris_larson at mentor.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 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 aa785a1..01f4cd0 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}"



More information about the Openembedded-commits mailing list