diff options
Diffstat (limited to 'meta/classes/qemu.bbclass')
-rw-r--r-- | meta/classes/qemu.bbclass | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass index b2cf85d628..601f587534 100644 --- a/meta/classes/qemu.bbclass +++ b/meta/classes/qemu.bbclass | |||
@@ -29,20 +29,23 @@ 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 | qemu_options = data.getVar("QEMU_OPTIONS", True) |
33 | 33 | ||
34 | return "PSEUDO_UNLOAD=1 " + qemu_binary + " -r " + oldest_kernel + " -L " + rootfs_path\ | 34 | return "PSEUDO_UNLOAD=1 " + qemu_binary + " " + qemu_options + " -L " + rootfs_path\ |
35 | + " -E LD_LIBRARY_PATH=" + libdir + ":" + base_libdir + " "\ | 35 | + " -E LD_LIBRARY_PATH=" + libdir + ":" + base_libdir + " "\ |
36 | + rootfs_path + binary | 36 | + rootfs_path + binary |
37 | 37 | ||
38 | QEMU_OPTIONS = "-r ${OLDEST_KERNEL}" | 38 | # QEMU_EXTRAOPTIONS is not meant to be directly used, the extensions are |
39 | QEMU_OPTIONS_append_iwmmxt = " -cpu pxa270-c5" | 39 | # PACKAGE_ARCH, not overrides and hence have to do this dance. Simply being arch |
40 | QEMU_OPTIONS_append_armv6 = " -cpu arm1136" | 40 | # specific isn't good enough. |
41 | QEMU_OPTIONS_append_armv7a = " -cpu cortex-a8" | 41 | QEMU_OPTIONS = "-r ${OLDEST_KERNEL} ${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH', True), True) or ""}" |
42 | QEMU_OPTIONS_append_e500v2 = " -cpu e500v2" | 42 | QEMU_EXTRAOPTIONS_iwmmxt = " -cpu pxa270-c5" |
43 | QEMU_OPTIONS_append_e500mc = " -cpu e500mc" | 43 | QEMU_EXTRAOPTIONS_armv6 = " -cpu arm1136" |
44 | QEMU_OPTIONS_append_e5500 = " -cpu e5500" | 44 | QEMU_EXTRAOPTIONS_armv7a = " -cpu cortex-a8" |
45 | QEMU_OPTIONS_append_e5500-64b = " -cpu e5500" | 45 | QEMU_EXTRAOPTIONS_e500v2 = " -cpu e500v2" |
46 | QEMU_OPTIONS_append_e6500 = " -cpu e6500" | 46 | QEMU_EXTRAOPTIONS_e500mc = " -cpu e500mc" |
47 | QEMU_OPTIONS_append_e6500-64b = " -cpu e6500" | 47 | QEMU_EXTRAOPTIONS_e5500 = " -cpu e5500" |
48 | QEMU_OPTIONS_append_ppc7400 = " -cpu 7400" | 48 | QEMU_EXTRAOPTIONS_e5500-64b = " -cpu e5500" |
49 | QEMU_EXTRAOPTIONS_e6500 = " -cpu e6500" | ||
50 | QEMU_EXTRAOPTIONS_e6500-64b = " -cpu e6500" | ||
51 | QEMU_EXTRAOPTIONS_ppc7400 = " -cpu 7400" | ||