diff options
Diffstat (limited to 'recipes-devtools/qemu/qemu-qoriq_4.2.bb')
-rw-r--r-- | recipes-devtools/qemu/qemu-qoriq_4.2.bb | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/recipes-devtools/qemu/qemu-qoriq_4.2.bb b/recipes-devtools/qemu/qemu-qoriq_4.2.bb new file mode 100644 index 00000000..f788f724 --- /dev/null +++ b/recipes-devtools/qemu/qemu-qoriq_4.2.bb | |||
@@ -0,0 +1,64 @@ | |||
1 | BBCLASSEXTEND = "" | ||
2 | |||
3 | require qemu.inc | ||
4 | |||
5 | COMPATIBLE_MACHINE = "(qoriq)" | ||
6 | |||
7 | DEPENDS = "glib-2.0 zlib pixman bison-native" | ||
8 | |||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \ | ||
10 | file://COPYING.LIB;endline=24;md5=8c5efda6cf1e1b03dcfd0e6c0d271c7f" | ||
11 | |||
12 | SRC_URI = "gitsm://source.codeaurora.org/external/qoriq/qoriq-components/qemu;nobranch=1 \ | ||
13 | file://powerpc_rom.bin \ | ||
14 | file://run-ptest \ | ||
15 | file://0002-Add-subpackage-ptest-which-runs-all-unit-test-cases-.patch \ | ||
16 | " | ||
17 | |||
18 | SRCREV = "14fda5a42df6c72e890d6a97ff88c5852172604b" | ||
19 | |||
20 | S = "${WORKDIR}/git" | ||
21 | |||
22 | python() { | ||
23 | d.appendVar('PROVIDES', ' ' + d.getVar('BPN').replace('-qoriq', '')) | ||
24 | pkgs = d.getVar('PACKAGES').split() | ||
25 | for p in pkgs: | ||
26 | if '-qoriq' in p: | ||
27 | d.appendVar('RPROVIDES:' + p, ' ' + p.replace('-qoriq', '')) | ||
28 | d.appendVar('RCONFLICTS:' + p, ' ' + p.replace('-qoriq', '')) | ||
29 | d.appendVar('RREPLACES:' + p, ' ' + p.replace('-qoriq', '')) | ||
30 | } | ||
31 | |||
32 | RDEPENDS:${PN}:class-target += "bash" | ||
33 | |||
34 | EXTRA_OECONF:append:class-target = " --target-list=${@get_qemu_target_list(d)}" | ||
35 | EXTRA_OECONF:append:class-target:mipsarcho32 = "${@bb.utils.contains('BBEXTENDCURR', 'multilib', ' --disable-capstone', '', d)}" | ||
36 | EXTRA_OECONF:append:class-nativesdk = " --target-list=${@get_qemu_target_list(d)}" | ||
37 | |||
38 | do_install:append:class-nativesdk() { | ||
39 | ${@bb.utils.contains('PACKAGECONFIG', 'gtk+', 'make_qemu_wrapper', '', d)} | ||
40 | } | ||
41 | |||
42 | do_install_ptest() { | ||
43 | cp -rL ${B}/tests ${D}${PTEST_PATH} | ||
44 | find ${D}${PTEST_PATH}/tests -type f -name "*.[Sshcod]" | xargs -i rm -rf {} | ||
45 | |||
46 | cp ${S}/tests/Makefile.include ${D}${PTEST_PATH}/tests | ||
47 | # Don't check the file genreated by configure | ||
48 | sed -i -e '/wildcard config-host.mak/d' \ | ||
49 | -e '$ {/endif/d}' ${D}${PTEST_PATH}/tests/Makefile.include | ||
50 | sed -i -e 's,${HOSTTOOLS_DIR}/python3,${bindir}/python3,' \ | ||
51 | ${D}/${PTEST_PATH}/tests/qemu-iotests/common.env | ||
52 | } | ||
53 | |||
54 | PACKAGECONFIG ??= " \ | ||
55 | fdt sdl kvm aio libusb vhost numa \ | ||
56 | ${@bb.utils.filter('DISTRO_FEATURES', 'alsa xen', d)} \ | ||
57 | " | ||
58 | PACKAGECONFIG:class-nativesdk ??= "fdt sdl kvm" | ||
59 | |||
60 | PACKAGECONFIG[xkbcommon] = ",," | ||
61 | PACKAGECONFIG[libudev] = ",," | ||
62 | |||
63 | DISABLE_STATIC = "" | ||
64 | |||