diff options
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu.inc')
-rw-r--r-- | meta/recipes-devtools/qemu/qemu.inc | 51 |
1 files changed, 28 insertions, 23 deletions
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc index c9a5d328f9..abbace8704 100644 --- a/meta/recipes-devtools/qemu/qemu.inc +++ b/meta/recipes-devtools/qemu/qemu.inc | |||
@@ -3,24 +3,30 @@ HOMEPAGE = "http://qemu.org" | |||
3 | LICENSE = "GPLv2 & LGPLv2.1" | 3 | LICENSE = "GPLv2 & LGPLv2.1" |
4 | DEPENDS = "glib-2.0 zlib pixman" | 4 | DEPENDS = "glib-2.0 zlib pixman" |
5 | RDEPENDS_${PN}_class-target += "bash python" | 5 | RDEPENDS_${PN}_class-target += "bash python" |
6 | RDEPENDS_${PN}-ptest = "bash make" | ||
6 | 7 | ||
7 | require qemu-targets.inc | 8 | require qemu-targets.inc |
8 | inherit autotools-brokensep | 9 | inherit autotools ptest |
9 | BBCLASSEXTEND = "native nativesdk" | 10 | BBCLASSEXTEND = "native nativesdk" |
10 | 11 | ||
12 | PR = "r1" | ||
13 | |||
11 | # QEMU_TARGETS is overridable variable | 14 | # QEMU_TARGETS is overridable variable |
12 | QEMU_TARGETS ?= "arm aarch64 i386 mips mipsel mips64 mips64el ppc sh4 x86_64" | 15 | QEMU_TARGETS ?= "arm aarch64 i386 mips mipsel mips64 mips64el ppc sh4 x86_64" |
13 | 16 | ||
14 | SRC_URI = "\ | 17 | SRC_URI = "\ |
15 | file://powerpc_rom.bin \ | 18 | file://powerpc_rom.bin \ |
16 | file://larger_default_ram_size.patch \ | ||
17 | file://disable-grabs.patch \ | 19 | file://disable-grabs.patch \ |
18 | file://exclude-some-arm-EABI-obsolete-syscalls.patch \ | 20 | file://exclude-some-arm-EABI-obsolete-syscalls.patch \ |
19 | file://wacom.patch \ | 21 | file://wacom.patch \ |
22 | file://add-ptest-in-makefile.patch \ | ||
23 | file://run-ptest \ | ||
24 | file://cpus.c-qemu_mutex_lock_iothread-fix-race-condition-a.patch \ | ||
20 | " | 25 | " |
21 | 26 | ||
22 | SRC_URI_append_class-native = "\ | 27 | SRC_URI_append_class-native = "\ |
23 | file://fix-libcap-header-issue-on-some-distro.patch \ | 28 | file://fix-libcap-header-issue-on-some-distro.patch \ |
29 | file://cpus.c-qemu_cpu_kick_thread_debugging.patch \ | ||
24 | " | 30 | " |
25 | 31 | ||
26 | EXTRA_OECONF += "--target-list=${@get_qemu_target_list(d)} --disable-werror --disable-bluez --disable-libiscsi --with-system-pixman --extra-cflags='${CFLAGS}'" | 32 | EXTRA_OECONF += "--target-list=${@get_qemu_target_list(d)} --disable-werror --disable-bluez --disable-libiscsi --with-system-pixman --extra-cflags='${CFLAGS}'" |
@@ -35,16 +41,6 @@ do_configure_prepend_class-native() { | |||
35 | if [ ! -z "$BHOST_PKGCONFIG_PATH" ]; then | 41 | if [ ! -z "$BHOST_PKGCONFIG_PATH" ]; then |
36 | export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$BHOST_PKGCONFIG_PATH | 42 | export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$BHOST_PKGCONFIG_PATH |
37 | fi | 43 | fi |
38 | |||
39 | # Undo the -lX11 added by linker-flags.patch, don't assume that host has libX11 installed | ||
40 | sed -i 's/-lX11//g' Makefile.target | ||
41 | } | ||
42 | |||
43 | do_configure_prepend_class-nativesdk() { | ||
44 | if [ "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" = "" ] ; then | ||
45 | # Undo the -lX11 added by linker-flags.patch | ||
46 | sed -i 's/-lX11//g' Makefile.target | ||
47 | fi | ||
48 | } | 44 | } |
49 | 45 | ||
50 | KVMENABLE = "--enable-kvm" | 46 | KVMENABLE = "--enable-kvm" |
@@ -63,6 +59,17 @@ do_configure() { | |||
63 | test ! -e ${S}/target-i386/beginend_funcs.sh || chmod a+x ${S}/target-i386/beginend_funcs.sh | 59 | test ! -e ${S}/target-i386/beginend_funcs.sh || chmod a+x ${S}/target-i386/beginend_funcs.sh |
64 | } | 60 | } |
65 | 61 | ||
62 | do_compile_ptest() { | ||
63 | make buildtest-TESTS | ||
64 | } | ||
65 | |||
66 | do_install_ptest() { | ||
67 | cp -rL ${B}/tests ${D}${PTEST_PATH} | ||
68 | find ${D}${PTEST_PATH}/tests -type f -name "*.[Sshcod]" | xargs -i rm -rf {} | ||
69 | |||
70 | cp ${S}/tests/Makefile ${D}${PTEST_PATH}/tests | ||
71 | } | ||
72 | |||
66 | do_install () { | 73 | do_install () { |
67 | export STRIP="true" | 74 | export STRIP="true" |
68 | autotools_do_install | 75 | autotools_do_install |
@@ -84,8 +91,12 @@ do_install_append() { | |||
84 | } | 91 | } |
85 | # END of qemu-mips workaround | 92 | # END of qemu-mips workaround |
86 | 93 | ||
87 | PACKAGECONFIG ??= "fdt sdl alsa" | 94 | PACKAGECONFIG ??= " \ |
88 | PACKAGECONFIG_class-native ??= "fdt alsa" | 95 | fdt sdl \ |
96 | ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} \ | ||
97 | ${@bb.utils.contains('DISTRO_FEATURES', 'xen', 'xen', '', d)} \ | ||
98 | " | ||
99 | PACKAGECONFIG_class-native ??= "fdt alsa uuid" | ||
89 | PACKAGECONFIG_class-nativesdk ??= "fdt sdl" | 100 | PACKAGECONFIG_class-nativesdk ??= "fdt sdl" |
90 | NATIVEDEPS = "" | 101 | NATIVEDEPS = "" |
91 | NATIVEDEPS_class-native = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libxext-native', '',d)}" | 102 | NATIVEDEPS_class-native = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libxext-native', '',d)}" |
@@ -93,10 +104,8 @@ PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,libsdl ${NATIVEDEPS}," | |||
93 | PACKAGECONFIG[virtfs] = "--enable-virtfs --enable-attr,--disable-virtfs,libcap attr," | 104 | PACKAGECONFIG[virtfs] = "--enable-virtfs --enable-attr,--disable-virtfs,libcap attr," |
94 | PACKAGECONFIG[aio] = "--enable-linux-aio,--disable-linux-aio,libaio," | 105 | PACKAGECONFIG[aio] = "--enable-linux-aio,--disable-linux-aio,libaio," |
95 | PACKAGECONFIG[xfs] = "--enable-xfsctl,--disable-xfsctl,xfsprogs," | 106 | PACKAGECONFIG[xfs] = "--enable-xfsctl,--disable-xfsctl,xfsprogs," |
96 | PACKAGECONFIG[xen] = "--enable-xen, --disable-xen,," | 107 | PACKAGECONFIG[xen] = "--enable-xen,--disable-xen,xen,xen-libxenstore xen-libxenctrl xen-libxenguest" |
97 | PACKAGECONFIG[quorum] = "--enable-quorum, --disable-quorum, gnutls," | ||
98 | PACKAGECONFIG[vnc-tls] = "--enable-vnc --enable-vnc-tls,--disable-vnc-tls, gnutls," | 108 | PACKAGECONFIG[vnc-tls] = "--enable-vnc --enable-vnc-tls,--disable-vnc-tls, gnutls," |
99 | PACKAGECONFIG[vnc-ws] = "--enable-vnc --enable-vnc-ws,--disable-vnc-ws, gnutls," | ||
100 | PACKAGECONFIG[vnc-sasl] = "--enable-vnc --enable-vnc-sasl,--disable-vnc-sasl,cyrus-sasl," | 109 | PACKAGECONFIG[vnc-sasl] = "--enable-vnc --enable-vnc-sasl,--disable-vnc-sasl,cyrus-sasl," |
101 | PACKAGECONFIG[vnc-jpeg] = "--enable-vnc --enable-vnc-jpeg,--disable-vnc-jpeg,jpeg," | 110 | PACKAGECONFIG[vnc-jpeg] = "--enable-vnc --enable-vnc-jpeg,--disable-vnc-jpeg,jpeg," |
102 | PACKAGECONFIG[vnc-png] = "--enable-vnc --enable-vnc-png,--disable-vnc-png,libpng," | 111 | PACKAGECONFIG[vnc-png] = "--enable-vnc --enable-vnc-png,--disable-vnc-png,libpng," |
@@ -110,15 +119,11 @@ PACKAGECONFIG[ssh2] = "--enable-libssh2,--disable-libssh2,libssh2," | |||
110 | PACKAGECONFIG[libusb] = "--enable-libusb,--disable-libusb,libusb1" | 119 | PACKAGECONFIG[libusb] = "--enable-libusb,--disable-libusb,libusb1" |
111 | PACKAGECONFIG[fdt] = "--enable-fdt,--disable-fdt,dtc" | 120 | PACKAGECONFIG[fdt] = "--enable-fdt,--disable-fdt,dtc" |
112 | PACKAGECONFIG[alsa] = ",,alsa-lib" | 121 | PACKAGECONFIG[alsa] = ",,alsa-lib" |
113 | PACKAGECONFIG[glx] = "--enable-glx,--disable-glx,mesa" | 122 | PACKAGECONFIG[glx] = "--enable-opengl,--disable-opengl,mesa" |
114 | PACKAGECONFIG[lzo] = "--enable-lzo,--disable-lzo,lzo" | 123 | PACKAGECONFIG[lzo] = "--enable-lzo,--disable-lzo,lzo" |
115 | PACKAGECONFIG[numa] = "--enable-numa,--disable-numa,numactl" | 124 | PACKAGECONFIG[numa] = "--enable-numa,--disable-numa,numactl" |
125 | PACKAGECONFIG[gnutls] = "--enable-gnutls,--disable-gnutls,gnutls" | ||
116 | 126 | ||
117 | EXTRA_OECONF += "${@bb.utils.contains('PACKAGECONFIG', 'alsa', '--audio-drv-list=oss,alsa', '', d)}" | 127 | EXTRA_OECONF += "${@bb.utils.contains('PACKAGECONFIG', 'alsa', '--audio-drv-list=oss,alsa', '', d)}" |
118 | 128 | ||
119 | # Qemu target will not build in world build for ARM or Mips | ||
120 | BROKEN_qemuarm = "1" | ||
121 | BROKEN_qemumips64 = "1" | ||
122 | BROKEN_qemumips = "1" | ||
123 | |||
124 | INSANE_SKIP_${PN} = "arch" | 129 | INSANE_SKIP_${PN} = "arch" |