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