summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2013-02-07 16:13:37 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-07 16:50:40 +0000
commit688e9485980de0f29aa00e24ce53a3efd3a3a7cc (patch)
treecdea0a282543578053da31d1b58ce2b7c26cee37
parente8ec13a26217bf473504ae4aab22b134dd9dffff (diff)
downloadopenembedded-core-688e9485980de0f29aa00e24ce53a3efd3a3a7cc.tar.gz
openembedded-core-688e9485980de0f29aa00e24ce53a3efd3a3a7cc.tar.bz2
openembedded-core-688e9485980de0f29aa00e24ce53a3efd3a3a7cc.zip
qemu.bbclass: fix segfaults when running through pseudo
qemu user binaries sometimes segfault when running them through pseudo. So, set PSEUDO_UNLOAD to 1 before running any qemu binary. [YOCTO #3788] Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/qemu.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass
index cd2e32309d..8b039266b9 100644
--- a/meta/classes/qemu.bbclass
+++ b/meta/classes/qemu.bbclass
@@ -34,5 +34,5 @@ def qemu_run_binary(data, rootfs_path, binary):
library_path = rootfs_path + data.getVar("base_libdir", True) + ":" + \
rootfs_path + data.getVar("libdir", True)
- return qemu_binary + " " + dynamic_loader + " --library-path " + library_path \
+ return "PSEUDO_UNLOAD=1 " + qemu_binary + " " + dynamic_loader + " --library-path " + library_path \
+ " " + rootfs_path + binary