summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oe/sdk.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/sdk.py b/meta/lib/oe/sdk.py
index beb56022a8..c5098a9f3c 100644
--- a/meta/lib/oe/sdk.py
+++ b/meta/lib/oe/sdk.py
@@ -10,7 +10,7 @@ import traceback
10def generate_locale_archive(d, rootfs): 10def generate_locale_archive(d, rootfs):
11 # Pretty sure we don't need this for SDK archive generation but 11 # Pretty sure we don't need this for SDK archive generation but
12 # keeping it to be safe... 12 # keeping it to be safe...
13 target_arch = d.getVar('SDK_ARCH') 13 target_arch = d.getVar('SDK_ARCH', True)
14 locale_arch_options = { \ 14 locale_arch_options = { \
15 "arm": ["--uint32-align=4", "--little-endian"], 15 "arm": ["--uint32-align=4", "--little-endian"],
16 "armeb": ["--uint32-align=4", "--big-endian"], 16 "armeb": ["--uint32-align=4", "--big-endian"],
@@ -37,7 +37,7 @@ def generate_locale_archive(d, rootfs):
37 bb.error("locale_arch_options not found for target_arch=" + target_arch) 37 bb.error("locale_arch_options not found for target_arch=" + target_arch)
38 bb.fatal("unknown arch:" + target_arch + " for locale_arch_options") 38 bb.fatal("unknown arch:" + target_arch + " for locale_arch_options")
39 39
40 localedir = oe.path.join(rootfs, d.getVar("libdir_nativesdk"), "locale") 40 localedir = oe.path.join(rootfs, d.getVar("libdir_nativesdk", True), "locale")
41 # Need to set this so cross-localedef knows where the archive is 41 # Need to set this so cross-localedef knows where the archive is
42 env = dict(os.environ) 42 env = dict(os.environ)
43 env["LOCALEARCHIVE"] = oe.path.join(localedir, "locale-archive") 43 env["LOCALEARCHIVE"] = oe.path.join(localedir, "locale-archive")