瀏覽代碼

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>
Ross Burton 6 年之前
父節點
當前提交
7591806157
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      meta/lib/oe/sdk.py

+ 4 - 0
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":