diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-04 08:51:03 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-24 16:41:42 +0000 |
commit | 3d32267b526b96ef6751d0dd20aa0e91f4d0363d (patch) | |
tree | 80d2f8eb771eaf1385b70c85c92c399cfe3564aa /meta/classes | |
parent | 9d8cb501f74ceb9b1571ebf5c3b5c4200bbfa134 (diff) | |
download | poky-3d32267b526b96ef6751d0dd20aa0e91f4d0363d.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.
(From OE-Core rev: 63141bd8c19285bbef33f3d32a89ca127da0c658)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f2844c9f1bbb729562063d96a3d1cc9d44dafa0a)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/libc-package.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/libc-package.bbclass b/meta/classes/libc-package.bbclass index 1143f538d6..72f489d673 100644 --- a/meta/classes/libc-package.bbclass +++ b/meta/classes/libc-package.bbclass | |||
@@ -45,6 +45,7 @@ PACKAGE_NO_GCONV ?= "0" | |||
45 | OVERRIDES_append = ":${TARGET_ARCH}-${TARGET_OS}" | 45 | OVERRIDES_append = ":${TARGET_ARCH}-${TARGET_OS}" |
46 | 46 | ||
47 | locale_base_postinst_ontarget() { | 47 | locale_base_postinst_ontarget() { |
48 | mkdir ${libdir}/locale | ||
48 | localedef --inputfile=${datadir}/i18n/locales/%s --charmap=%s %s | 49 | localedef --inputfile=${datadir}/i18n/locales/%s --charmap=%s %s |
49 | } | 50 | } |
50 | 51 | ||