diff options
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu.inc')
-rw-r--r-- | meta/recipes-devtools/qemu/qemu.inc | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc index 6a744c3e34..c3f73d1ec5 100644 --- a/meta/recipes-devtools/qemu/qemu.inc +++ b/meta/recipes-devtools/qemu/qemu.inc | |||
@@ -3,9 +3,10 @@ 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 | 9 | inherit autotools ptest |
9 | BBCLASSEXTEND = "native nativesdk" | 10 | BBCLASSEXTEND = "native nativesdk" |
10 | 11 | ||
11 | PR = "r1" | 12 | PR = "r1" |
@@ -18,6 +19,8 @@ SRC_URI = "\ | |||
18 | file://disable-grabs.patch \ | 19 | file://disable-grabs.patch \ |
19 | file://exclude-some-arm-EABI-obsolete-syscalls.patch \ | 20 | file://exclude-some-arm-EABI-obsolete-syscalls.patch \ |
20 | file://wacom.patch \ | 21 | file://wacom.patch \ |
22 | file://add-ptest-in-makefile.patch \ | ||
23 | file://run-ptest \ | ||
21 | " | 24 | " |
22 | 25 | ||
23 | SRC_URI_append_class-native = "\ | 26 | SRC_URI_append_class-native = "\ |
@@ -54,6 +57,17 @@ do_configure() { | |||
54 | test ! -e ${S}/target-i386/beginend_funcs.sh || chmod a+x ${S}/target-i386/beginend_funcs.sh | 57 | test ! -e ${S}/target-i386/beginend_funcs.sh || chmod a+x ${S}/target-i386/beginend_funcs.sh |
55 | } | 58 | } |
56 | 59 | ||
60 | do_compile_ptest() { | ||
61 | make buildtest-TESTS | ||
62 | } | ||
63 | |||
64 | do_install_ptest() { | ||
65 | cp -rL ${B}/tests ${D}${PTEST_PATH} | ||
66 | find ${D}${PTEST_PATH}/tests -type f -name "*.[Sshcod]" | xargs -i rm -rf {} | ||
67 | |||
68 | cp ${S}/tests/Makefile ${D}${PTEST_PATH}/tests | ||
69 | } | ||
70 | |||
57 | do_install () { | 71 | do_install () { |
58 | export STRIP="true" | 72 | export STRIP="true" |
59 | autotools_do_install | 73 | autotools_do_install |