summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-03-02 20:53:10 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-04-05 14:13:47 (GMT)
commitfc0a773246836c2f101b8108cab002d1314b5aca (patch)
treee77d4cb7ec55e48e09070c46a6a3f825fc2fcb05
parentf1de1761b35d12818f845061613919f3323694b3 (diff)
downloadpoky-fc0a773246836c2f101b8108cab002d1314b5aca.tar.gz
sdk: only install locales if we're using glibc
Using glibc-locale to install locales only makes sense if we're using glibc. (From OE-Core rev: 8fc80734053645fa893694dfe33ddaee99aa9a1a) (From OE-Core rev: 1ca33a798f5edf4bb1e695a79a46088dd23b6858) (From OE-Core rev: 75918061572c0943aa4ea24df07b4ec1ae1aa09f) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> [Fixup for the getVar True bit] Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oe/sdk.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/lib/oe/sdk.py b/meta/lib/oe/sdk.py
index e33e215..c8b6055 100644
--- a/meta/lib/oe/sdk.py
+++ b/meta/lib/oe/sdk.py
@@ -85,6 +85,10 @@ class Sdk(object, metaclass=ABCMeta):
85 bb.warn("cannot remove SDK dir: %s" % path) 85 bb.warn("cannot remove SDK dir: %s" % path)
86 86
87 def install_locales(self, pm): 87 def install_locales(self, pm):
88 # This is only relevant for glibc
89 if self.d.getVar("TCLIBC", True) != "glibc":
90 return
91
88 linguas = self.d.getVar("SDKIMAGE_LINGUAS", True) 92 linguas = self.d.getVar("SDKIMAGE_LINGUAS", True)
89 if linguas: 93 if linguas:
90 if linguas == "all": 94 if linguas == "all":