diff options
author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2013-02-07 16:13:37 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-07 16:50:47 +0000 |
commit | 8c263420eda2c2ab0e6f8bff64f965cb4cc5698b (patch) | |
tree | 409f23f466ce463e3c8a7db650f8f68029ba9775 /meta/classes | |
parent | 9f5a6f89d9f4a6c7bed3b163e6eaa764d762f523 (diff) | |
download | poky-8c263420eda2c2ab0e6f8bff64f965cb4cc5698b.tar.gz |
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]
(From OE-Core rev: 688e9485980de0f29aa00e24ce53a3efd3a3a7cc)
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/qemu.bbclass | 2 |
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): | |||
34 | library_path = rootfs_path + data.getVar("base_libdir", True) + ":" + \ | 34 | library_path = rootfs_path + data.getVar("base_libdir", True) + ":" + \ |
35 | rootfs_path + data.getVar("libdir", True) | 35 | rootfs_path + data.getVar("libdir", True) |
36 | 36 | ||
37 | return qemu_binary + " " + dynamic_loader + " --library-path " + library_path \ | 37 | return "PSEUDO_UNLOAD=1 " + qemu_binary + " " + dynamic_loader + " --library-path " + library_path \ |
38 | + " " + rootfs_path + binary | 38 | + " " + rootfs_path + binary |