]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake.conf: set USE_NLS based on DISTRO_FEATURES
authorChristopher Larson <chris_larson@mentor.com>
Mon, 24 Aug 2015 22:18:38 +0000 (15:18 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 30 Aug 2015 11:34:17 +0000 (12:34 +0100)
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@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/bitbake.conf

index aa785a13f3993bde44ad417f807a89f895d800ca..01f4cd07469386f0941b92bccb6ab681590a750c 100644 (file)
@@ -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}"