blob: d7b495b671459844311f998fee5a90eb8aa53e3b [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 Geissler84ad7c52020-06-27 00:00:16 -050013XILINX_QEMU_VERSION ?= "v4.1.50"
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}"
20BRANCH ?= ""
Andrew Geissler84ad7c52020-06-27 00:00:16 -050021REPO ?= "gitsm://github.com/Xilinx/qemu.git;protocol=https"
Brad Bishop286d45c2018-10-02 15:21:57 -040022
23BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080024SRC_URI = "${REPO};${BRANCHARG}"
Brad Bishop286d45c2018-10-02 15:21:57 -040025
Andrew Geissler84ad7c52020-06-27 00:00:16 -050026SRC_URI_append = " file://0010-configure-Add-pkg-config-handling-for-libgcrypt.patch \
27 file://0001-Add-enable-disable-udev.patch \
28"
29
Brad Bishop286d45c2018-10-02 15:21:57 -040030S = "${WORKDIR}/git"
31
32# Disable KVM completely
33PACKAGECONFIG_remove = "kvm"
Andrew Geissler84ad7c52020-06-27 00:00:16 -050034PACKAGECONFIG_append = " fdt gcrypt"
Brad Bishop286d45c2018-10-02 15:21:57 -040035
36DISABLE_STATIC_pn-${PN} = ""
37
38PTEST_ENABLED = ""
39
Andrew Geissler84ad7c52020-06-27 00:00:16 -050040EXTRA_OECONF_append = " --with-git=/bin/false --disable-git-update"
Brad Bishop286d45c2018-10-02 15:21:57 -040041
42do_install_append() {
43 # Prevent QA warnings about installed ${localstatedir}/run
44 if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi
Andrew Geissler84ad7c52020-06-27 00:00:16 -050045}