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: 14269b953c1f74d7dd72c65df5e925d9ae4e75be)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton 2018-03-02 20:53:10 +00:00 committed by Richard Purdie
parent 39bbb91468
commit 8dfa0e5d46
1 changed files with 4 additions and 0 deletions

View File

@ -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") != "glibc":
return
linguas = self.d.getVar("SDKIMAGE_LINGUAS")
if linguas:
if linguas == "all":