summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-03-02 20:53:10 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-04-05 15:11:13 +0100
commit75918061572c0943aa4ea24df07b4ec1ae1aa09f (patch)
tree025a8681967144d7b5e0d80c8253f46e74d76ade
parent691925df192b4b1671ba9d19cbc3602654826451 (diff)
downloadopenembedded-core-75918061572c0943aa4ea24df07b4ec1ae1aa09f.tar.gz
openembedded-core-75918061572c0943aa4ea24df07b4ec1ae1aa09f.tar.bz2
openembedded-core-75918061572c0943aa4ea24df07b4ec1ae1aa09f.zip
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) 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>
-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 e33e21553d..c8b6055420 100644
--- a/meta/lib/oe/sdk.py
+++ b/meta/lib/oe/sdk.py
@@ -85,6 +85,10 @@ class Sdk(object, metaclass=ABCMeta):
bb.warn("cannot remove SDK dir: %s" % path)
def install_locales(self, pm):
+ # This is only relevant for glibc
+ if self.d.getVar("TCLIBC", True) != "glibc":
+ return
+
linguas = self.d.getVar("SDKIMAGE_LINGUAS", True)
if linguas:
if linguas == "all":