diff options
Diffstat (limited to 'meta/recipes-devtools/qemu')
-rw-r--r-- | meta/recipes-devtools/qemu/nativesdk-qemu-helper_1.0.bb | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/qemu/qemu-helper-native_1.0.bb | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/qemu/qemu-native.inc | 6 | ||||
-rw-r--r-- | meta/recipes-devtools/qemu/qemu-native_6.0.0.bb | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/qemu/qemu-system-native_6.0.0.bb | 6 | ||||
-rw-r--r-- | meta/recipes-devtools/qemu/qemu.inc | 24 | ||||
-rw-r--r-- | meta/recipes-devtools/qemu/qemu_6.0.0.bb | 14 |
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 @@ | |||
1 | SUMMARY = "Qemu helper scripts" | 1 | SUMMARY = "Qemu helper scripts" |
2 | LICENSE = "GPLv2" | 2 | LICENSE = "GPLv2" |
3 | RDEPENDS_${PN} = "nativesdk-qemu \ | 3 | RDEPENDS:${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 @@ | |||
1 | SUMMARY = "Helper utilities needed by the runqemu script" | 1 | SUMMARY = "Helper utilities needed by the runqemu script" |
2 | LICENSE = "GPLv2" | 2 | LICENSE = "GPLv2" |
3 | RDEPENDS_${PN} = "qemu-system-native" | 3 | RDEPENDS:${PN} = "qemu-system-native" |
4 | PR = "r1" | 4 | PR = "r1" |
5 | 5 | ||
6 | LIC_FILES_CHKSUM = "file://${WORKDIR}/tunctl.c;endline=4;md5=ff3a09996bc5fff6bc5d4e0b4c28f999" | 6 | LIC_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 | ||
3 | inherit native | 3 | inherit native |
4 | 4 | ||
5 | EXTRA_OEMAKE_append = " LD='${LD}' AR='${AR}' OBJCOPY='${OBJCOPY}' LDFLAGS='${LDFLAGS}'" | 5 | EXTRA_OEMAKE:append = " LD='${LD}' AR='${AR}' OBJCOPY='${OBJCOPY}' LDFLAGS='${LDFLAGS}'" |
6 | 6 | ||
7 | LDFLAGS_append = " -fuse-ld=bfd" | 7 | LDFLAGS:append = " -fuse-ld=bfd" |
8 | 8 | ||
9 | do_install_append() { | 9 | do_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 | ||
5 | require qemu-native.inc | 5 | require qemu-native.inc |
6 | 6 | ||
7 | EXTRA_OECONF_append = " --target-list=${@get_qemu_usermode_target_list(d)} --disable-tools --disable-blobs --disable-guest-agent" | 7 | EXTRA_OECONF:append = " --target-list=${@get_qemu_usermode_target_list(d)} --disable-tools --disable-blobs --disable-guest-agent" |
8 | 8 | ||
9 | PACKAGECONFIG ??= "pie" | 9 | PACKAGECONFIG ??= "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 |
10 | DEPENDS = "glib-2.0-native zlib-native pixman-native qemu-native bison-native" | 10 | DEPENDS = "glib-2.0-native zlib-native pixman-native qemu-native bison-native" |
11 | 11 | ||
12 | EXTRA_OECONF_append = " --target-list=${@get_qemu_system_target_list(d)}" | 12 | EXTRA_OECONF:append = " --target-list=${@get_qemu_system_target_list(d)}" |
13 | 13 | ||
14 | PACKAGECONFIG ??= "fdt alsa kvm pie \ | 14 | PACKAGECONFIG ??= "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 |
19 | PACKAGECONFIG_remove = "${@'kvm' if not os.path.exists('/usr/include/linux/kvm.h') else ''}" | 19 | PACKAGECONFIG:remove = "${@'kvm' if not os.path.exists('/usr/include/linux/kvm.h') else ''}" |
20 | 20 | ||
21 | do_install_append() { | 21 | do_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" | |||
6 | HOMEPAGE = "http://qemu.org" | 6 | HOMEPAGE = "http://qemu.org" |
7 | LICENSE = "GPLv2 & LGPLv2.1" | 7 | LICENSE = "GPLv2 & LGPLv2.1" |
8 | 8 | ||
9 | RDEPENDS_${PN}-ptest = "bash" | 9 | RDEPENDS:${PN}-ptest = "bash" |
10 | 10 | ||
11 | require qemu-targets.inc | 11 | require qemu-targets.inc |
12 | inherit pkgconfig ptest | 12 | inherit pkgconfig ptest |
@@ -44,8 +44,8 @@ UPSTREAM_CHECK_REGEX = "qemu-(?P<pver>\d+(\.\d+)+)\.tar" | |||
44 | 44 | ||
45 | SRC_URI[sha256sum] = "87bc1a471ca24b97e7005711066007d443423d19aacda3d442558ae032fa30b9" | 45 | SRC_URI[sha256sum] = "87bc1a471ca24b97e7005711066007d443423d19aacda3d442558ae032fa30b9" |
46 | 46 | ||
47 | SRC_URI_append_class-target = " file://cross.patch" | 47 | SRC_URI:append:class-target = " file://cross.patch" |
48 | SRC_URI_append_class-nativesdk = " file://cross.patch" | 48 | SRC_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 |
51 | CVE_CHECK_WHITELIST += "CVE-2017-5957" | 51 | CVE_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 |
59 | CVE_CHECK_WHITELIST += "CVE-2018-18438" | 59 | CVE_CHECK_WHITELIST += "CVE-2018-18438" |
60 | 60 | ||
61 | COMPATIBLE_HOST_mipsarchn32 = "null" | 61 | COMPATIBLE_HOST:mipsarchn32 = "null" |
62 | COMPATIBLE_HOST_mipsarchn64 = "null" | 62 | COMPATIBLE_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 |
66 | DEBUG_BUILD = "0" | 66 | DEBUG_BUILD = "0" |
67 | 67 | ||
68 | do_install_append() { | 68 | do_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 | ||
115 | do_configure_prepend_class-native() { | 115 | do_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! |
139 | do_install_append() { | 139 | do_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 |
159 | PACKAGECONFIG_remove_darwin = "kvm virglrenderer glx gtk+" | 159 | PACKAGECONFIG:remove:darwin = "kvm virglrenderer glx gtk+" |
160 | PACKAGECONFIG_remove_mingw32 = "kvm virglrenderer glx gtk+" | 160 | PACKAGECONFIG:remove:mingw32 = "kvm virglrenderer glx gtk+" |
161 | 161 | ||
162 | PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,libsdl2" | 162 | PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,libsdl2" |
163 | PACKAGECONFIG[virtfs] = "--enable-virtfs --enable-attr --enable-cap-ng,--disable-virtfs,libcap-ng attr," | 163 | PACKAGECONFIG[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 | |||
203 | PACKAGECONFIG[pie] = "--enable-pie,--disable-pie,," | 203 | PACKAGECONFIG[pie] = "--enable-pie,--disable-pie,," |
204 | PACKAGECONFIG[seccomp] = "--enable-seccomp,--disable-seccomp,libseccomp" | 204 | PACKAGECONFIG[seccomp] = "--enable-seccomp,--disable-seccomp,libseccomp" |
205 | 205 | ||
206 | INSANE_SKIP_${PN} = "arch" | 206 | INSANE_SKIP:${PN} = "arch" |
207 | 207 | ||
208 | FILES_${PN} += "${datadir}/icons" | 208 | FILES:${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); |
7 | COMPATIBLE_HOST_libc-musl = 'null' | 7 | COMPATIBLE_HOST:libc-musl = 'null' |
8 | 8 | ||
9 | DEPENDS = "glib-2.0 zlib pixman bison-native ninja-native meson-native" | 9 | DEPENDS = "glib-2.0 zlib pixman bison-native ninja-native meson-native" |
10 | 10 | ||
11 | RDEPENDS_${PN}_class-target += "bash" | 11 | RDEPENDS:${PN}:class-target += "bash" |
12 | 12 | ||
13 | EXTRA_OECONF_append_class-target = " --target-list=${@get_qemu_target_list(d)}" | 13 | EXTRA_OECONF:append:class-target = " --target-list=${@get_qemu_target_list(d)}" |
14 | EXTRA_OECONF_append_class-target_mipsarcho32 = "${@bb.utils.contains('BBEXTENDCURR', 'multilib', ' --disable-capstone', '', d)}" | 14 | EXTRA_OECONF:append:class-target:mipsarcho32 = "${@bb.utils.contains('BBEXTENDCURR', 'multilib', ' --disable-capstone', '', d)}" |
15 | EXTRA_OECONF_append_class-nativesdk = " --target-list=${@get_qemu_target_list(d)}" | 15 | EXTRA_OECONF:append:class-nativesdk = " --target-list=${@get_qemu_target_list(d)}" |
16 | 16 | ||
17 | do_install_append_class-nativesdk() { | 17 | do_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 | " |
27 | PACKAGECONFIG_class-nativesdk ??= "fdt sdl kvm pie \ | 27 | PACKAGECONFIG: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 | " |