diff options
| author | Alexander Kanavin <alex@linutronix.de> | 2024-11-25 13:01:20 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-11-27 14:58:48 +0000 |
| commit | 1de56ab333fb6b71a3a0bcfd2a4c976eefd35056 (patch) | |
| tree | 5318308f537912c7ff04d3257b6d5da8b8796eb2 /meta | |
| parent | 06a153e4e3d9cea07f68a076539a817d7596e1fb (diff) | |
| download | poky-1de56ab333fb6b71a3a0bcfd2a4c976eefd35056.tar.gz | |
qemu: upgrade 9.1.0 -> 9.1.1
(From OE-Core rev: c5d6a15dc75eb6ab16c9b0c953e7f433b42a0e99)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
16 files changed, 82 insertions, 104 deletions
diff --git a/meta/recipes-devtools/qemu/qemu-native_9.1.0.bb b/meta/recipes-devtools/qemu/qemu-native_9.1.1.bb index a77953529b..26fa84c180 100644 --- a/meta/recipes-devtools/qemu/qemu-native_9.1.0.bb +++ b/meta/recipes-devtools/qemu/qemu-native_9.1.1.bb | |||
| @@ -7,3 +7,4 @@ require qemu-native.inc | |||
| 7 | EXTRA_OECONF:append = " --target-list=${@get_qemu_usermode_target_list(d)} --disable-tools --disable-install-blobs --disable-guest-agent" | 7 | EXTRA_OECONF:append = " --target-list=${@get_qemu_usermode_target_list(d)} --disable-tools --disable-install-blobs --disable-guest-agent" |
| 8 | 8 | ||
| 9 | PACKAGECONFIG ??= "pie" | 9 | PACKAGECONFIG ??= "pie" |
| 10 | |||
diff --git a/meta/recipes-devtools/qemu/qemu-system-native_9.1.0.bb b/meta/recipes-devtools/qemu/qemu-system-native_9.1.1.bb index 5d2fbcbc02..e7bbe5d291 100644 --- a/meta/recipes-devtools/qemu/qemu-system-native_9.1.0.bb +++ b/meta/recipes-devtools/qemu/qemu-system-native_9.1.1.bb | |||
| @@ -29,3 +29,4 @@ do_install:append() { | |||
| 29 | install -d ${D}${libdir}/qemu-python/qmp/ | 29 | install -d ${D}${libdir}/qemu-python/qmp/ |
| 30 | install -D ${S}/python/qemu/qmp/* ${D}${libdir}/qemu-python/qmp/ | 30 | install -D ${S}/python/qemu/qmp/* ${D}${libdir}/qemu-python/qmp/ |
| 31 | } | 31 | } |
| 32 | |||
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc index 02cd7c8dc8..d6d1c84865 100644 --- a/meta/recipes-devtools/qemu/qemu.inc +++ b/meta/recipes-devtools/qemu/qemu.inc | |||
| @@ -38,7 +38,7 @@ SRC_URI = "https://download.qemu.org/${BPN}-${PV}.tar.xz \ | |||
| 38 | " | 38 | " |
| 39 | UPSTREAM_CHECK_REGEX = "qemu-(?P<pver>\d+(\.\d+)+)\.tar" | 39 | UPSTREAM_CHECK_REGEX = "qemu-(?P<pver>\d+(\.\d+)+)\.tar" |
| 40 | 40 | ||
| 41 | SRC_URI[sha256sum] = "816b7022a8ba7c2ac30e2e0cf973e826f6bcc8505339603212c5ede8e94d7834" | 41 | SRC_URI[sha256sum] = "7dc0f9da5491ff449500f3310063a36b619f236ee45706fd0846eb37d4bba889" |
| 42 | 42 | ||
| 43 | CVE_STATUS[CVE-2007-0998] = "not-applicable-config: The VNC server can expose host files uder some circumstances. We don't enable it by default." | 43 | CVE_STATUS[CVE-2007-0998] = "not-applicable-config: The VNC server can expose host files uder some circumstances. We don't enable it by default." |
| 44 | 44 | ||
diff --git a/meta/recipes-devtools/qemu/qemu/0001-qemu-Add-addition-environment-space-to-boot-loader-q.patch b/meta/recipes-devtools/qemu/qemu/0001-qemu-Add-addition-environment-space-to-boot-loader-q.patch index 2333cc8432..5e21855c50 100644 --- a/meta/recipes-devtools/qemu/qemu/0001-qemu-Add-addition-environment-space-to-boot-loader-q.patch +++ b/meta/recipes-devtools/qemu/qemu/0001-qemu-Add-addition-environment-space-to-boot-loader-q.patch | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | From e9baf07a667a1c04b57e14776cc4fa387448c908 Mon Sep 17 00:00:00 2001 | 1 | From 930b75aeade33690cec4bf748a954401da2be782 Mon Sep 17 00:00:00 2001 |
| 2 | From: Jason Wessel <jason.wessel@windriver.com> | 2 | From: Jason Wessel <jason.wessel@windriver.com> |
| 3 | Date: Fri, 28 Mar 2014 17:42:43 +0800 | 3 | Date: Fri, 28 Mar 2014 17:42:43 +0800 |
| 4 | Subject: [PATCH 01/11] qemu: Add addition environment space to boot loader | 4 | Subject: [PATCH] qemu: Add addition environment space to boot loader |
| 5 | qemu-system-mips | 5 | qemu-system-mips |
| 6 | 6 | ||
| 7 | Upstream-Status: Inappropriate - OE uses deep paths | 7 | Upstream-Status: Inappropriate - OE uses deep paths |
| @@ -18,10 +18,10 @@ Signed-off-by: Roy Li <rongqing.li@windriver.com> | |||
| 18 | 1 file changed, 1 insertion(+), 1 deletion(-) | 18 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 19 | 19 | ||
| 20 | diff --git a/hw/mips/malta.c b/hw/mips/malta.c | 20 | diff --git a/hw/mips/malta.c b/hw/mips/malta.c |
| 21 | index af74008c82..a588b9ad4e 100644 | 21 | index 664a2ae0a..5124b158a 100644 |
| 22 | --- a/hw/mips/malta.c | 22 | --- a/hw/mips/malta.c |
| 23 | +++ b/hw/mips/malta.c | 23 | +++ b/hw/mips/malta.c |
| 24 | @@ -63,7 +63,7 @@ | 24 | @@ -64,7 +64,7 @@ |
| 25 | #define ENVP_PADDR 0x2000 | 25 | #define ENVP_PADDR 0x2000 |
| 26 | #define ENVP_VADDR cpu_mips_phys_to_kseg0(NULL, ENVP_PADDR) | 26 | #define ENVP_VADDR cpu_mips_phys_to_kseg0(NULL, ENVP_PADDR) |
| 27 | #define ENVP_NB_ENTRIES 16 | 27 | #define ENVP_NB_ENTRIES 16 |
| @@ -30,6 +30,3 @@ index af74008c82..a588b9ad4e 100644 | |||
| 30 | 30 | ||
| 31 | /* Hardware addresses */ | 31 | /* Hardware addresses */ |
| 32 | #define FLASH_ADDRESS 0x1e000000ULL | 32 | #define FLASH_ADDRESS 0x1e000000ULL |
| 33 | -- | ||
| 34 | 2.44.0 | ||
| 35 | |||
diff --git a/meta/recipes-devtools/qemu/qemu/0001-sched_attr-Do-not-define-for-glibc-2.41.patch b/meta/recipes-devtools/qemu/qemu/0001-sched_attr-Do-not-define-for-glibc-2.41.patch index edb3e304c9..1233a07ff9 100644 --- a/meta/recipes-devtools/qemu/qemu/0001-sched_attr-Do-not-define-for-glibc-2.41.patch +++ b/meta/recipes-devtools/qemu/qemu/0001-sched_attr-Do-not-define-for-glibc-2.41.patch | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | From ddb27569449c941014fa44b1b542de0831d993a0 Mon Sep 17 00:00:00 2001 | 1 | From 7030c0cd98de9e6c42e69be314204727ae335912 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 10 Oct 2024 22:40:32 -0700 | 3 | Date: Thu, 10 Oct 2024 22:40:32 -0700 |
| 4 | Subject: [PATCH v2] sched_attr: Do not define for glibc >= 2.41 | 4 | Subject: [PATCH] sched_attr: Do not define for glibc >= 2.41 |
| 5 | 5 | ||
| 6 | glibc 2.41+ has added [1] definitions for sched_setattr and sched_getattr functions | 6 | glibc 2.41+ has added [1] definitions for sched_setattr and sched_getattr functions |
| 7 | and struct sched_attr. Therefore, it needs to be checked for here as well before | 7 | and struct sched_attr. Therefore, it needs to be checked for here as well before |
| @@ -18,16 +18,14 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 18 | Cc: Laurent Vivier <laurent@vivier.eu> | 18 | Cc: Laurent Vivier <laurent@vivier.eu> |
| 19 | Cc: Paolo Bonzini <pbonzini@redhat.com> | 19 | Cc: Paolo Bonzini <pbonzini@redhat.com> |
| 20 | --- | 20 | --- |
| 21 | v2: Use SCHED_ATTR_SIZE_VER0 instead of glibc version check | ||
| 22 | |||
| 23 | linux-user/syscall.c | 4 +++- | 21 | linux-user/syscall.c | 4 +++- |
| 24 | 1 file changed, 3 insertions(+), 1 deletion(-) | 22 | 1 file changed, 3 insertions(+), 1 deletion(-) |
| 25 | 23 | ||
| 26 | diff --git a/linux-user/syscall.c b/linux-user/syscall.c | 24 | diff --git a/linux-user/syscall.c b/linux-user/syscall.c |
| 27 | index 1354e75694..caecbb765d 100644 | 25 | index 27aa59594..b2c45b4c4 100644 |
| 28 | --- a/linux-user/syscall.c | 26 | --- a/linux-user/syscall.c |
| 29 | +++ b/linux-user/syscall.c | 27 | +++ b/linux-user/syscall.c |
| 30 | @@ -359,7 +359,8 @@ _syscall3(int, sys_sched_getaffinity, pid_t, pid, unsigned int, len, | 28 | @@ -361,7 +361,8 @@ _syscall3(int, sys_sched_getaffinity, pid_t, pid, unsigned int, len, |
| 31 | #define __NR_sys_sched_setaffinity __NR_sched_setaffinity | 29 | #define __NR_sys_sched_setaffinity __NR_sched_setaffinity |
| 32 | _syscall3(int, sys_sched_setaffinity, pid_t, pid, unsigned int, len, | 30 | _syscall3(int, sys_sched_setaffinity, pid_t, pid, unsigned int, len, |
| 33 | unsigned long *, user_mask_ptr); | 31 | unsigned long *, user_mask_ptr); |
| @@ -37,7 +35,7 @@ index 1354e75694..caecbb765d 100644 | |||
| 37 | struct sched_attr { | 35 | struct sched_attr { |
| 38 | uint32_t size; | 36 | uint32_t size; |
| 39 | uint32_t sched_policy; | 37 | uint32_t sched_policy; |
| 40 | @@ -372,6 +373,7 @@ struct sched_attr { | 38 | @@ -374,6 +375,7 @@ struct sched_attr { |
| 41 | uint32_t sched_util_min; | 39 | uint32_t sched_util_min; |
| 42 | uint32_t sched_util_max; | 40 | uint32_t sched_util_max; |
| 43 | }; | 41 | }; |
diff --git a/meta/recipes-devtools/qemu/qemu/0002-apic-fixup-fallthrough-to-PIC.patch b/meta/recipes-devtools/qemu/qemu/0002-apic-fixup-fallthrough-to-PIC.patch index 5f8fe4faa3..bcb0d0c0da 100644 --- a/meta/recipes-devtools/qemu/qemu/0002-apic-fixup-fallthrough-to-PIC.patch +++ b/meta/recipes-devtools/qemu/qemu/0002-apic-fixup-fallthrough-to-PIC.patch | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | From 23bf534e463bf4c1ba2e1356eaf17be0b23b192e Mon Sep 17 00:00:00 2001 | 1 | From 1ba58dbd2dce4e6ccaf3be3ad5c9ecc22565313f Mon Sep 17 00:00:00 2001 |
| 2 | From: Mark Asselstine <mark.asselstine@windriver.com> | 2 | From: Mark Asselstine <mark.asselstine@windriver.com> |
| 3 | Date: Tue, 26 Feb 2013 11:43:28 -0500 | 3 | Date: Tue, 26 Feb 2013 11:43:28 -0500 |
| 4 | Subject: [PATCH 02/11] apic: fixup fallthrough to PIC | 4 | Subject: [PATCH] apic: fixup fallthrough to PIC |
| 5 | 5 | ||
| 6 | Commit 0e21e12bb311c4c1095d0269dc2ef81196ccb60a [Don't route PIC | 6 | Commit 0e21e12bb311c4c1095d0269dc2ef81196ccb60a [Don't route PIC |
| 7 | interrupts through the local APIC if the local APIC config says so.] | 7 | interrupts through the local APIC if the local APIC config says so.] |
| @@ -29,7 +29,7 @@ Signed-off-by: He Zhe <zhe.he@windriver.com> | |||
| 29 | 1 file changed, 1 insertion(+), 1 deletion(-) | 29 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 30 | 30 | ||
| 31 | diff --git a/hw/intc/apic.c b/hw/intc/apic.c | 31 | diff --git a/hw/intc/apic.c b/hw/intc/apic.c |
| 32 | index 4186c57b34..43cd805a96 100644 | 32 | index 4186c57b3..43cd805a9 100644 |
| 33 | --- a/hw/intc/apic.c | 33 | --- a/hw/intc/apic.c |
| 34 | +++ b/hw/intc/apic.c | 34 | +++ b/hw/intc/apic.c |
| 35 | @@ -759,7 +759,7 @@ int apic_accept_pic_intr(DeviceState *dev) | 35 | @@ -759,7 +759,7 @@ int apic_accept_pic_intr(DeviceState *dev) |
| @@ -41,6 +41,3 @@ index 4186c57b34..43cd805a96 100644 | |||
| 41 | return -1; | 41 | return -1; |
| 42 | 42 | ||
| 43 | lvt0 = s->lvt[APIC_LVT_LINT0]; | 43 | lvt0 = s->lvt[APIC_LVT_LINT0]; |
| 44 | -- | ||
| 45 | 2.44.0 | ||
| 46 | |||
diff --git a/meta/recipes-devtools/qemu/qemu/0004-qemu-Do-not-include-file-if-not-exists.patch b/meta/recipes-devtools/qemu/qemu/0004-qemu-Do-not-include-file-if-not-exists.patch index d9cab428c4..2b4f2b17ca 100644 --- a/meta/recipes-devtools/qemu/qemu/0004-qemu-Do-not-include-file-if-not-exists.patch +++ b/meta/recipes-devtools/qemu/qemu/0004-qemu-Do-not-include-file-if-not-exists.patch | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | From 5223d46a8d5302396f9fc7cc5d830769e87242fe Mon Sep 17 00:00:00 2001 | 1 | From 081c1e4ee93b22ec00136db45c36650427213c09 Mon Sep 17 00:00:00 2001 |
| 2 | From: Oleksiy Obitotskyy <oobitots@cisco.com> | 2 | From: Oleksiy Obitotskyy <oobitots@cisco.com> |
| 3 | Date: Wed, 25 Mar 2020 21:21:35 +0200 | 3 | Date: Wed, 25 Mar 2020 21:21:35 +0200 |
| 4 | Subject: [PATCH 04/11] qemu: Do not include file if not exists | 4 | Subject: [PATCH] qemu: Do not include file if not exists |
| 5 | 5 | ||
| 6 | Script configure checks for if_alg.h and check failed but | 6 | Script configure checks for if_alg.h and check failed but |
| 7 | if_alg.h still included. | 7 | if_alg.h still included. |
| @@ -16,10 +16,10 @@ Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> | |||
| 16 | 1 file changed, 2 insertions(+) | 16 | 1 file changed, 2 insertions(+) |
| 17 | 17 | ||
| 18 | diff --git a/linux-user/syscall.c b/linux-user/syscall.c | 18 | diff --git a/linux-user/syscall.c b/linux-user/syscall.c |
| 19 | index 3df2b94d9a..18f09f1f07 100644 | 19 | index 9d5415674..22df46859 100644 |
| 20 | --- a/linux-user/syscall.c | 20 | --- a/linux-user/syscall.c |
| 21 | +++ b/linux-user/syscall.c | 21 | +++ b/linux-user/syscall.c |
| 22 | @@ -116,7 +116,9 @@ | 22 | @@ -117,7 +117,9 @@ |
| 23 | #include <linux/blkpg.h> | 23 | #include <linux/blkpg.h> |
| 24 | #include <netpacket/packet.h> | 24 | #include <netpacket/packet.h> |
| 25 | #include <linux/netlink.h> | 25 | #include <linux/netlink.h> |
| @@ -29,6 +29,3 @@ index 3df2b94d9a..18f09f1f07 100644 | |||
| 29 | #include <linux/rtc.h> | 29 | #include <linux/rtc.h> |
| 30 | #include <sound/asound.h> | 30 | #include <sound/asound.h> |
| 31 | #ifdef HAVE_BTRFS_H | 31 | #ifdef HAVE_BTRFS_H |
| 32 | -- | ||
| 33 | 2.44.0 | ||
| 34 | |||
diff --git a/meta/recipes-devtools/qemu/qemu/0005-qemu-Add-some-user-space-mmap-tweaks-to-address-musl.patch b/meta/recipes-devtools/qemu/qemu/0005-qemu-Add-some-user-space-mmap-tweaks-to-address-musl.patch index 3c7f5776ff..26ddf5e597 100644 --- a/meta/recipes-devtools/qemu/qemu/0005-qemu-Add-some-user-space-mmap-tweaks-to-address-musl.patch +++ b/meta/recipes-devtools/qemu/qemu/0005-qemu-Add-some-user-space-mmap-tweaks-to-address-musl.patch | |||
| @@ -1,8 +1,7 @@ | |||
| 1 | From 1c295069857b9850f15f2cd6b33b133ea641a454 Mon Sep 17 00:00:00 2001 | 1 | From 76efeccfd73a76834ac1c75d3c94de1899085714 Mon Sep 17 00:00:00 2001 |
| 2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | 2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> |
| 3 | Date: Fri, 8 Jan 2021 17:27:06 +0000 | 3 | Date: Fri, 8 Jan 2021 17:27:06 +0000 |
| 4 | Subject: [PATCH 05/11] qemu: Add some user space mmap tweaks to address musl | 4 | Subject: [PATCH] qemu: Add some user space mmap tweaks to address musl 32 bit |
| 5 | 32 bit | ||
| 6 | 5 | ||
| 7 | When using qemu-i386 to build qemux86 webkitgtk on musl, it sits in an | 6 | When using qemu-i386 to build qemux86 webkitgtk on musl, it sits in an |
| 8 | infinite loop of mremap calls of ever decreasing/increasing addresses. | 7 | infinite loop of mremap calls of ever decreasing/increasing addresses. |
| @@ -23,10 +22,10 @@ Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org | |||
| 23 | 1 file changed, 7 insertions(+), 3 deletions(-) | 22 | 1 file changed, 7 insertions(+), 3 deletions(-) |
| 24 | 23 | ||
| 25 | diff --git a/linux-user/mmap.c b/linux-user/mmap.c | 24 | diff --git a/linux-user/mmap.c b/linux-user/mmap.c |
| 26 | index be3b9a68eb..481286f01d 100644 | 25 | index e4bf5d5f3..04d920c11 100644 |
| 27 | --- a/linux-user/mmap.c | 26 | --- a/linux-user/mmap.c |
| 28 | +++ b/linux-user/mmap.c | 27 | +++ b/linux-user/mmap.c |
| 29 | @@ -1060,12 +1060,16 @@ abi_long target_mremap(abi_ulong old_addr, abi_ulong old_size, | 28 | @@ -1105,12 +1105,16 @@ abi_long target_mremap(abi_ulong old_addr, abi_ulong old_size, |
| 30 | int prot; | 29 | int prot; |
| 31 | void *host_addr; | 30 | void *host_addr; |
| 32 | 31 | ||
| @@ -46,6 +45,3 @@ index be3b9a68eb..481286f01d 100644 | |||
| 46 | return -1; | 45 | return -1; |
| 47 | } | 46 | } |
| 48 | 47 | ||
| 49 | -- | ||
| 50 | 2.44.0 | ||
| 51 | |||
diff --git a/meta/recipes-devtools/qemu/qemu/0006-qemu-Determinism-fixes.patch b/meta/recipes-devtools/qemu/qemu/0006-qemu-Determinism-fixes.patch index f07054f19a..059257bce0 100644 --- a/meta/recipes-devtools/qemu/qemu/0006-qemu-Determinism-fixes.patch +++ b/meta/recipes-devtools/qemu/qemu/0006-qemu-Determinism-fixes.patch | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | From 9d32df80e33a7541658858497f45bed1e59e3621 Mon Sep 17 00:00:00 2001 | 1 | From 09e8fac984cea71867c0b7a05b0dd8f7025bd25a Mon Sep 17 00:00:00 2001 |
| 2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | 2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> |
| 3 | Date: Mon, 1 Mar 2021 13:00:47 +0000 | 3 | Date: Mon, 1 Mar 2021 13:00:47 +0000 |
| 4 | Subject: [PATCH 06/11] qemu: Determinism fixes | 4 | Subject: [PATCH] qemu: Determinism fixes |
| 5 | 5 | ||
| 6 | When sources are included within debug information, a couple of areas of the | 6 | When sources are included within debug information, a couple of areas of the |
| 7 | qemu build are not reproducible due to either full buildpaths or timestamps. | 7 | qemu build are not reproducible due to either full buildpaths or timestamps. |
| @@ -16,7 +16,7 @@ RP 2021/3/1 | |||
| 16 | 1 file changed, 1 insertion(+), 1 deletion(-) | 16 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 17 | 17 | ||
| 18 | diff --git a/scripts/decodetree.py b/scripts/decodetree.py | 18 | diff --git a/scripts/decodetree.py b/scripts/decodetree.py |
| 19 | index e8b72da3a9..5cd86b1428 100644 | 19 | index e8b72da3a..5cd86b142 100644 |
| 20 | --- a/scripts/decodetree.py | 20 | --- a/scripts/decodetree.py |
| 21 | +++ b/scripts/decodetree.py | 21 | +++ b/scripts/decodetree.py |
| 22 | @@ -1558,7 +1558,7 @@ def main(): | 22 | @@ -1558,7 +1558,7 @@ def main(): |
| @@ -28,6 +28,3 @@ index e8b72da3a9..5cd86b1428 100644 | |||
| 28 | f = open(filename, 'rt', encoding='utf-8') | 28 | f = open(filename, 'rt', encoding='utf-8') |
| 29 | parse_file(f, toppat) | 29 | parse_file(f, toppat) |
| 30 | f.close() | 30 | f.close() |
| 31 | -- | ||
| 32 | 2.44.0 | ||
| 33 | |||
diff --git a/meta/recipes-devtools/qemu/qemu/0007-tests-meson.build-use-relative-path-to-refer-to-file.patch b/meta/recipes-devtools/qemu/qemu/0007-tests-meson.build-use-relative-path-to-refer-to-file.patch index 5471b77e18..cd919048f4 100644 --- a/meta/recipes-devtools/qemu/qemu/0007-tests-meson.build-use-relative-path-to-refer-to-file.patch +++ b/meta/recipes-devtools/qemu/qemu/0007-tests-meson.build-use-relative-path-to-refer-to-file.patch | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | From 77ebf67d0c96f51da91c8499200ebd13f4dcdd68 Mon Sep 17 00:00:00 2001 | 1 | From 1a574aa22c9b3700af7e5c0901abef59c72bb874 Mon Sep 17 00:00:00 2001 |
| 2 | From: Changqing Li <changqing.li@windriver.com> | 2 | From: Changqing Li <changqing.li@windriver.com> |
| 3 | Date: Thu, 14 Jan 2021 06:33:04 +0000 | 3 | Date: Thu, 14 Jan 2021 06:33:04 +0000 |
| 4 | Subject: [PATCH 07/11] tests/meson.build: use relative path to refer to files | 4 | Subject: [PATCH] tests/meson.build: use relative path to refer to files |
| 5 | 5 | ||
| 6 | Fix error like: | 6 | Fix error like: |
| 7 | Fatal error: can't create tests/ptimer-test.p/..._qemu-5.2.0_hw_core_ptimer.c.o: File name too long | 7 | Fatal error: can't create tests/ptimer-test.p/..._qemu-5.2.0_hw_core_ptimer.c.o: File name too long |
| @@ -13,13 +13,13 @@ Upstream-Status: Submitted [send to qemu-devel] | |||
| 13 | 13 | ||
| 14 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | 14 | Signed-off-by: Changqing Li <changqing.li@windriver.com> |
| 15 | --- | 15 | --- |
| 16 | tests/unit/meson.build | 4 ++-- | 16 | tests/unit/meson.build | 6 +++--- |
| 17 | 1 file changed, 2 insertions(+), 2 deletions(-) | 17 | 1 file changed, 3 insertions(+), 3 deletions(-) |
| 18 | 18 | ||
| 19 | Index: qemu-9.1.0/tests/unit/meson.build | 19 | diff --git a/tests/unit/meson.build b/tests/unit/meson.build |
| 20 | =================================================================== | 20 | index 490ab8182..d19ee5606 100644 |
| 21 | --- qemu-9.1.0.orig/tests/unit/meson.build | 21 | --- a/tests/unit/meson.build |
| 22 | +++ qemu-9.1.0/tests/unit/meson.build | 22 | +++ b/tests/unit/meson.build |
| 23 | @@ -128,17 +128,17 @@ endif | 23 | @@ -128,17 +128,17 @@ endif |
| 24 | 24 | ||
| 25 | if have_system | 25 | if have_system |
diff --git a/meta/recipes-devtools/qemu/qemu/0008-Define-MAP_SYNC-and-MAP_SHARED_VALIDATE-on-needed-li.patch b/meta/recipes-devtools/qemu/qemu/0008-Define-MAP_SYNC-and-MAP_SHARED_VALIDATE-on-needed-li.patch index 2e28590e11..7bbd96df84 100644 --- a/meta/recipes-devtools/qemu/qemu/0008-Define-MAP_SYNC-and-MAP_SHARED_VALIDATE-on-needed-li.patch +++ b/meta/recipes-devtools/qemu/qemu/0008-Define-MAP_SYNC-and-MAP_SHARED_VALIDATE-on-needed-li.patch | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | From 21b159a11bbcb1eeb26f12456e4c3fd62a06cbec Mon Sep 17 00:00:00 2001 | 1 | From 06b5b26a0a1f7687576d90066e492cf2665fff1d Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Mon, 21 Mar 2022 10:09:38 -0700 | 3 | Date: Mon, 21 Mar 2022 10:09:38 -0700 |
| 4 | Subject: [PATCH 08/11] Define MAP_SYNC and MAP_SHARED_VALIDATE on needed linux | 4 | Subject: [PATCH] Define MAP_SYNC and MAP_SHARED_VALIDATE on needed linux |
| 5 | systems | 5 | systems |
| 6 | 6 | ||
| 7 | linux only wires MAP_SYNC and MAP_SHARED_VALIDATE for architectures | 7 | linux only wires MAP_SYNC and MAP_SHARED_VALIDATE for architectures |
| @@ -18,7 +18,7 @@ Cc: Michael S. Tsirkin <mst@redhat.com> | |||
| 18 | 1 file changed, 7 insertions(+), 3 deletions(-) | 18 | 1 file changed, 7 insertions(+), 3 deletions(-) |
| 19 | 19 | ||
| 20 | diff --git a/util/mmap-alloc.c b/util/mmap-alloc.c | 20 | diff --git a/util/mmap-alloc.c b/util/mmap-alloc.c |
| 21 | index ed14f9c64d..038f5b4b55 100644 | 21 | index ed14f9c64..038f5b4b5 100644 |
| 22 | --- a/util/mmap-alloc.c | 22 | --- a/util/mmap-alloc.c |
| 23 | +++ b/util/mmap-alloc.c | 23 | +++ b/util/mmap-alloc.c |
| 24 | @@ -10,14 +10,18 @@ | 24 | @@ -10,14 +10,18 @@ |
| @@ -43,6 +43,3 @@ index ed14f9c64d..038f5b4b55 100644 | |||
| 43 | #include "qemu/mmap-alloc.h" | 43 | #include "qemu/mmap-alloc.h" |
| 44 | #include "qemu/host-utils.h" | 44 | #include "qemu/host-utils.h" |
| 45 | #include "qemu/cutils.h" | 45 | #include "qemu/cutils.h" |
| 46 | -- | ||
| 47 | 2.44.0 | ||
| 48 | |||
diff --git a/meta/recipes-devtools/qemu/qemu/0009-linux-user-Replace-use-of-lfs64-related-functions-an.patch b/meta/recipes-devtools/qemu/qemu/0009-linux-user-Replace-use-of-lfs64-related-functions-an.patch index 7577249d39..f9eddb8178 100644 --- a/meta/recipes-devtools/qemu/qemu/0009-linux-user-Replace-use-of-lfs64-related-functions-an.patch +++ b/meta/recipes-devtools/qemu/qemu/0009-linux-user-Replace-use-of-lfs64-related-functions-an.patch | |||
| @@ -1,8 +1,7 @@ | |||
| 1 | From 23de30079dbf47a8026faddd550a9e181d609c8f Mon Sep 17 00:00:00 2001 | 1 | From a6b57d63bcdc3f3cae9827d2e1e3492d2293695f Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sat, 17 Dec 2022 08:37:46 -0800 | 3 | Date: Sat, 17 Dec 2022 08:37:46 -0800 |
| 4 | Subject: [PATCH 09/11] linux-user: Replace use of lfs64 related functions and | 4 | Subject: [PATCH] linux-user: Replace use of lfs64 related functions and macros |
| 5 | macros | ||
| 6 | 5 | ||
| 7 | Builds defines -D_FILE_OFFSET_BITS=64 which makes the original functions | 6 | Builds defines -D_FILE_OFFSET_BITS=64 which makes the original functions |
| 8 | anf macros behave same as their 64 suffixed counterparts. This also | 7 | anf macros behave same as their 64 suffixed counterparts. This also |
| @@ -17,10 +16,10 @@ Cc: Laurent Vivier <laurent@vivier.eu> | |||
| 17 | 1 file changed, 39 insertions(+), 114 deletions(-) | 16 | 1 file changed, 39 insertions(+), 114 deletions(-) |
| 18 | 17 | ||
| 19 | diff --git a/linux-user/syscall.c b/linux-user/syscall.c | 18 | diff --git a/linux-user/syscall.c b/linux-user/syscall.c |
| 20 | index 18f09f1f07..1b7c50a2a7 100644 | 19 | index 22df46859..27aa59594 100644 |
| 21 | --- a/linux-user/syscall.c | 20 | --- a/linux-user/syscall.c |
| 22 | +++ b/linux-user/syscall.c | 21 | +++ b/linux-user/syscall.c |
| 23 | @@ -761,8 +761,8 @@ safe_syscall6(ssize_t, copy_file_range, int, infd, loff_t *, pinoff, | 22 | @@ -762,8 +762,8 @@ safe_syscall6(ssize_t, copy_file_range, int, infd, loff_t *, pinoff, |
| 24 | */ | 23 | */ |
| 25 | #define safe_ioctl(...) safe_syscall(__NR_ioctl, __VA_ARGS__) | 24 | #define safe_ioctl(...) safe_syscall(__NR_ioctl, __VA_ARGS__) |
| 26 | /* Similarly for fcntl. Note that callers must always: | 25 | /* Similarly for fcntl. Note that callers must always: |
| @@ -31,7 +30,7 @@ index 18f09f1f07..1b7c50a2a7 100644 | |||
| 31 | * This will then work and use a 64-bit offset for both 32-bit and 64-bit hosts. | 30 | * This will then work and use a 64-bit offset for both 32-bit and 64-bit hosts. |
| 32 | */ | 31 | */ |
| 33 | #ifdef __NR_fcntl64 | 32 | #ifdef __NR_fcntl64 |
| 34 | @@ -6739,13 +6739,13 @@ static int target_to_host_fcntl_cmd(int cmd) | 33 | @@ -6724,13 +6724,13 @@ static int target_to_host_fcntl_cmd(int cmd) |
| 35 | ret = cmd; | 34 | ret = cmd; |
| 36 | break; | 35 | break; |
| 37 | case TARGET_F_GETLK: | 36 | case TARGET_F_GETLK: |
| @@ -48,7 +47,7 @@ index 18f09f1f07..1b7c50a2a7 100644 | |||
| 48 | break; | 47 | break; |
| 49 | case TARGET_F_GETOWN: | 48 | case TARGET_F_GETOWN: |
| 50 | ret = F_GETOWN; | 49 | ret = F_GETOWN; |
| 51 | @@ -6759,17 +6759,6 @@ static int target_to_host_fcntl_cmd(int cmd) | 50 | @@ -6744,17 +6744,6 @@ static int target_to_host_fcntl_cmd(int cmd) |
| 52 | case TARGET_F_SETSIG: | 51 | case TARGET_F_SETSIG: |
| 53 | ret = F_SETSIG; | 52 | ret = F_SETSIG; |
| 54 | break; | 53 | break; |
| @@ -66,7 +65,7 @@ index 18f09f1f07..1b7c50a2a7 100644 | |||
| 66 | case TARGET_F_SETLEASE: | 65 | case TARGET_F_SETLEASE: |
| 67 | ret = F_SETLEASE; | 66 | ret = F_SETLEASE; |
| 68 | break; | 67 | break; |
| 69 | @@ -6821,8 +6810,8 @@ static int target_to_host_fcntl_cmd(int cmd) | 68 | @@ -6806,8 +6795,8 @@ static int target_to_host_fcntl_cmd(int cmd) |
| 70 | * them to 5, 6 and 7 before making the syscall(). Since we make the | 69 | * them to 5, 6 and 7 before making the syscall(). Since we make the |
| 71 | * syscall directly, adjust to what is supported by the kernel. | 70 | * syscall directly, adjust to what is supported by the kernel. |
| 72 | */ | 71 | */ |
| @@ -77,7 +76,7 @@ index 18f09f1f07..1b7c50a2a7 100644 | |||
| 77 | } | 76 | } |
| 78 | #endif | 77 | #endif |
| 79 | 78 | ||
| 80 | @@ -6855,55 +6844,11 @@ static int host_to_target_flock(int type) | 79 | @@ -6840,55 +6829,11 @@ static int host_to_target_flock(int type) |
| 81 | return type; | 80 | return type; |
| 82 | } | 81 | } |
| 83 | 82 | ||
| @@ -136,7 +135,7 @@ index 18f09f1f07..1b7c50a2a7 100644 | |||
| 136 | abi_short l_type; | 135 | abi_short l_type; |
| 137 | abi_short l_whence; | 136 | abi_short l_whence; |
| 138 | abi_llong l_start; | 137 | abi_llong l_start; |
| 139 | @@ -6911,10 +6856,10 @@ struct target_oabi_flock64 { | 138 | @@ -6896,10 +6841,10 @@ struct target_oabi_flock64 { |
| 140 | abi_int l_pid; | 139 | abi_int l_pid; |
| 141 | } QEMU_PACKED; | 140 | } QEMU_PACKED; |
| 142 | 141 | ||
| @@ -149,7 +148,7 @@ index 18f09f1f07..1b7c50a2a7 100644 | |||
| 149 | int l_type; | 148 | int l_type; |
| 150 | 149 | ||
| 151 | if (!lock_user_struct(VERIFY_READ, target_fl, target_flock_addr, 1)) { | 150 | if (!lock_user_struct(VERIFY_READ, target_fl, target_flock_addr, 1)) { |
| 152 | @@ -6935,10 +6880,10 @@ static inline abi_long copy_from_user_oabi_flock64(struct flock64 *fl, | 151 | @@ -6920,10 +6865,10 @@ static inline abi_long copy_from_user_oabi_flock64(struct flock64 *fl, |
| 153 | return 0; | 152 | return 0; |
| 154 | } | 153 | } |
| 155 | 154 | ||
| @@ -163,7 +162,7 @@ index 18f09f1f07..1b7c50a2a7 100644 | |||
| 163 | short l_type; | 162 | short l_type; |
| 164 | 163 | ||
| 165 | if (!lock_user_struct(VERIFY_WRITE, target_fl, target_flock_addr, 0)) { | 164 | if (!lock_user_struct(VERIFY_WRITE, target_fl, target_flock_addr, 0)) { |
| 166 | @@ -6956,10 +6901,10 @@ static inline abi_long copy_to_user_oabi_flock64(abi_ulong target_flock_addr, | 165 | @@ -6941,10 +6886,10 @@ static inline abi_long copy_to_user_oabi_flock64(abi_ulong target_flock_addr, |
| 167 | } | 166 | } |
| 168 | #endif | 167 | #endif |
| 169 | 168 | ||
| @@ -176,7 +175,7 @@ index 18f09f1f07..1b7c50a2a7 100644 | |||
| 176 | int l_type; | 175 | int l_type; |
| 177 | 176 | ||
| 178 | if (!lock_user_struct(VERIFY_READ, target_fl, target_flock_addr, 1)) { | 177 | if (!lock_user_struct(VERIFY_READ, target_fl, target_flock_addr, 1)) { |
| 179 | @@ -6980,10 +6925,10 @@ static inline abi_long copy_from_user_flock64(struct flock64 *fl, | 178 | @@ -6965,10 +6910,10 @@ static inline abi_long copy_from_user_flock64(struct flock64 *fl, |
| 180 | return 0; | 179 | return 0; |
| 181 | } | 180 | } |
| 182 | 181 | ||
| @@ -190,7 +189,7 @@ index 18f09f1f07..1b7c50a2a7 100644 | |||
| 190 | short l_type; | 189 | short l_type; |
| 191 | 190 | ||
| 192 | if (!lock_user_struct(VERIFY_WRITE, target_fl, target_flock_addr, 0)) { | 191 | if (!lock_user_struct(VERIFY_WRITE, target_fl, target_flock_addr, 0)) { |
| 193 | @@ -7002,7 +6947,7 @@ static inline abi_long copy_to_user_flock64(abi_ulong target_flock_addr, | 192 | @@ -6987,7 +6932,7 @@ static inline abi_long copy_to_user_flock64(abi_ulong target_flock_addr, |
| 194 | 193 | ||
| 195 | static abi_long do_fcntl(int fd, int cmd, abi_ulong arg) | 194 | static abi_long do_fcntl(int fd, int cmd, abi_ulong arg) |
| 196 | { | 195 | { |
| @@ -199,7 +198,7 @@ index 18f09f1f07..1b7c50a2a7 100644 | |||
| 199 | #ifdef F_GETOWN_EX | 198 | #ifdef F_GETOWN_EX |
| 200 | struct f_owner_ex fox; | 199 | struct f_owner_ex fox; |
| 201 | struct target_f_owner_ex *target_fox; | 200 | struct target_f_owner_ex *target_fox; |
| 202 | @@ -7015,6 +6960,7 @@ static abi_long do_fcntl(int fd, int cmd, abi_ulong arg) | 201 | @@ -7000,6 +6945,7 @@ static abi_long do_fcntl(int fd, int cmd, abi_ulong arg) |
| 203 | 202 | ||
| 204 | switch(cmd) { | 203 | switch(cmd) { |
| 205 | case TARGET_F_GETLK: | 204 | case TARGET_F_GETLK: |
| @@ -207,7 +206,7 @@ index 18f09f1f07..1b7c50a2a7 100644 | |||
| 207 | ret = copy_from_user_flock(&fl64, arg); | 206 | ret = copy_from_user_flock(&fl64, arg); |
| 208 | if (ret) { | 207 | if (ret) { |
| 209 | return ret; | 208 | return ret; |
| 210 | @@ -7024,32 +6970,11 @@ static abi_long do_fcntl(int fd, int cmd, abi_ulong arg) | 209 | @@ -7009,32 +6955,11 @@ static abi_long do_fcntl(int fd, int cmd, abi_ulong arg) |
| 211 | ret = copy_to_user_flock(arg, &fl64); | 210 | ret = copy_to_user_flock(arg, &fl64); |
| 212 | } | 211 | } |
| 213 | break; | 212 | break; |
| @@ -241,7 +240,7 @@ index 18f09f1f07..1b7c50a2a7 100644 | |||
| 241 | if (ret) { | 240 | if (ret) { |
| 242 | return ret; | 241 | return ret; |
| 243 | } | 242 | } |
| 244 | @@ -7278,7 +7203,7 @@ static inline abi_long target_truncate64(CPUArchState *cpu_env, const char *arg1 | 243 | @@ -7269,7 +7194,7 @@ static inline abi_long target_truncate64(CPUArchState *cpu_env, const char *arg1 |
| 245 | arg2 = arg3; | 244 | arg2 = arg3; |
| 246 | arg3 = arg4; | 245 | arg3 = arg4; |
| 247 | } | 246 | } |
| @@ -250,7 +249,7 @@ index 18f09f1f07..1b7c50a2a7 100644 | |||
| 250 | } | 249 | } |
| 251 | #endif | 250 | #endif |
| 252 | 251 | ||
| 253 | @@ -7292,7 +7217,7 @@ static inline abi_long target_ftruncate64(CPUArchState *cpu_env, abi_long arg1, | 252 | @@ -7283,7 +7208,7 @@ static inline abi_long target_ftruncate64(CPUArchState *cpu_env, abi_long arg1, |
| 254 | arg2 = arg3; | 253 | arg2 = arg3; |
| 255 | arg3 = arg4; | 254 | arg3 = arg4; |
| 256 | } | 255 | } |
| @@ -259,7 +258,7 @@ index 18f09f1f07..1b7c50a2a7 100644 | |||
| 259 | } | 258 | } |
| 260 | #endif | 259 | #endif |
| 261 | 260 | ||
| 262 | @@ -8667,7 +8592,7 @@ static int do_getdents(abi_long dirfd, abi_long arg2, abi_long count) | 261 | @@ -8668,7 +8593,7 @@ static int do_getdents(abi_long dirfd, abi_long arg2, abi_long count) |
| 263 | void *tdirp; | 262 | void *tdirp; |
| 264 | int hlen, hoff, toff; | 263 | int hlen, hoff, toff; |
| 265 | int hreclen, treclen; | 264 | int hreclen, treclen; |
| @@ -268,7 +267,7 @@ index 18f09f1f07..1b7c50a2a7 100644 | |||
| 268 | 267 | ||
| 269 | hdirp = g_try_malloc(count); | 268 | hdirp = g_try_malloc(count); |
| 270 | if (!hdirp) { | 269 | if (!hdirp) { |
| 271 | @@ -8720,7 +8645,7 @@ static int do_getdents(abi_long dirfd, abi_long arg2, abi_long count) | 270 | @@ -8721,7 +8646,7 @@ static int do_getdents(abi_long dirfd, abi_long arg2, abi_long count) |
| 272 | * Return what we have, resetting the file pointer to the | 271 | * Return what we have, resetting the file pointer to the |
| 273 | * location of the first record not returned. | 272 | * location of the first record not returned. |
| 274 | */ | 273 | */ |
| @@ -277,7 +276,7 @@ index 18f09f1f07..1b7c50a2a7 100644 | |||
| 277 | break; | 276 | break; |
| 278 | } | 277 | } |
| 279 | 278 | ||
| 280 | @@ -8754,7 +8679,7 @@ static int do_getdents64(abi_long dirfd, abi_long arg2, abi_long count) | 279 | @@ -8755,7 +8680,7 @@ static int do_getdents64(abi_long dirfd, abi_long arg2, abi_long count) |
| 281 | void *tdirp; | 280 | void *tdirp; |
| 282 | int hlen, hoff, toff; | 281 | int hlen, hoff, toff; |
| 283 | int hreclen, treclen; | 282 | int hreclen, treclen; |
| @@ -286,7 +285,7 @@ index 18f09f1f07..1b7c50a2a7 100644 | |||
| 286 | 285 | ||
| 287 | hdirp = g_try_malloc(count); | 286 | hdirp = g_try_malloc(count); |
| 288 | if (!hdirp) { | 287 | if (!hdirp) { |
| 289 | @@ -8796,7 +8721,7 @@ static int do_getdents64(abi_long dirfd, abi_long arg2, abi_long count) | 288 | @@ -8797,7 +8722,7 @@ static int do_getdents64(abi_long dirfd, abi_long arg2, abi_long count) |
| 290 | * Return what we have, resetting the file pointer to the | 289 | * Return what we have, resetting the file pointer to the |
| 291 | * location of the first record not returned. | 290 | * location of the first record not returned. |
| 292 | */ | 291 | */ |
| @@ -295,7 +294,7 @@ index 18f09f1f07..1b7c50a2a7 100644 | |||
| 295 | break; | 294 | break; |
| 296 | } | 295 | } |
| 297 | 296 | ||
| 298 | @@ -11527,7 +11452,7 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1, | 297 | @@ -11528,7 +11453,7 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1, |
| 299 | return -TARGET_EFAULT; | 298 | return -TARGET_EFAULT; |
| 300 | } | 299 | } |
| 301 | } | 300 | } |
| @@ -304,7 +303,7 @@ index 18f09f1f07..1b7c50a2a7 100644 | |||
| 304 | unlock_user(p, arg2, ret); | 303 | unlock_user(p, arg2, ret); |
| 305 | return ret; | 304 | return ret; |
| 306 | case TARGET_NR_pwrite64: | 305 | case TARGET_NR_pwrite64: |
| 307 | @@ -11544,7 +11469,7 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1, | 306 | @@ -11545,7 +11470,7 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1, |
| 308 | return -TARGET_EFAULT; | 307 | return -TARGET_EFAULT; |
| 309 | } | 308 | } |
| 310 | } | 309 | } |
| @@ -313,7 +312,7 @@ index 18f09f1f07..1b7c50a2a7 100644 | |||
| 313 | unlock_user(p, arg2, 0); | 312 | unlock_user(p, arg2, 0); |
| 314 | return ret; | 313 | return ret; |
| 315 | #endif | 314 | #endif |
| 316 | @@ -12404,14 +12329,14 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1, | 315 | @@ -12405,14 +12330,14 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1, |
| 317 | case TARGET_NR_fcntl64: | 316 | case TARGET_NR_fcntl64: |
| 318 | { | 317 | { |
| 319 | int cmd; | 318 | int cmd; |
| @@ -333,7 +332,7 @@ index 18f09f1f07..1b7c50a2a7 100644 | |||
| 333 | } | 332 | } |
| 334 | #endif | 333 | #endif |
| 335 | 334 | ||
| 336 | @@ -12421,7 +12346,7 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1, | 335 | @@ -12422,7 +12347,7 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1, |
| 337 | } | 336 | } |
| 338 | 337 | ||
| 339 | switch(arg2) { | 338 | switch(arg2) { |
| @@ -342,7 +341,7 @@ index 18f09f1f07..1b7c50a2a7 100644 | |||
| 342 | ret = copyfrom(&fl, arg3); | 341 | ret = copyfrom(&fl, arg3); |
| 343 | if (ret) { | 342 | if (ret) { |
| 344 | break; | 343 | break; |
| 345 | @@ -12432,8 +12357,8 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1, | 344 | @@ -12433,8 +12358,8 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1, |
| 346 | } | 345 | } |
| 347 | break; | 346 | break; |
| 348 | 347 | ||
| @@ -353,6 +352,3 @@ index 18f09f1f07..1b7c50a2a7 100644 | |||
| 353 | ret = copyfrom(&fl, arg3); | 352 | ret = copyfrom(&fl, arg3); |
| 354 | if (ret) { | 353 | if (ret) { |
| 355 | break; | 354 | break; |
| 356 | -- | ||
| 357 | 2.44.0 | ||
| 358 | |||
diff --git a/meta/recipes-devtools/qemu/qemu/0010-configure-lookup-meson-exutable-from-PATH.patch b/meta/recipes-devtools/qemu/qemu/0010-configure-lookup-meson-exutable-from-PATH.patch index 98ce85a8cf..f20851bff0 100644 --- a/meta/recipes-devtools/qemu/qemu/0010-configure-lookup-meson-exutable-from-PATH.patch +++ b/meta/recipes-devtools/qemu/qemu/0010-configure-lookup-meson-exutable-from-PATH.patch | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | From e12a93174f9b652604dda8d8464b9559b62b29d5 Mon Sep 17 00:00:00 2001 | 1 | From 2e9642b9001df523628ab2cacbbbf2b208c49437 Mon Sep 17 00:00:00 2001 |
| 2 | From: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= <martin@geanix.com> | 2 | From: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= <martin@geanix.com> |
| 3 | Date: Wed, 22 May 2024 14:02:55 +0200 | 3 | Date: Wed, 22 May 2024 14:02:55 +0200 |
| 4 | Subject: [PATCH 10/11] configure: lookup meson exutable from PATH | 4 | Subject: [PATCH] configure: lookup meson exutable from PATH |
| 5 | 5 | ||
| 6 | Upstream-Status: Inappropriate [workaround, would need a real fix for upstream] | 6 | Upstream-Status: Inappropriate [workaround, would need a real fix for upstream] |
| 7 | --- | 7 | --- |
| @@ -9,10 +9,10 @@ Upstream-Status: Inappropriate [workaround, would need a real fix for upstream] | |||
| 9 | 1 file changed, 1 insertion(+), 6 deletions(-) | 9 | 1 file changed, 1 insertion(+), 6 deletions(-) |
| 10 | 10 | ||
| 11 | diff --git a/configure b/configure | 11 | diff --git a/configure b/configure |
| 12 | index 3cd736b139..482a1f8ef3 100755 | 12 | index d08b71f14..af0bd2c66 100755 |
| 13 | --- a/configure | 13 | --- a/configure |
| 14 | +++ b/configure | 14 | +++ b/configure |
| 15 | @@ -956,12 +956,7 @@ fi | 15 | @@ -958,12 +958,7 @@ mkvenv="$python ${source_path}/python/scripts/mkvenv.py" |
| 16 | $mkvenv ensuregroup --dir "${source_path}/python/wheels" \ | 16 | $mkvenv ensuregroup --dir "${source_path}/python/wheels" \ |
| 17 | ${source_path}/pythondeps.toml meson || exit 1 | 17 | ${source_path}/pythondeps.toml meson || exit 1 |
| 18 | 18 | ||
| @@ -26,6 +26,3 @@ index 3cd736b139..482a1f8ef3 100755 | |||
| 26 | 26 | ||
| 27 | # Conditionally ensure Sphinx is installed. | 27 | # Conditionally ensure Sphinx is installed. |
| 28 | 28 | ||
| 29 | -- | ||
| 30 | 2.44.0 | ||
| 31 | |||
diff --git a/meta/recipes-devtools/qemu/qemu/0011-qemu-Ensure-pip-and-the-python-venv-aren-t-used-for-.patch b/meta/recipes-devtools/qemu/qemu/0011-qemu-Ensure-pip-and-the-python-venv-aren-t-used-for-.patch index c7bb9b1b47..4adb2e5fa5 100644 --- a/meta/recipes-devtools/qemu/qemu/0011-qemu-Ensure-pip-and-the-python-venv-aren-t-used-for-.patch +++ b/meta/recipes-devtools/qemu/qemu/0011-qemu-Ensure-pip-and-the-python-venv-aren-t-used-for-.patch | |||
| @@ -1,8 +1,7 @@ | |||
| 1 | From a93c2a6b2c9db9c4bd30298da43c37c5e5c6236e Mon Sep 17 00:00:00 2001 | 1 | From 68a13afd6606c2aaf1f0debd325d7314aaa61411 Mon Sep 17 00:00:00 2001 |
| 2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | 2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> |
| 3 | Date: Wed, 22 May 2024 13:58:23 +0200 | 3 | Date: Wed, 22 May 2024 13:58:23 +0200 |
| 4 | Subject: [PATCH 11/11] qemu: Ensure pip and the python venv aren't used for | 4 | Subject: [PATCH] qemu: Ensure pip and the python venv aren't used for meson |
| 5 | meson | ||
| 6 | 5 | ||
| 7 | Qemu wants to use a supported python version and a specific meson version | 6 | Qemu wants to use a supported python version and a specific meson version |
| 8 | to "help" users and uses pip and creates a venv to do this. This is a nightmare | 7 | to "help" users and uses pip and creates a venv to do this. This is a nightmare |
| @@ -30,10 +29,10 @@ Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | |||
| 30 | 1 file changed, 2 insertions(+), 2 deletions(-) | 29 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 31 | 30 | ||
| 32 | diff --git a/configure b/configure | 31 | diff --git a/configure b/configure |
| 33 | index 482a1f8ef3..0da4bf3e4d 100755 | 32 | index af0bd2c66..88dab6a95 100755 |
| 34 | --- a/configure | 33 | --- a/configure |
| 35 | +++ b/configure | 34 | +++ b/configure |
| 36 | @@ -938,14 +938,14 @@ python="$(command -v "$python")" | 35 | @@ -944,14 +944,14 @@ python="$(command -v "$python")" |
| 37 | echo "python determined to be '$python'" | 36 | echo "python determined to be '$python'" |
| 38 | echo "python version: $($python --version)" | 37 | echo "python version: $($python --version)" |
| 39 | 38 | ||
| @@ -50,6 +49,3 @@ index 482a1f8ef3..0da4bf3e4d 100755 | |||
| 50 | 49 | ||
| 51 | # Finish preparing the virtual environment using vendored .whl files | 50 | # Finish preparing the virtual environment using vendored .whl files |
| 52 | 51 | ||
| 53 | -- | ||
| 54 | 2.44.0 | ||
| 55 | |||
diff --git a/meta/recipes-devtools/qemu/qemu/fix-strerrorname_np.patch b/meta/recipes-devtools/qemu/qemu/fix-strerrorname_np.patch index 5098e8a4e5..b57c481183 100644 --- a/meta/recipes-devtools/qemu/qemu/fix-strerrorname_np.patch +++ b/meta/recipes-devtools/qemu/qemu/fix-strerrorname_np.patch | |||
| @@ -1,4 +1,7 @@ | |||
| 1 | target/riscv/kvm: do not use non-portable strerrorname_np() | 1 | From 9de5de85fa917af58e7bc9cdd88f8f7ef8da2ca9 Mon Sep 17 00:00:00 2001 |
| 2 | From: Natanael Copa <ncopa@alpinelinux.org> | ||
| 3 | Date: Wed, 18 Sep 2024 16:19:37 -0700 | ||
| 4 | Subject: [PATCH] target/riscv/kvm: do not use non-portable strerrorname_np() | ||
| 2 | 5 | ||
| 3 | strerrorname_np is non-portable and breaks building with musl libc. | 6 | strerrorname_np is non-portable and breaks building with musl libc. |
| 4 | 7 | ||
| @@ -7,15 +10,20 @@ Use strerror(errno) instead, like we do other places. | |||
| 7 | Upstream-Status: Submitted [https://mail.gnu.org/archive/html/qemu-stable/2023-12/msg00069.html] | 10 | Upstream-Status: Submitted [https://mail.gnu.org/archive/html/qemu-stable/2023-12/msg00069.html] |
| 8 | 11 | ||
| 9 | Cc: qemu-stable@nongnu.org | 12 | Cc: qemu-stable@nongnu.org |
| 10 | Fixes: commit 082e9e4a58ba (target/riscv/kvm: improve 'init_multiext_cfg' error | 13 | Fixes: commit 082e9e4a58ba (target/riscv/kvm: improve 'init_multiext_cfg' error |
| 11 | msg) | 14 | msg) |
| 12 | Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2041 | 15 | Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2041 |
| 13 | Buglink: https://gitlab.alpinelinux.org/alpine/aports/-/issues/15541 | 16 | Buglink: https://gitlab.alpinelinux.org/alpine/aports/-/issues/15541 |
| 14 | Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> | 17 | Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> |
| 18 | --- | ||
| 19 | target/riscv/kvm/kvm-cpu.c | 3 +-- | ||
| 20 | 1 file changed, 1 insertion(+), 2 deletions(-) | ||
| 15 | 21 | ||
| 22 | diff --git a/target/riscv/kvm/kvm-cpu.c b/target/riscv/kvm/kvm-cpu.c | ||
| 23 | index f6e3156b8..fad9eb21c 100644 | ||
| 16 | --- a/target/riscv/kvm/kvm-cpu.c | 24 | --- a/target/riscv/kvm/kvm-cpu.c |
| 17 | +++ b/target/riscv/kvm/kvm-cpu.c | 25 | +++ b/target/riscv/kvm/kvm-cpu.c |
| 18 | @@ -1731,8 +1731,7 @@ static bool kvm_cpu_realize(CPUState *cs | 26 | @@ -1859,8 +1859,7 @@ static bool kvm_cpu_realize(CPUState *cs, Error **errp) |
| 19 | if (riscv_has_ext(&cpu->env, RVV)) { | 27 | if (riscv_has_ext(&cpu->env, RVV)) { |
| 20 | ret = prctl(PR_RISCV_V_SET_CONTROL, PR_RISCV_V_VSTATE_CTRL_ON); | 28 | ret = prctl(PR_RISCV_V_SET_CONTROL, PR_RISCV_V_VSTATE_CTRL_ON); |
| 21 | if (ret) { | 29 | if (ret) { |
diff --git a/meta/recipes-devtools/qemu/qemu_9.1.0.bb b/meta/recipes-devtools/qemu/qemu_9.1.1.bb index dc1352232e..dc1352232e 100644 --- a/meta/recipes-devtools/qemu/qemu_9.1.0.bb +++ b/meta/recipes-devtools/qemu/qemu_9.1.1.bb | |||
