glibc-package.bbclass: Add supersecret -r switch to qemu userspace emulator,
authorPaul Sokolovsky <pmiscml@gmail.com>
Wed, 4 Oct 2006 14:02:07 +0000 (14:02 +0000)
committerPaul Sokolovsky <pmiscml@gmail.com>
Wed, 4 Oct 2006 14:02:07 +0000 (14:02 +0000)
which allows to override kernel version report to guest apps (otherwise,
host kernel version is used, which causes "Kernel too old" errors in glibc
startup code in guess, if host kernel is older than 2.6.14-something).
Tested with qemu 0.8.2 (and yes, I couldn't find -r switch in qemu doc,
taken from a mail by Paul Brook, qemu co-maintainer).

packages/glibc/glibc-package.bbclass

index a15d813..162274b 100644 (file)
@@ -237,7 +237,7 @@ python package_do_split_gconvs () {
 
        def output_locale_binary(name, locale, encoding):
                target_arch = bb.data.getVar("TARGET_ARCH", d, 1)
-               qemu = "qemu-%s" % target_arch
+               qemu = "qemu-%s -r 2.6.16" % target_arch
                pkgname = 'locale-base-' + legitimize_package_name(name)
                m = re.match("(.*)\.(.*)", name)
                if m: