summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-02-04 08:51:03 +0000
committerSteve Sakoman <steve@sakoman.com>2023-02-11 04:03:33 -1000
commit99b3e9101dc931e8d68158e7cf268dd7c6fee84c (patch)
tree91acc4d69694ae41c2f9ce385fef656f26273969 /meta
parentc1f148fa51c541bd806376f5eec93fd348e87583 (diff)
downloadopenembedded-core-99b3e9101dc931e8d68158e7cf268dd7c6fee84c.tar.gz
libc-locale: Fix on target locale generation
If on target locale generation is used, it fails at first boot showing errors about a missing directory. Ensure the directory exists. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit f2844c9f1bbb729562063d96a3d1cc9d44dafa0a) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes-recipe/libc-package.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes-recipe/libc-package.bbclass b/meta/classes-recipe/libc-package.bbclass
index de3d4223a8..8a99f73ae7 100644
--- a/meta/classes-recipe/libc-package.bbclass
+++ b/meta/classes-recipe/libc-package.bbclass
@@ -51,6 +51,7 @@ PACKAGE_NO_GCONV ?= "0"
OVERRIDES:append = ":${TARGET_ARCH}-${TARGET_OS}"
locale_base_postinst_ontarget() {
+mkdir ${libdir}/locale
localedef --inputfile=${datadir}/i18n/locales/%s --charmap=%s %s
}