Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 1 | SUMMARY = "Xilinx's fork of a fast open source processor emulator" |
| 2 | HOMEPAGE = "https://github.com/xilinx/qemu/" |
| 3 | |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 4 | # x86_64 is needed to build nativesdks |
| 5 | QEMU_TARGETS = "aarch64 arm microblaze microblazeel x86_64" |
Brad Bishop | eb610d6 | 2019-09-09 14:57:03 -0400 | [diff] [blame] | 6 | |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 7 | LIC_FILES_CHKSUM = " \ |
| 8 | file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \ |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 9 | file://COPYING.LIB;endline=24;md5=8c5efda6cf1e1b03dcfd0e6c0d271c7f \ |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 10 | " |
Brad Bishop | eb610d6 | 2019-09-09 14:57:03 -0400 | [diff] [blame] | 11 | DEPENDS = "glib-2.0 zlib pixman" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 12 | |
Andrew Geissler | 7eb438a | 2020-11-30 19:53:16 -0600 | [diff] [blame] | 13 | XILINX_QEMU_VERSION ?= "v5.1.0" |
Andrew Geissler | a9ff2b3 | 2020-10-16 10:11:54 -0500 | [diff] [blame] | 14 | BRANCH ?= "master" |
| 15 | SRCREV ?= "${AUTOREV}" |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 16 | |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 17 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" |
| 18 | |
| 19 | PV = "${XILINX_QEMU_VERSION}-xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}" |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 20 | REPO ?= "gitsm://github.com/Xilinx/qemu.git;protocol=https" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 21 | |
| 22 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 23 | SRC_URI = "${REPO};${BRANCHARG}" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 24 | |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 25 | SRC_URI_append = " file://0010-configure-Add-pkg-config-handling-for-libgcrypt.patch \ |
| 26 | file://0001-Add-enable-disable-udev.patch \ |
| 27 | " |
| 28 | |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 29 | S = "${WORKDIR}/git" |
| 30 | |
| 31 | # Disable KVM completely |
| 32 | PACKAGECONFIG_remove = "kvm" |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 33 | PACKAGECONFIG_append = " fdt gcrypt" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 34 | |
| 35 | DISABLE_STATIC_pn-${PN} = "" |
| 36 | |
| 37 | PTEST_ENABLED = "" |
| 38 | |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 39 | EXTRA_OECONF_append = " --with-git=/bin/false --disable-git-update" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 40 | |
| 41 | do_install_append() { |
| 42 | # Prevent QA warnings about installed ${localstatedir}/run |
| 43 | if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 44 | } |