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

git at git.openembedded.org git at git.openembedded.org
Tue Aug 25 22:28:19 UTC 2015


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

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.

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