qemu: refresh patches to include git headers

Use git format-patch to be able to use git am later, to fix openwrt/openwrt#10272 .
Remove patch to skip tests as not needed anymore.
Then apply refresh.

Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
This commit is contained in:
Vladimir Ermakov
2025-05-27 09:59:16 +02:00
committed by Josef Schlehofer
parent 40a439bfa8
commit 8ff1f55791
5 changed files with 21 additions and 28 deletions

View File

@@ -1,7 +1,7 @@
From 871bc03884e8dd4a4b50d05022e347e72f4733d9 Mon Sep 17 00:00:00 2001 From f0ada26ef03a37aa4b8c97246b93ab3bdf1db580 Mon Sep 17 00:00:00 2001
From: Yousong Zhou <yszhou4tech@gmail.com> From: Yousong Zhou <yszhou4tech@gmail.com>
Date: Mon, 11 May 2020 10:46:09 +0800 Date: Mon, 11 May 2020 10:46:09 +0800
Subject: [PATCH] configure: allow disable fortify_source Subject: [PATCH 1/4] configure: allow disable fortify_source
Tell build system of qemu to not add _FORTIFY_SOURCE options and let the Tell build system of qemu to not add _FORTIFY_SOURCE options and let the
OpenWrt base build system decide flavor of fortify_source to use OpenWrt base build system decide flavor of fortify_source to use

View File

@@ -1,7 +1,7 @@
From e1e0a76305927290d75b4aae56f1ed89d83da741 Mon Sep 17 00:00:00 2001 From b2cd62027dbf41c3cd5354ed1a5f73c5e26b1811 Mon Sep 17 00:00:00 2001
From: Yousong Zhou <yszhou4tech@gmail.com> From: Yousong Zhou <yszhou4tech@gmail.com>
Date: Mon, 30 Mar 2020 12:48:58 +0800 Date: Mon, 30 Mar 2020 12:48:58 +0800
Subject: [PATCH] util/mmap-alloc: fix missing MAP_SYNC Subject: [PATCH 2/4] util/mmap-alloc: fix missing MAP_SYNC
Quote musl-libc commit 9b57db3f958 ("add MAP_SYNC and Quote musl-libc commit 9b57db3f958 ("add MAP_SYNC and
MAP_SHARED_VALIDATE from linux v4.15") MAP_SHARED_VALIDATE from linux v4.15")

View File

@@ -1,6 +1,14 @@
From 3e7a53edd1ffc948e1f46b3493e0c0381e437980 Mon Sep 17 00:00:00 2001
From: Vladimir Ermakov <vooon341@gmail.com>
Date: Tue, 27 May 2025 09:53:37 +0200
Subject: [PATCH 3/4] qga: invoke separate applets for guest shutdown modes
Origin: community/qemu: fix qemu-guest-agent patch Origin: community/qemu: fix qemu-guest-agent patch
https://gitlab.alpinelinux.org/alpine/aports/-/blob/b720d51ec844d4754dd5b29084350aa1f5c9a74d/community/qemu/guest-agent-shutdown.patch https://gitlab.alpinelinux.org/alpine/aports/-/blob/b720d51ec844d4754dd5b29084350aa1f5c9a74d/community/qemu/guest-agent-shutdown.patch
--- ---
qga/commands-posix.c | 30 ++++--------------------------
1 file changed, 4 insertions(+), 26 deletions(-)
--- a/qga/commands-posix.c --- a/qga/commands-posix.c
+++ b/qga/commands-posix.c +++ b/qga/commands-posix.c
@@ -218,43 +218,21 @@ void qmp_guest_shutdown(const char *mode @@ -218,43 +218,21 @@ void qmp_guest_shutdown(const char *mode

View File

@@ -1,3 +1,12 @@
From a41fe59d9ed66f807f3410408699b0b0b8afea3d Mon Sep 17 00:00:00 2001
From: Vladimir Ermakov <vooon341@gmail.com>
Date: Tue, 27 May 2025 09:57:50 +0200
Subject: [PATCH 4/4] fix meson cross-build compiler sanity check
---
configure | 1 +
1 file changed, 1 insertion(+)
--- a/configure --- a/configure
+++ b/configure +++ b/configure
@@ -1845,6 +1845,7 @@ if test "$skip_meson" = no; then @@ -1845,6 +1845,7 @@ if test "$skip_meson" = no; then

View File

@@ -1,24 +0,0 @@
--- a/meson.build
+++ b/meson.build
@@ -3828,10 +3828,6 @@ subdir('common-user')
subdir('bsd-user')
subdir('linux-user')
-# needed for fuzzing binaries
-subdir('tests/qtest/libqos')
-subdir('tests/qtest/fuzz')
-
# accel modules
target_modules += { 'accel' : { 'qtest': qtest_module_ss }}
@@ -4456,10 +4452,6 @@ subdir('scripts')
subdir('tools')
subdir('pc-bios')
subdir('docs')
-subdir('tests')
-if gtk.found()
- subdir('po')
-endif
if host_machine.system() == 'windows'
nsis_cmd = [