summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oe/sdk.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/lib/oe/sdk.py b/meta/lib/oe/sdk.py
index af6ddc7602..e33e21553d 100644
--- a/meta/lib/oe/sdk.py
+++ b/meta/lib/oe/sdk.py
@@ -84,6 +84,19 @@ class Sdk(object, metaclass=ABCMeta):
84 bb.debug(1, "printing the stack trace\n %s" %traceback.format_exc()) 84 bb.debug(1, "printing the stack trace\n %s" %traceback.format_exc())
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):
88 linguas = self.d.getVar("SDKIMAGE_LINGUAS", True)
89 if linguas:
90 if linguas == "all":
91 pm.install_glob("nativesdk-locale-base-*.utf-8", sdk=True)
92 else:
93 for lang in linguas.split():
94 pm.install("nativesdk-locale-base-%s.utf-8" % lang)
95 else:
96 # No linguas so do nothing
97 pass
98
99
87class RpmSdk(Sdk): 100class RpmSdk(Sdk):
88 def __init__(self, d, manifest_dir=None, rpm_workdir="oe-sdk-repo"): 101 def __init__(self, d, manifest_dir=None, rpm_workdir="oe-sdk-repo"):
89 super(RpmSdk, self).__init__(d, manifest_dir) 102 super(RpmSdk, self).__init__(d, manifest_dir)
@@ -165,6 +178,7 @@ class RpmSdk(Sdk):
165 178
166 bb.note("Installing NATIVESDK packages") 179 bb.note("Installing NATIVESDK packages")
167 self._populate_sysroot(self.host_pm, self.host_manifest) 180 self._populate_sysroot(self.host_pm, self.host_manifest)
181 self.install_locales(self.host_pm)
168 182
169 execute_pre_post_process(self.d, self.d.getVar("POPULATE_SDK_POST_HOST_COMMAND", True)) 183 execute_pre_post_process(self.d, self.d.getVar("POPULATE_SDK_POST_HOST_COMMAND", True))
170 184
@@ -244,6 +258,7 @@ class OpkgSdk(Sdk):
244 258
245 bb.note("Installing NATIVESDK packages") 259 bb.note("Installing NATIVESDK packages")
246 self._populate_sysroot(self.host_pm, self.host_manifest) 260 self._populate_sysroot(self.host_pm, self.host_manifest)
261 self.install_locales(self.host_pm)
247 262
248 execute_pre_post_process(self.d, self.d.getVar("POPULATE_SDK_POST_HOST_COMMAND", True)) 263 execute_pre_post_process(self.d, self.d.getVar("POPULATE_SDK_POST_HOST_COMMAND", True))
249 264
@@ -328,6 +343,7 @@ class DpkgSdk(Sdk):
328 343
329 bb.note("Installing NATIVESDK packages") 344 bb.note("Installing NATIVESDK packages")
330 self._populate_sysroot(self.host_pm, self.host_manifest) 345 self._populate_sysroot(self.host_pm, self.host_manifest)
346 self.install_locales(self.host_pm)
331 347
332 execute_pre_post_process(self.d, self.d.getVar("POPULATE_SDK_POST_HOST_COMMAND", True)) 348 execute_pre_post_process(self.d, self.d.getVar("POPULATE_SDK_POST_HOST_COMMAND", True))
333 349