blob: c0d096213ed9033adf0f5df038913a3a60a8d13b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
QEMU_TARGETS = "aarch64 arm microblaze microblazeel"
require recipes-devtools/qemu/qemu.inc
SUMMARY = "Xilinx's fork of a fast open source processor emulator"
HOMEPAGE = "https://github.com/xilinx/qemu/"
LIC_FILES_CHKSUM = " \
file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \
file://COPYING.LIB;endline=24;md5=c04def7ae38850e7d3ef548588159913 \
"
SRCREV = "45d810957b0f837a5685fbe4bc8d9e3268c1fe64"
SRC_URI = "git://github.com/Xilinx/qemu.git;protocol=https;nobranch=1"
S = "${WORKDIR}/git"
# Disable KVM completely
PACKAGECONFIG_remove = "kvm"
# Enable libgcrypt
PACKAGECONFIG_append = " gcrypt"
DISABLE_STATIC_pn-${PN} = ""
PTEST_ENABLED = ""
# append a suffix dir, to allow multiple versions of QEMU to be installed
EXTRA_OECONF_append = " \
--bindir=${bindir}/qemu-xilinx \
--libexecdir=${libexecdir}/qemu-xilinx \
"
do_configure_prepend() {
# rewrite usage of 'libgcrypt-config' with 'pkg-config libgcrypt'
sed -r -i 's/libgcrypt-config(\s*--)/pkg-config libgcrypt\1/g' ${S}/configure
}
do_install_append() {
# Prevent QA warnings about installed ${localstatedir}/run
if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi
}
|