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-15 21:47:00 +0000 |
| commit | 71ae4a2fb5600e8a4f0f9805c4f6d97be66ef53e (patch) | |
| tree | aa126ea3b7a6524edf1263afd8c56c6feed05c99 /meta/classes-recipe | |
| parent | 4ad361341c17cc5df20b6ec36975f901d19f5f67 (diff) | |
| download | poky-71ae4a2fb5600e8a4f0f9805c4f6d97be66ef53e.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: 99b3e9101dc931e8d68158e7cf268dd7c6fee84c)
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-recipe')
| -rw-r--r-- | meta/classes-recipe/libc-package.bbclass | 1 |
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" | |||
| 51 | OVERRIDES:append = ":${TARGET_ARCH}-${TARGET_OS}" | 51 | OVERRIDES:append = ":${TARGET_ARCH}-${TARGET_OS}" |
| 52 | 52 | ||
| 53 | locale_base_postinst_ontarget() { | 53 | locale_base_postinst_ontarget() { |
| 54 | mkdir ${libdir}/locale | ||
| 54 | localedef --inputfile=${datadir}/i18n/locales/%s --charmap=%s %s | 55 | localedef --inputfile=${datadir}/i18n/locales/%s --charmap=%s %s |
| 55 | } | 56 | } |
| 56 | 57 | ||
