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) != '']}" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 20 | SRC_URI = "${REPO};${BRANCHARG}" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 21 | |
| 22 | S = "${WORKDIR}/git" |
| 23 | |
| 24 | # Disable KVM completely |
| 25 | PACKAGECONFIG_remove = "kvm" |
| 26 | |
| 27 | # Enable libgcrypt |
| 28 | PACKAGECONFIG_append = " gcrypt" |
| 29 | |
| 30 | DISABLE_STATIC_pn-${PN} = "" |
| 31 | |
| 32 | PTEST_ENABLED = "" |
| 33 | |
| 34 | # append a suffix dir, to allow multiple versions of QEMU to be installed |
| 35 | EXTRA_OECONF_append = " \ |
| 36 | --bindir=${bindir}/qemu-xilinx \ |
| 37 | --libexecdir=${libexecdir}/qemu-xilinx \ |
| 38 | " |
| 39 | |
| 40 | do_configure_prepend() { |
| 41 | # rewrite usage of 'libgcrypt-config' with 'pkg-config libgcrypt' |
| 42 | sed -r -i 's/libgcrypt-config(\s*--)/pkg-config libgcrypt\1/g' ${S}/configure |
| 43 | } |
| 44 | |
| 45 | do_install_append() { |
| 46 | # Prevent QA warnings about installed ${localstatedir}/run |
| 47 | if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi |
| 48 | } |
| 49 | |