Browse Source

sdk: Fix the error of locale dir miss

Signed-off-by: Ma Jun <majun258@linux.alibaba.com>
Ma Jun 2 years ago
parent
commit
80c3d77ba8
1 changed files with 1 additions and 0 deletions
  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")