diff options
-rw-r--r-- | meta/conf/bitbake.conf | 7 | ||||
-rw-r--r-- | meta/packages/glibc/glibc-package.bbclass | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 342c174e71..c882c54d9b 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -90,6 +90,13 @@ PACKAGE_ARCH = "${HOST_ARCH}" | |||
90 | MACHINE_ARCH = "${@[bb.data.getVar('HOST_ARCH', d, 1), bb.data.getVar('MACHINE', d, 1)][bool(bb.data.getVar('MACHINE', d, 1))]}" | 90 | MACHINE_ARCH = "${@[bb.data.getVar('HOST_ARCH', d, 1), bb.data.getVar('MACHINE', d, 1)][bool(bb.data.getVar('MACHINE', d, 1))]}" |
91 | PACKAGE_ARCHS = "all any noarch ${TARGET_ARCH} ${PACKAGE_EXTRA_ARCHS} ${MACHINE}" | 91 | PACKAGE_ARCHS = "all any noarch ${TARGET_ARCH} ${PACKAGE_EXTRA_ARCHS} ${MACHINE}" |
92 | 92 | ||
93 | # select proper CPU to get binary locales generated | ||
94 | QEMU_OPTIONS = "" | ||
95 | QEMU_OPTIONS_iwmmxt = "-cpu pxa270-c5" | ||
96 | QEMU_OPTIONS_armv4t = "-cpu arm920t" | ||
97 | QEMU_OPTIONS_armv5te = "-cpu arm926" | ||
98 | QEMU_OPTIONS_armv6 = "-cpu arm1136" | ||
99 | |||
93 | ################################################################## | 100 | ################################################################## |
94 | # Date/time variables. | 101 | # Date/time variables. |
95 | ################################################################## | 102 | ################################################################## |
diff --git a/meta/packages/glibc/glibc-package.bbclass b/meta/packages/glibc/glibc-package.bbclass index bc51d6b1b9..1dc1f9c133 100644 --- a/meta/packages/glibc/glibc-package.bbclass +++ b/meta/packages/glibc/glibc-package.bbclass | |||
@@ -260,7 +260,8 @@ python package_do_split_gconvs () { | |||
260 | i18npath = base_path_join(treedir, datadir, "i18n") | 260 | i18npath = base_path_join(treedir, datadir, "i18n") |
261 | 261 | ||
262 | localedef_opts = "--force --old-style --no-archive --prefix=%s --inputfile=%s/i18n/locales/%s --charmap=%s %s" % (treedir, datadir, locale, encoding, name) | 262 | localedef_opts = "--force --old-style --no-archive --prefix=%s --inputfile=%s/i18n/locales/%s --charmap=%s %s" % (treedir, datadir, locale, encoding, name) |
263 | cmd = "PATH=\"%s\" I18NPATH=\"%s\" %s -L %s %s/bin/localedef %s" % (path, i18npath, qemu, treedir, treedir, localedef_opts) | 263 | qemu_options = bb.data.getVar('QEMU_OPTIONS', d, 1) |
264 | cmd = "PATH=\"%s\" I18NPATH=\"%s\" %s -L %s %s %s/bin/localedef %s" % (path, i18npath, qemu, treedir, qemu_options, treedir, localedef_opts) | ||
264 | bb.note("generating locale %s (%s)" % (locale, encoding)) | 265 | bb.note("generating locale %s (%s)" % (locale, encoding)) |
265 | if os.system(cmd): | 266 | if os.system(cmd): |
266 | raise bb.build.FuncFailed("localedef returned an error (command was %s)." % cmd) | 267 | raise bb.build.FuncFailed("localedef returned an error (command was %s)." % cmd) |