[OE-core] [PATCH] When building with systemd based image, udev-hwdb postinstall script will fail because of not passing correct CPU option. So fix it by passing correct QEMU_OPTIONS.

Iorga, Cristian cristian.iorga at intel.com
Thu Dec 4 19:11:02 UTC 2014


Also, issue https://bugzilla.yoctoproject.org/show_bug.cgi?id=6687 (that I am trying to handle) seems quite similar to the issue that you have reported.
Regards,
Cristian Iorga
Yocto Project
Intel Corporation

-----Original Message-----
From: Iorga, Cristian 
Sent: Thursday, December 4, 2014 9:04 PM
To: 'Gaurang Shastri'; openembedded-core at lists.openembedded.org
Cc: gmshastri at gmail.com
Subject: RE: [OE-core] [PATCH] When building with systemd based image, udev-hwdb postinstall script will fail because of not passing correct CPU option. So fix it by passing correct QEMU_OPTIONS.

Hi Gaurang,

Are you sure that the patch solves the described issue?
Because I have tested with:
MACHINE=qemuppc bitbake core-image-sato
and I am still seeing the issue in rootfs log.

Can you please clarify how you tested this?

Regards,
Cristian Iorga
Yocto Project
Intel Corporation

-----Original Message-----
From: openembedded-core-bounces at lists.openembedded.org [mailto:openembedded-core-bounces at lists.openembedded.org] On Behalf Of Gaurang Shastri
Sent: Thursday, November 27, 2014 1:17 PM
To: openembedded-core at lists.openembedded.org
Cc: gmshastri at gmail.com
Subject: [OE-core] [PATCH] When building with systemd based image, udev-hwdb postinstall script will fail because of not passing correct CPU option. So fix it by passing correct QEMU_OPTIONS.

Signed-off-by: Gaurang Shastri <gshastri at juniper.net>
---
 meta/classes/qemu.bbclass |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass index b2cf85d..c373855 100644
--- a/meta/classes/qemu.bbclass
+++ b/meta/classes/qemu.bbclass
@@ -30,8 +30,9 @@ def qemu_run_binary(data, rootfs_path, binary):
     libdir = rootfs_path + data.getVar("libdir", False)
     base_libdir = rootfs_path + data.getVar("base_libdir", False)
     oldest_kernel = data.getVar("OLDEST_KERNEL", True)
+    qemu_option = data.getVar("QEMU_OPTIONS",True)
 
-    return "PSEUDO_UNLOAD=1 " + qemu_binary + " -r " + oldest_kernel + " -L " + rootfs_path\
+    return "PSEUDO_UNLOAD=1 " + qemu_binary + " " + qemu_option + " -r 
+ " + oldest_kernel + " -L " + rootfs_path\
             + " -E LD_LIBRARY_PATH=" + libdir + ":" + base_libdir + " "\
             + rootfs_path + binary
 
--
1.7.9.5

--
_______________________________________________
Openembedded-core mailing list
Openembedded-core at lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core



More information about the Openembedded-core mailing list