blob: c22c43c06885fd0792880fbb2a69c7d95c0f2929 [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
Andrew Geissler84ad7c52020-06-27 00:00:16 -05004# x86_64 is needed to build nativesdks
5QEMU_TARGETS = "aarch64 arm microblaze microblazeel x86_64"
Brad Bishopeb610d62019-09-09 14:57:03 -04006
Brad Bishop286d45c2018-10-02 15:21:57 -04007LIC_FILES_CHKSUM = " \
8 file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \
Andrew Geissler84ad7c52020-06-27 00:00:16 -05009 file://COPYING.LIB;endline=24;md5=8c5efda6cf1e1b03dcfd0e6c0d271c7f \
Brad Bishop286d45c2018-10-02 15:21:57 -040010 "
Brad Bishopeb610d62019-09-09 14:57:03 -040011DEPENDS = "glib-2.0 zlib pixman"
Brad Bishop286d45c2018-10-02 15:21:57 -040012
Andrew Geissler7eb438a2020-11-30 19:53:16 -060013XILINX_QEMU_VERSION ?= "v5.1.0"
Andrew Geisslera9ff2b32020-10-16 10:11:54 -050014BRANCH ?= "master"
15SRCREV ?= "${AUTOREV}"
Andrew Geissler84ad7c52020-06-27 00:00:16 -050016
Brad Bishop286d45c2018-10-02 15:21:57 -040017FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
18
19PV = "${XILINX_QEMU_VERSION}-xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}"
Andrew Geissler84ad7c52020-06-27 00:00:16 -050020REPO ?= "gitsm://github.com/Xilinx/qemu.git;protocol=https"
Brad Bishop286d45c2018-10-02 15:21:57 -040021
22BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080023SRC_URI = "${REPO};${BRANCHARG}"
Brad Bishop286d45c2018-10-02 15:21:57 -040024
Andrew Geissler84ad7c52020-06-27 00:00:16 -050025SRC_URI_append = " file://0010-configure-Add-pkg-config-handling-for-libgcrypt.patch \
26 file://0001-Add-enable-disable-udev.patch \
27"
28
Brad Bishop286d45c2018-10-02 15:21:57 -040029S = "${WORKDIR}/git"
30
31# Disable KVM completely
32PACKAGECONFIG_remove = "kvm"
Andrew Geissler84ad7c52020-06-27 00:00:16 -050033PACKAGECONFIG_append = " fdt gcrypt"
Brad Bishop286d45c2018-10-02 15:21:57 -040034
35DISABLE_STATIC_pn-${PN} = ""
36
37PTEST_ENABLED = ""
38
Andrew Geissler84ad7c52020-06-27 00:00:16 -050039EXTRA_OECONF_append = " --with-git=/bin/false --disable-git-update"
Brad Bishop286d45c2018-10-02 15:21:57 -040040
41do_install_append() {
42 # Prevent QA warnings about installed ${localstatedir}/run
43 if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi
Andrew Geissler84ad7c52020-06-27 00:00:16 -050044}