summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/qemu
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/qemu')
-rw-r--r--meta/recipes-devtools/qemu/nativesdk-qemu-helper_1.0.bb2
-rw-r--r--meta/recipes-devtools/qemu/qemu-helper-native_1.0.bb2
-rw-r--r--meta/recipes-devtools/qemu/qemu-native.inc6
-rw-r--r--meta/recipes-devtools/qemu/qemu-native_6.0.0.bb2
-rw-r--r--meta/recipes-devtools/qemu/qemu-system-native_6.0.0.bb6
-rw-r--r--meta/recipes-devtools/qemu/qemu.inc24
-rw-r--r--meta/recipes-devtools/qemu/qemu_6.0.0.bb14
7 files changed, 28 insertions, 28 deletions
diff --git a/meta/recipes-devtools/qemu/nativesdk-qemu-helper_1.0.bb b/meta/recipes-devtools/qemu/nativesdk-qemu-helper_1.0.bb
index ca1ad964dc..08c5ca7700 100644
--- a/meta/recipes-devtools/qemu/nativesdk-qemu-helper_1.0.bb
+++ b/meta/recipes-devtools/qemu/nativesdk-qemu-helper_1.0.bb
@@ -1,6 +1,6 @@
1SUMMARY = "Qemu helper scripts" 1SUMMARY = "Qemu helper scripts"
2LICENSE = "GPLv2" 2LICENSE = "GPLv2"
3RDEPENDS_${PN} = "nativesdk-qemu \ 3RDEPENDS:${PN} = "nativesdk-qemu \
4 nativesdk-python3-shell nativesdk-python3-fcntl nativesdk-python3-logging \ 4 nativesdk-python3-shell nativesdk-python3-fcntl nativesdk-python3-logging \
5 " 5 "
6 6
diff --git a/meta/recipes-devtools/qemu/qemu-helper-native_1.0.bb b/meta/recipes-devtools/qemu/qemu-helper-native_1.0.bb
index 2fc07669dd..ccf1c46783 100644
--- a/meta/recipes-devtools/qemu/qemu-helper-native_1.0.bb
+++ b/meta/recipes-devtools/qemu/qemu-helper-native_1.0.bb
@@ -1,6 +1,6 @@
1SUMMARY = "Helper utilities needed by the runqemu script" 1SUMMARY = "Helper utilities needed by the runqemu script"
2LICENSE = "GPLv2" 2LICENSE = "GPLv2"
3RDEPENDS_${PN} = "qemu-system-native" 3RDEPENDS:${PN} = "qemu-system-native"
4PR = "r1" 4PR = "r1"
5 5
6LIC_FILES_CHKSUM = "file://${WORKDIR}/tunctl.c;endline=4;md5=ff3a09996bc5fff6bc5d4e0b4c28f999" 6LIC_FILES_CHKSUM = "file://${WORKDIR}/tunctl.c;endline=4;md5=ff3a09996bc5fff6bc5d4e0b4c28f999"
diff --git a/meta/recipes-devtools/qemu/qemu-native.inc b/meta/recipes-devtools/qemu/qemu-native.inc
index 54e49d8bc6..5d3ba3486c 100644
--- a/meta/recipes-devtools/qemu/qemu-native.inc
+++ b/meta/recipes-devtools/qemu/qemu-native.inc
@@ -2,10 +2,10 @@ require qemu.inc
2 2
3inherit native 3inherit native
4 4
5EXTRA_OEMAKE_append = " LD='${LD}' AR='${AR}' OBJCOPY='${OBJCOPY}' LDFLAGS='${LDFLAGS}'" 5EXTRA_OEMAKE:append = " LD='${LD}' AR='${AR}' OBJCOPY='${OBJCOPY}' LDFLAGS='${LDFLAGS}'"
6 6
7LDFLAGS_append = " -fuse-ld=bfd" 7LDFLAGS:append = " -fuse-ld=bfd"
8 8
9do_install_append() { 9do_install:append() {
10 ${@bb.utils.contains('PACKAGECONFIG', 'gtk+', 'make_qemu_wrapper', '', d)} 10 ${@bb.utils.contains('PACKAGECONFIG', 'gtk+', 'make_qemu_wrapper', '', d)}
11} 11}
diff --git a/meta/recipes-devtools/qemu/qemu-native_6.0.0.bb b/meta/recipes-devtools/qemu/qemu-native_6.0.0.bb
index d23d7a8ada..d9ef155569 100644
--- a/meta/recipes-devtools/qemu/qemu-native_6.0.0.bb
+++ b/meta/recipes-devtools/qemu/qemu-native_6.0.0.bb
@@ -4,6 +4,6 @@ DEPENDS = "glib-2.0-native zlib-native"
4 4
5require qemu-native.inc 5require qemu-native.inc
6 6
7EXTRA_OECONF_append = " --target-list=${@get_qemu_usermode_target_list(d)} --disable-tools --disable-blobs --disable-guest-agent" 7EXTRA_OECONF:append = " --target-list=${@get_qemu_usermode_target_list(d)} --disable-tools --disable-blobs --disable-guest-agent"
8 8
9PACKAGECONFIG ??= "pie" 9PACKAGECONFIG ??= "pie"
diff --git a/meta/recipes-devtools/qemu/qemu-system-native_6.0.0.bb b/meta/recipes-devtools/qemu/qemu-system-native_6.0.0.bb
index 9d7d0cdceb..1c12eb7cf2 100644
--- a/meta/recipes-devtools/qemu/qemu-system-native_6.0.0.bb
+++ b/meta/recipes-devtools/qemu/qemu-system-native_6.0.0.bb
@@ -9,16 +9,16 @@ require qemu-native.inc
9# and avoid file clashes 9# and avoid file clashes
10DEPENDS = "glib-2.0-native zlib-native pixman-native qemu-native bison-native" 10DEPENDS = "glib-2.0-native zlib-native pixman-native qemu-native bison-native"
11 11
12EXTRA_OECONF_append = " --target-list=${@get_qemu_system_target_list(d)}" 12EXTRA_OECONF:append = " --target-list=${@get_qemu_system_target_list(d)}"
13 13
14PACKAGECONFIG ??= "fdt alsa kvm pie \ 14PACKAGECONFIG ??= "fdt alsa kvm pie \
15 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer glx', '', d)} \ 15 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer glx', '', d)} \
16" 16"
17 17
18# Handle distros such as CentOS 5 32-bit that do not have kvm support 18# Handle distros such as CentOS 5 32-bit that do not have kvm support
19PACKAGECONFIG_remove = "${@'kvm' if not os.path.exists('/usr/include/linux/kvm.h') else ''}" 19PACKAGECONFIG:remove = "${@'kvm' if not os.path.exists('/usr/include/linux/kvm.h') else ''}"
20 20
21do_install_append() { 21do_install:append() {
22 install -Dm 0755 ${WORKDIR}/powerpc_rom.bin ${D}${datadir}/qemu 22 install -Dm 0755 ${WORKDIR}/powerpc_rom.bin ${D}${datadir}/qemu
23 23
24 # The following is also installed by qemu-native 24 # The following is also installed by qemu-native
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index 33a8baea7f..4de8a9098b 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/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" 9RDEPENDS:${PN}-ptest = "bash"
10 10
11require qemu-targets.inc 11require qemu-targets.inc
12inherit pkgconfig ptest 12inherit pkgconfig ptest
@@ -44,8 +44,8 @@ UPSTREAM_CHECK_REGEX = "qemu-(?P<pver>\d+(\.\d+)+)\.tar"
44 44
45SRC_URI[sha256sum] = "87bc1a471ca24b97e7005711066007d443423d19aacda3d442558ae032fa30b9" 45SRC_URI[sha256sum] = "87bc1a471ca24b97e7005711066007d443423d19aacda3d442558ae032fa30b9"
46 46
47SRC_URI_append_class-target = " file://cross.patch" 47SRC_URI:append:class-target = " file://cross.patch"
48SRC_URI_append_class-nativesdk = " file://cross.patch" 48SRC_URI:append:class-nativesdk = " file://cross.patch"
49 49
50# Applies against virglrender < 0.6.0 and not qemu itself 50# Applies against virglrender < 0.6.0 and not qemu itself
51CVE_CHECK_WHITELIST += "CVE-2017-5957" 51CVE_CHECK_WHITELIST += "CVE-2017-5957"
@@ -58,14 +58,14 @@ CVE_CHECK_WHITELIST += "CVE-2007-0998"
58# https://bugzilla.redhat.com/show_bug.cgi?id=1609015#c11 58# https://bugzilla.redhat.com/show_bug.cgi?id=1609015#c11
59CVE_CHECK_WHITELIST += "CVE-2018-18438" 59CVE_CHECK_WHITELIST += "CVE-2018-18438"
60 60
61COMPATIBLE_HOST_mipsarchn32 = "null" 61COMPATIBLE_HOST:mipsarchn32 = "null"
62COMPATIBLE_HOST_mipsarchn64 = "null" 62COMPATIBLE_HOST:mipsarchn64 = "null"
63 63
64# Per https://lists.nongnu.org/archive/html/qemu-devel/2020-09/msg03873.html 64# Per https://lists.nongnu.org/archive/html/qemu-devel/2020-09/msg03873.html
65# upstream states qemu doesn't work without optimization 65# upstream states qemu doesn't work without optimization
66DEBUG_BUILD = "0" 66DEBUG_BUILD = "0"
67 67
68do_install_append() { 68do_install:append() {
69 # Prevent QA warnings about installed ${localstatedir}/run 69 # Prevent QA warnings about installed ${localstatedir}/run
70 if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi 70 if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi
71} 71}
@@ -112,7 +112,7 @@ B = "${WORKDIR}/build"
112 112
113#EXTRA_OECONF_append = " --python=${HOSTTOOLS_DIR}/python3" 113#EXTRA_OECONF_append = " --python=${HOSTTOOLS_DIR}/python3"
114 114
115do_configure_prepend_class-native() { 115do_configure:prepend:class-native() {
116 # Append build host pkg-config paths for native target since the host may provide sdl 116 # Append build host pkg-config paths for native target since the host may provide sdl
117 BHOST_PKGCONFIG_PATH=$(PATH=/usr/bin:/bin pkg-config --variable pc_path pkg-config || echo "") 117 BHOST_PKGCONFIG_PATH=$(PATH=/usr/bin:/bin pkg-config --variable pc_path pkg-config || echo "")
118 if [ ! -z "$BHOST_PKGCONFIG_PATH" ]; then 118 if [ ! -z "$BHOST_PKGCONFIG_PATH" ]; then
@@ -136,7 +136,7 @@ do_install () {
136# This will trigger a MMU access fault in the virtual CPU. With this change, 136# This will trigger a MMU access fault in the virtual CPU. With this change,
137# the qemu-mips works fine. 137# the qemu-mips works fine.
138# IMPORTANT: This piece needs to be removed once the root cause is fixed! 138# IMPORTANT: This piece needs to be removed once the root cause is fixed!
139do_install_append() { 139do_install:append() {
140 if [ -e "${D}/${bindir}/qemu-mips" ]; then 140 if [ -e "${D}/${bindir}/qemu-mips" ]; then
141 create_wrapper ${D}/${bindir}/qemu-mips \ 141 create_wrapper ${D}/${bindir}/qemu-mips \
142 QEMU_RESERVED_VA=0x0 142 QEMU_RESERVED_VA=0x0
@@ -156,8 +156,8 @@ make_qemu_wrapper() {
156} 156}
157 157
158# Disable kvm/virgl/mesa on targets that do not support it 158# Disable kvm/virgl/mesa on targets that do not support it
159PACKAGECONFIG_remove_darwin = "kvm virglrenderer glx gtk+" 159PACKAGECONFIG:remove:darwin = "kvm virglrenderer glx gtk+"
160PACKAGECONFIG_remove_mingw32 = "kvm virglrenderer glx gtk+" 160PACKAGECONFIG:remove:mingw32 = "kvm virglrenderer glx gtk+"
161 161
162PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,libsdl2" 162PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,libsdl2"
163PACKAGECONFIG[virtfs] = "--enable-virtfs --enable-attr --enable-cap-ng,--disable-virtfs,libcap-ng attr," 163PACKAGECONFIG[virtfs] = "--enable-virtfs --enable-attr --enable-cap-ng,--disable-virtfs,libcap-ng attr,"
@@ -203,6 +203,6 @@ PACKAGECONFIG[ust] = "--enable-trace-backend=ust,--enable-trace-backend=nop,lttn
203PACKAGECONFIG[pie] = "--enable-pie,--disable-pie,," 203PACKAGECONFIG[pie] = "--enable-pie,--disable-pie,,"
204PACKAGECONFIG[seccomp] = "--enable-seccomp,--disable-seccomp,libseccomp" 204PACKAGECONFIG[seccomp] = "--enable-seccomp,--disable-seccomp,libseccomp"
205 205
206INSANE_SKIP_${PN} = "arch" 206INSANE_SKIP:${PN} = "arch"
207 207
208FILES_${PN} += "${datadir}/icons" 208FILES:${PN} += "${datadir}/icons"
diff --git a/meta/recipes-devtools/qemu/qemu_6.0.0.bb b/meta/recipes-devtools/qemu/qemu_6.0.0.bb
index 90b135a617..f8a816b12b 100644
--- a/meta/recipes-devtools/qemu/qemu_6.0.0.bb
+++ b/meta/recipes-devtools/qemu/qemu_6.0.0.bb
@@ -4,17 +4,17 @@ require qemu.inc
4 4
5# error: a parameter list without types is only allowed in a function definition 5# error: a parameter list without types is only allowed in a function definition
6# void (*_function)(sigval_t); 6# void (*_function)(sigval_t);
7COMPATIBLE_HOST_libc-musl = 'null' 7COMPATIBLE_HOST:libc-musl = 'null'
8 8
9DEPENDS = "glib-2.0 zlib pixman bison-native ninja-native meson-native" 9DEPENDS = "glib-2.0 zlib pixman bison-native ninja-native meson-native"
10 10
11RDEPENDS_${PN}_class-target += "bash" 11RDEPENDS:${PN}:class-target += "bash"
12 12
13EXTRA_OECONF_append_class-target = " --target-list=${@get_qemu_target_list(d)}" 13EXTRA_OECONF:append:class-target = " --target-list=${@get_qemu_target_list(d)}"
14EXTRA_OECONF_append_class-target_mipsarcho32 = "${@bb.utils.contains('BBEXTENDCURR', 'multilib', ' --disable-capstone', '', d)}" 14EXTRA_OECONF:append:class-target:mipsarcho32 = "${@bb.utils.contains('BBEXTENDCURR', 'multilib', ' --disable-capstone', '', d)}"
15EXTRA_OECONF_append_class-nativesdk = " --target-list=${@get_qemu_target_list(d)}" 15EXTRA_OECONF:append:class-nativesdk = " --target-list=${@get_qemu_target_list(d)}"
16 16
17do_install_append_class-nativesdk() { 17do_install:append:class-nativesdk() {
18 ${@bb.utils.contains('PACKAGECONFIG', 'gtk+', 'make_qemu_wrapper', '', d)} 18 ${@bb.utils.contains('PACKAGECONFIG', 'gtk+', 'make_qemu_wrapper', '', d)}
19} 19}
20 20
@@ -24,6 +24,6 @@ PACKAGECONFIG ??= " \
24 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer glx', '', d)} \ 24 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer glx', '', d)} \
25 ${@bb.utils.filter('DISTRO_FEATURES', 'seccomp', d)} \ 25 ${@bb.utils.filter('DISTRO_FEATURES', 'seccomp', d)} \
26" 26"
27PACKAGECONFIG_class-nativesdk ??= "fdt sdl kvm pie \ 27PACKAGECONFIG:class-nativesdk ??= "fdt sdl kvm pie \
28 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer glx', '', d)} \ 28 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer glx', '', d)} \
29" 29"