blob: daff5ffc9cc8e544466a9609e7567b4b61bb5c29 [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) != '']}"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080020SRC_URI = "${REPO};${BRANCHARG}"
Brad Bishop286d45c2018-10-02 15:21:57 -040021
22S = "${WORKDIR}/git"
23
24# Disable KVM completely
25PACKAGECONFIG_remove = "kvm"
26
27# Enable libgcrypt
28PACKAGECONFIG_append = " gcrypt"
29
30DISABLE_STATIC_pn-${PN} = ""
31
32PTEST_ENABLED = ""
33
34# append a suffix dir, to allow multiple versions of QEMU to be installed
35EXTRA_OECONF_append = " \
36 --bindir=${bindir}/qemu-xilinx \
37 --libexecdir=${libexecdir}/qemu-xilinx \
38 "
39
40do_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
45do_install_append() {
46 # Prevent QA warnings about installed ${localstatedir}/run
47 if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi
48}
49