瀏覽代碼

sdk: Fix the error of locale dir miss

Signed-off-by: Ma Jun <majun258@linux.alibaba.com>
Ma Jun 2 年之前
父節點
當前提交
80c3d77ba8
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      meta/lib/oe/sdk.py

+ 1 - 0
meta/lib/oe/sdk.py

@@ -99,6 +99,7 @@ class Sdk(object, metaclass=ABCMeta):
             target_arch = self.d.getVar('SDK_ARCH')
             rootfs = oe.path.join(self.sdk_host_sysroot, self.sdk_native_path)
             localedir = oe.path.join(rootfs, self.d.getVar("libdir_nativesdk"), "locale")
+            bb.utils.mkdirhier(localedir)
             generate_locale_archive(self.d, rootfs, target_arch, localedir)
             # And now delete the binary locales
             pkgs = fnmatch.filter(pm.list_installed(), "nativesdk-glibc-binary-localedata-*.utf-8")