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 | |
Brad Bishop | eb610d6 | 2019-09-09 14:57:03 -0400 | [diff] [blame] | 4 | QEMU_TARGETS = "aarch64 arm microblaze microblazeel" |
| 5 | |
| 6 | XILINX_RELEASE_VERSION = "v2019.1" |
| 7 | XILINX_QEMU_VERSION ?= "v2.11.1" |
| 8 | BRANCH ?= "branch/xilinx-v2019.1" |
| 9 | SRCREV ?= "5f38ea92fb697b94ad43f01fe162f3ed6e6b0e16" |
| 10 | |
| 11 | |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 12 | LIC_FILES_CHKSUM = " \ |
| 13 | file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \ |
| 14 | file://COPYING.LIB;endline=24;md5=c04def7ae38850e7d3ef548588159913 \ |
| 15 | " |
Brad Bishop | eb610d6 | 2019-09-09 14:57:03 -0400 | [diff] [blame] | 16 | DEPENDS = "glib-2.0 zlib pixman" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 17 | |
| 18 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" |
| 19 | |
| 20 | PV = "${XILINX_QEMU_VERSION}-xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}" |
| 21 | BRANCH ?= "" |
| 22 | REPO ?= "git://github.com/Xilinx/qemu.git;protocol=https" |
| 23 | |
| 24 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 25 | SRC_URI = "${REPO};${BRANCHARG}" |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 26 | |
| 27 | S = "${WORKDIR}/git" |
| 28 | |
| 29 | # Disable KVM completely |
| 30 | PACKAGECONFIG_remove = "kvm" |
| 31 | |
| 32 | # Enable libgcrypt |
| 33 | PACKAGECONFIG_append = " gcrypt" |
| 34 | |
| 35 | DISABLE_STATIC_pn-${PN} = "" |
| 36 | |
| 37 | PTEST_ENABLED = "" |
| 38 | |
| 39 | # append a suffix dir, to allow multiple versions of QEMU to be installed |
| 40 | EXTRA_OECONF_append = " \ |
| 41 | --bindir=${bindir}/qemu-xilinx \ |
| 42 | --libexecdir=${libexecdir}/qemu-xilinx \ |
| 43 | " |
| 44 | |
| 45 | do_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 | |
| 50 | do_install_append() { |
| 51 | # Prevent QA warnings about installed ${localstatedir}/run |
| 52 | if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi |
Brad Bishop | eb610d6 | 2019-09-09 14:57:03 -0400 | [diff] [blame] | 53 | } |