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