]> code.ossystems Code Review - openembedded-core.git/commitdiff
glibc: get proper value for QEMU_OPTIONS to get binary locales working for all ARM...
authorMarcin Juszkiewicz <hrw@openedhand.com>
Tue, 4 Dec 2007 17:19:25 +0000 (17:19 +0000)
committerMarcin Juszkiewicz <hrw@openedhand.com>
Tue, 4 Dec 2007 17:19:25 +0000 (17:19 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3307 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/packages/glibc/glibc-package.bbclass

index 1dc1f9c133b35a301ad65eb153a55131bd749dec..01b55f3b33542b839cb5103641c0bc927fa77440 100644 (file)
@@ -260,7 +260,11 @@ python package_do_split_gconvs () {
                i18npath = base_path_join(treedir, datadir, "i18n")
 
                localedef_opts = "--force --old-style --no-archive --prefix=%s --inputfile=%s/i18n/locales/%s --charmap=%s %s" % (treedir, datadir, locale, encoding, name)
-               qemu_options = bb.data.getVar('QEMU_OPTIONS', d, 1)
+
+               qemu_options = bb.data.getVar("QEMU_OPTIONS_%s" % bb.data.getVar('PACKAGE_ARCH', d, 1), d, 1)
+               if not qemu_options:
+                       qemu_options = bb.data.getVar('QEMU_OPTIONS', d, 1)
+               
                cmd = "PATH=\"%s\" I18NPATH=\"%s\" %s -L %s %s %s/bin/localedef %s" % (path, i18npath, qemu, treedir, qemu_options, treedir, localedef_opts)
                bb.note("generating locale %s (%s)" % (locale, encoding))
                if os.system(cmd):