diff options
Diffstat (limited to 'meta/classes/qemu.bbclass')
-rw-r--r-- | meta/classes/qemu.bbclass | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass index abee8aaa7c..b2cf85d628 100644 --- a/meta/classes/qemu.bbclass +++ b/meta/classes/qemu.bbclass | |||
@@ -29,19 +29,20 @@ def qemu_run_binary(data, rootfs_path, binary): | |||
29 | 29 | ||
30 | libdir = rootfs_path + data.getVar("libdir", False) | 30 | libdir = rootfs_path + data.getVar("libdir", False) |
31 | base_libdir = rootfs_path + data.getVar("base_libdir", False) | 31 | base_libdir = rootfs_path + data.getVar("base_libdir", False) |
32 | oldest_kernel = data.getVar("OLDEST_KERNEL", True) | ||
32 | 33 | ||
33 | return "PSEUDO_UNLOAD=1 " + qemu_binary + " -L " + rootfs_path\ | 34 | return "PSEUDO_UNLOAD=1 " + qemu_binary + " -r " + oldest_kernel + " -L " + rootfs_path\ |
34 | + " -E LD_LIBRARY_PATH=" + libdir + ":" + base_libdir + " "\ | 35 | + " -E LD_LIBRARY_PATH=" + libdir + ":" + base_libdir + " "\ |
35 | + rootfs_path + binary | 36 | + rootfs_path + binary |
36 | 37 | ||
37 | QEMU_OPTIONS = "" | 38 | QEMU_OPTIONS = "-r ${OLDEST_KERNEL}" |
38 | QEMU_OPTIONS_iwmmxt = "-cpu pxa270-c5" | 39 | QEMU_OPTIONS_append_iwmmxt = " -cpu pxa270-c5" |
39 | QEMU_OPTIONS_armv6 = "-cpu arm1136" | 40 | QEMU_OPTIONS_append_armv6 = " -cpu arm1136" |
40 | QEMU_OPTIONS_armv7a = "-cpu cortex-a8" | 41 | QEMU_OPTIONS_append_armv7a = " -cpu cortex-a8" |
41 | QEMU_OPTIONS_e500v2 = "-cpu e500v2" | 42 | QEMU_OPTIONS_append_e500v2 = " -cpu e500v2" |
42 | QEMU_OPTIONS_e500mc = "-cpu e500mc" | 43 | QEMU_OPTIONS_append_e500mc = " -cpu e500mc" |
43 | QEMU_OPTIONS_e5500 = "-cpu e5500" | 44 | QEMU_OPTIONS_append_e5500 = " -cpu e5500" |
44 | QEMU_OPTIONS_e5500-64b = "-cpu e5500" | 45 | QEMU_OPTIONS_append_e5500-64b = " -cpu e5500" |
45 | QEMU_OPTIONS_e6500 = "-cpu e6500" | 46 | QEMU_OPTIONS_append_e6500 = " -cpu e6500" |
46 | QEMU_OPTIONS_e6500-64b = "-cpu e6500" | 47 | QEMU_OPTIONS_append_e6500-64b = " -cpu e6500" |
47 | QEMU_OPTIONS_ppc7400 = "-cpu 7400" | 48 | QEMU_OPTIONS_append_ppc7400 = " -cpu 7400" |