summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/qemu/qemu.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-devtools/qemu/qemu.inc')
-rw-r--r--recipes-devtools/qemu/qemu.inc22
1 files changed, 11 insertions, 11 deletions
diff --git a/recipes-devtools/qemu/qemu.inc b/recipes-devtools/qemu/qemu.inc
index bf05da9a..532bcf6d 100644
--- a/recipes-devtools/qemu/qemu.inc
+++ b/recipes-devtools/qemu/qemu.inc
@@ -6,7 +6,7 @@ a variety of guest operating systems"
6HOMEPAGE = "http://qemu.org" 6HOMEPAGE = "http://qemu.org"
7LICENSE = "GPLv2 & LGPLv2.1" 7LICENSE = "GPLv2 & LGPLv2.1"
8 8
9RDEPENDS_${PN}-ptest = "bash make" 9RDEPENDS:${PN}-ptest = "bash make"
10 10
11require qemu-targets.inc 11require qemu-targets.inc
12inherit pkgconfig ptest 12inherit pkgconfig ptest
@@ -45,14 +45,14 @@ UPSTREAM_CHECK_REGEX = "qemu-(?P<pver>\d+(\.\d+)+)\.tar"
45 45
46SRC_URI[sha256sum] = "c9174eb5933d9eb5e61f541cd6d1184cd3118dfe4c5c4955bc1bdc4d390fa4e5" 46SRC_URI[sha256sum] = "c9174eb5933d9eb5e61f541cd6d1184cd3118dfe4c5c4955bc1bdc4d390fa4e5"
47 47
48COMPATIBLE_HOST_mipsarchn32 = "null" 48COMPATIBLE_HOST:mipsarchn32 = "null"
49COMPATIBLE_HOST_mipsarchn64 = "null" 49COMPATIBLE_HOST:mipsarchn64 = "null"
50 50
51# Per https://lists.nongnu.org/archive/html/qemu-devel/2020-09/msg03873.html 51# Per https://lists.nongnu.org/archive/html/qemu-devel/2020-09/msg03873.html
52# upstream states qemu doesn't work without optimization 52# upstream states qemu doesn't work without optimization
53DEBUG_BUILD = "0" 53DEBUG_BUILD = "0"
54 54
55do_install_append() { 55do_install:append() {
56 # Prevent QA warnings about installed ${localstatedir}/run 56 # Prevent QA warnings about installed ${localstatedir}/run
57 if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi 57 if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi
58} 58}
@@ -101,9 +101,9 @@ export LIBTOOL="${HOST_SYS}-libtool"
101 101
102B = "${WORKDIR}/build" 102B = "${WORKDIR}/build"
103 103
104EXTRA_OECONF_append = " --python=${HOSTTOOLS_DIR}/python3" 104EXTRA_OECONF:append = " --python=${HOSTTOOLS_DIR}/python3"
105 105
106do_configure_prepend_class-native() { 106do_configure:prepend:class-native() {
107 # Append build host pkg-config paths for native target since the host may provide sdl 107 # Append build host pkg-config paths for native target since the host may provide sdl
108 BHOST_PKGCONFIG_PATH=$(PATH=/usr/bin:/bin pkg-config --variable pc_path pkg-config || echo "") 108 BHOST_PKGCONFIG_PATH=$(PATH=/usr/bin:/bin pkg-config --variable pc_path pkg-config || echo "")
109 if [ ! -z "$BHOST_PKGCONFIG_PATH" ]; then 109 if [ ! -z "$BHOST_PKGCONFIG_PATH" ]; then
@@ -127,7 +127,7 @@ do_install () {
127# This will trigger a MMU access fault in the virtual CPU. With this change, 127# This will trigger a MMU access fault in the virtual CPU. With this change,
128# the qemu-mips works fine. 128# the qemu-mips works fine.
129# IMPORTANT: This piece needs to be removed once the root cause is fixed! 129# IMPORTANT: This piece needs to be removed once the root cause is fixed!
130do_install_append() { 130do_install:append() {
131 if [ -e "${D}/${bindir}/qemu-mips" ]; then 131 if [ -e "${D}/${bindir}/qemu-mips" ]; then
132 create_wrapper ${D}/${bindir}/qemu-mips \ 132 create_wrapper ${D}/${bindir}/qemu-mips \
133 QEMU_RESERVED_VA=0x0 133 QEMU_RESERVED_VA=0x0
@@ -147,8 +147,8 @@ make_qemu_wrapper() {
147} 147}
148 148
149# Disable kvm/virgl/mesa on targets that do not support it 149# Disable kvm/virgl/mesa on targets that do not support it
150PACKAGECONFIG_remove_darwin = "kvm virglrenderer glx gtk+" 150PACKAGECONFIG:remove:darwin = "kvm virglrenderer glx gtk+"
151PACKAGECONFIG_remove_mingw32 = "kvm virglrenderer glx gtk+" 151PACKAGECONFIG:remove:mingw32 = "kvm virglrenderer glx gtk+"
152 152
153PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,libsdl2" 153PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,libsdl2"
154PACKAGECONFIG[virtfs] = "--enable-virtfs --enable-attr --enable-cap-ng,--disable-virtfs,libcap-ng attr," 154PACKAGECONFIG[virtfs] = "--enable-virtfs --enable-attr --enable-cap-ng,--disable-virtfs,libcap-ng attr,"
@@ -193,6 +193,6 @@ PACKAGECONFIG[vhost] = "--enable-vhost-net,--disable-vhost-net,,"
193PACKAGECONFIG[ust] = "--enable-trace-backend=ust,--enable-trace-backend=nop,lttng-ust," 193PACKAGECONFIG[ust] = "--enable-trace-backend=ust,--enable-trace-backend=nop,lttng-ust,"
194PACKAGECONFIG[pie] = "--enable-pie,--disable-pie,," 194PACKAGECONFIG[pie] = "--enable-pie,--disable-pie,,"
195 195
196INSANE_SKIP_${PN} = "arch" 196INSANE_SKIP:${PN} = "arch"
197 197
198FILES_${PN} += "${datadir}/icons" 198FILES:${PN} += "${datadir}/icons"