diff options
Diffstat (limited to 'recipes-devtools/qemu/qemu-qoriq_git.bb')
-rw-r--r-- | recipes-devtools/qemu/qemu-qoriq_git.bb | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/recipes-devtools/qemu/qemu-qoriq_git.bb b/recipes-devtools/qemu/qemu-qoriq_git.bb new file mode 100644 index 0000000..c70ed14 --- /dev/null +++ b/recipes-devtools/qemu/qemu-qoriq_git.bb | |||
@@ -0,0 +1,74 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
2 | |||
3 | require recipes-devtools/qemu/qemu.inc | ||
4 | |||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \ | ||
6 | file://COPYING.LIB;endline=24;md5=c04def7ae38850e7d3ef548588159913" | ||
7 | |||
8 | PROVIDES = "qemu" | ||
9 | |||
10 | python() { | ||
11 | pkgs = d.getVar('PACKAGES', True).split() | ||
12 | for p in pkgs: | ||
13 | if 'qemu-qoriq' in p: | ||
14 | d.appendVar("RPROVIDES_%s" % p, p.replace('qemu-qoriq', 'qemu')) | ||
15 | d.appendVar("RCONFLICTS_%s" % p, p.replace('qemu-qoriq', 'qemu')) | ||
16 | d.appendVar("RREPLACES_%s" % p, p.replace('qemu-qoriq', 'qemu')) | ||
17 | } | ||
18 | |||
19 | # remove not supported PACKAGECONFIG by this recipe | ||
20 | PACKAGECONFIG[gcrypt] = "" | ||
21 | PACKAGECONFIG[nettle] = "" | ||
22 | PACKAGECONFIG[nss] = "" | ||
23 | |||
24 | SRC_URI = "git://git.freescale.com/ppc/sdk/qemu.git;branch=sdk-v2.0.x" | ||
25 | SRCREV = "4b846e9b2b15660abace52dd27a406af08c4212d" | ||
26 | |||
27 | # add ptest patches | ||
28 | SRC_URI_append = "\ | ||
29 | file://add-ptest-in-makefile.patch \ | ||
30 | file://run-ptest \ | ||
31 | " | ||
32 | |||
33 | S = "${WORKDIR}/git" | ||
34 | |||
35 | QEMU_TARGETS = "ppc" | ||
36 | PPC_OECONF = '${SDL} --cross-prefix=${TARGET_PREFIX} --disable-werror --disable-vnc --disable-bluez --disable-curl' | ||
37 | EXTRA_OECONF_e5500-64b = "--target-list=ppc64-softmmu ${PPC_OECONF}" | ||
38 | EXTRA_OECONF_e6500-64b = "--target-list=ppc64-softmmu ${PPC_OECONF}" | ||
39 | EXTRA_OECONF_e6500 = "--target-list=ppc64-softmmu ${PPC_OECONF}" | ||
40 | EXTRA_OECONF_e5500 = "--target-list=ppc64-softmmu ${PPC_OECONF}" | ||
41 | EXTRA_OECONF_e500v2 = "--target-list=ppc-softmmu ${PPC_OECONF}" | ||
42 | EXTRA_OECONF_e500mc = "--target-list=ppc-softmmu ${PPC_OECONF}" | ||
43 | PACKAGECONFIG_append = " libusb" | ||
44 | |||
45 | DISABLE_STATIC = "" | ||
46 | |||
47 | do_configure_prepend() { | ||
48 | export PKG_CONFIG=${STAGING_DIR_NATIVE}${bindir_native}/pkg-config | ||
49 | } | ||
50 | |||
51 | do_configure_append () { | ||
52 | grep 'CONFIG_FDT=y' config-host.mak | ||
53 | } | ||
54 | |||
55 | # gets around qemu.inc trying to install powerpc_rom.bin | ||
56 | do_install_prepend() { | ||
57 | touch ${WORKDIR}/powerpc_rom.bin | ||
58 | } | ||
59 | |||
60 | do_install_append() { | ||
61 | rm ${WORKDIR}/powerpc_rom.bin | ||
62 | # Prevent QA warnings about installed ${localstatedir}/run | ||
63 | if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi | ||
64 | } | ||
65 | |||
66 | FILES_${PN} += "${datadir}/qemu/" | ||
67 | INSANE_SKIP_${PN} += "dev-deps" | ||
68 | |||
69 | # This is only meant to be build to run on the target | ||
70 | # for the given arch types listed, otherwise don't let | ||
71 | # the package get built. COMPATIBLE_HOST would not work | ||
72 | # because it was too generic | ||
73 | COMPATIBLE_MACHINE = "a^" | ||
74 | COMPATIBLE_MACHINE_libc-glibc_qoriq-ppc = ".*" | ||