Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 1 | QEMU_TARGETS = "aarch64 arm microblaze microblazeel" |
| 2 | |
| 3 | require recipes-devtools/qemu/qemu.inc |
| 4 | |
| 5 | SUMMARY = "Xilinx's fork of a fast open source processor emulator" |
| 6 | HOMEPAGE = "https://github.com/xilinx/qemu/" |
| 7 | |
| 8 | LIC_FILES_CHKSUM = " \ |
| 9 | file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \ |
| 10 | file://COPYING.LIB;endline=24;md5=c04def7ae38850e7d3ef548588159913 \ |
| 11 | " |
| 12 | |
| 13 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" |
| 14 | |
| 15 | PV = "${XILINX_QEMU_VERSION}-xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}" |
| 16 | BRANCH ?= "" |
| 17 | REPO ?= "git://github.com/Xilinx/qemu.git;protocol=https" |
| 18 | |
| 19 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" |
| 20 | SRC_URI = "${REPO};${BRANCHARG} \ |
| 21 | file://memfd.patch \ |
| 22 | " |
| 23 | |
| 24 | S = "${WORKDIR}/git" |
| 25 | |
| 26 | # Disable KVM completely |
| 27 | PACKAGECONFIG_remove = "kvm" |
| 28 | |
| 29 | # Enable libgcrypt |
| 30 | PACKAGECONFIG_append = " gcrypt" |
| 31 | |
| 32 | DISABLE_STATIC_pn-${PN} = "" |
| 33 | |
| 34 | PTEST_ENABLED = "" |
| 35 | |
| 36 | # append a suffix dir, to allow multiple versions of QEMU to be installed |
| 37 | EXTRA_OECONF_append = " \ |
| 38 | --bindir=${bindir}/qemu-xilinx \ |
| 39 | --libexecdir=${libexecdir}/qemu-xilinx \ |
| 40 | " |
| 41 | |
| 42 | do_configure_prepend() { |
| 43 | # rewrite usage of 'libgcrypt-config' with 'pkg-config libgcrypt' |
| 44 | sed -r -i 's/libgcrypt-config(\s*--)/pkg-config libgcrypt\1/g' ${S}/configure |
| 45 | } |
| 46 | |
| 47 | do_install_append() { |
| 48 | # Prevent QA warnings about installed ${localstatedir}/run |
| 49 | if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi |
| 50 | } |
| 51 | |