summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/qemu/qemu.inc
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2017-01-02 17:17:56 +1000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-08 11:52:57 +0000
commit27fbd839d40b6e6e1825561eac48e815f8d5643e (patch)
tree71472ceea68b3d30d89abafb0ad62aeb65829c10 /meta/recipes-devtools/qemu/qemu.inc
parented25789bc0661a5d4ff2b6219d318d5058e6b12f (diff)
downloadpoky-27fbd839d40b6e6e1825561eac48e815f8d5643e.tar.gz
qemu: Move recipe version specific patches and features to recipe
Move all the version specific patches, overrides and configuration that are in qemu.inc to the versioned QEMU recipe. This includes moving patches that target the versioned recipe, ptest configuration (which is not available in QEMU by default) and the installing of the powerpc_rom.bin. All these patches/files are also only located in the FILESEXTRAPATHS that is valid from the recipe file and not from qemu.inc itself. The purpose of this change is to make the qemu.inc re-usable for multiple versions of QEMU as well as forks and recipes that intend to provide custom patches. (From OE-Core rev: 2431faeb88a008b501547808fb8632943b992dcb) Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu.inc')
-rw-r--r--meta/recipes-devtools/qemu/qemu.inc30
1 files changed, 1 insertions, 29 deletions
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index 5bd41d0d90..85b344c960 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -3,29 +3,14 @@ HOMEPAGE = "http://qemu.org"
3LICENSE = "GPLv2 & LGPLv2.1" 3LICENSE = "GPLv2 & LGPLv2.1"
4DEPENDS = "glib-2.0 zlib pixman" 4DEPENDS = "glib-2.0 zlib pixman"
5RDEPENDS_${PN}_class-target += "bash" 5RDEPENDS_${PN}_class-target += "bash"
6RDEPENDS_${PN}-ptest = "bash make"
7 6
8require qemu-targets.inc 7require qemu-targets.inc
9inherit autotools pkgconfig ptest bluetooth 8inherit autotools pkgconfig bluetooth
10BBCLASSEXTEND = "native nativesdk" 9BBCLASSEXTEND = "native nativesdk"
11 10
12# QEMU_TARGETS is overridable variable 11# QEMU_TARGETS is overridable variable
13QEMU_TARGETS ?= "arm aarch64 i386 mips mipsel mips64 mips64el ppc sh4 x86_64" 12QEMU_TARGETS ?= "arm aarch64 i386 mips mipsel mips64 mips64el ppc sh4 x86_64"
14 13
15SRC_URI = "\
16 file://powerpc_rom.bin \
17 file://disable-grabs.patch \
18 file://exclude-some-arm-EABI-obsolete-syscalls.patch \
19 file://wacom.patch \
20 file://add-ptest-in-makefile.patch \
21 file://run-ptest \
22 "
23
24SRC_URI_append_class-native = "\
25 file://fix-libcap-header-issue-on-some-distro.patch \
26 file://cpus.c-qemu_cpu_kick_thread_debugging.patch \
27 "
28
29EXTRA_OECONF = " \ 14EXTRA_OECONF = " \
30 --prefix=${prefix} \ 15 --prefix=${prefix} \
31 --bindir=${bindir} \ 16 --bindir=${bindir} \
@@ -70,22 +55,9 @@ do_configure() {
70 test ! -e ${S}/target-i386/beginend_funcs.sh || chmod a+x ${S}/target-i386/beginend_funcs.sh 55 test ! -e ${S}/target-i386/beginend_funcs.sh || chmod a+x ${S}/target-i386/beginend_funcs.sh
71} 56}
72 57
73do_compile_ptest() {
74 make buildtest-TESTS
75}
76
77do_install_ptest() {
78 cp -rL ${B}/tests ${D}${PTEST_PATH}
79 find ${D}${PTEST_PATH}/tests -type f -name "*.[Sshcod]" | xargs -i rm -rf {}
80
81 cp ${S}/tests/Makefile.include ${D}${PTEST_PATH}/tests
82}
83
84do_install () { 58do_install () {
85 export STRIP="true" 59 export STRIP="true"
86 autotools_do_install 60 autotools_do_install
87 install -d ${D}${datadir}/qemu
88 install -m 0755 ${WORKDIR}/powerpc_rom.bin ${D}${datadir}/qemu
89} 61}
90 62
91# The following fragment will create a wrapper for qemu-mips user emulation 63# The following fragment will create a wrapper for qemu-mips user emulation