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 | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 13 | XILINX_QEMU_VERSION ?= "v4.1.50" |
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}" |
| 20 | BRANCH ?= "" |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 21 | REPO ?= "gitsm://github.com/Xilinx/qemu.git;protocol=https" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 22 | |
| 23 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 24 | SRC_URI = "${REPO};${BRANCHARG}" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 25 | |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 26 | SRC_URI_append = " file://0010-configure-Add-pkg-config-handling-for-libgcrypt.patch \ |
| 27 | file://0001-Add-enable-disable-udev.patch \ |
| 28 | " |
| 29 | |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 30 | S = "${WORKDIR}/git" |
| 31 | |
| 32 | # Disable KVM completely |
| 33 | PACKAGECONFIG_remove = "kvm" |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 34 | PACKAGECONFIG_append = " fdt gcrypt" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 35 | |
| 36 | DISABLE_STATIC_pn-${PN} = "" |
| 37 | |
| 38 | PTEST_ENABLED = "" |
| 39 | |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 40 | EXTRA_OECONF_append = " --with-git=/bin/false --disable-git-update" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 41 | |
| 42 | do_install_append() { |
| 43 | # Prevent QA warnings about installed ${localstatedir}/run |
| 44 | if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 45 | } |