diff options
Diffstat (limited to 'meta/recipes-devtools/qemu')
-rw-r--r-- | meta/recipes-devtools/qemu/qemu.inc | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/qemu/qemu/0001-linux-user-Replace-__u64-with-uint64_t.patch | 31 | ||||
-rw-r--r-- | meta/recipes-devtools/qemu/qemu_6.1.0.bb | 2 |
3 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc index 33052a9d49..8cc4600cad 100644 --- a/meta/recipes-devtools/qemu/qemu.inc +++ b/meta/recipes-devtools/qemu/qemu.inc | |||
@@ -26,6 +26,7 @@ SRC_URI = "https://download.qemu.org/${BPN}-${PV}.tar.xz \ | |||
26 | file://mmap2.patch \ | 26 | file://mmap2.patch \ |
27 | file://determinism.patch \ | 27 | file://determinism.patch \ |
28 | file://0001-tests-meson.build-use-relative-path-to-refer-to-file.patch \ | 28 | file://0001-tests-meson.build-use-relative-path-to-refer-to-file.patch \ |
29 | file://0001-linux-user-Replace-__u64-with-uint64_t.patch \ | ||
29 | " | 30 | " |
30 | UPSTREAM_CHECK_REGEX = "qemu-(?P<pver>\d+(\.\d+)+)\.tar" | 31 | UPSTREAM_CHECK_REGEX = "qemu-(?P<pver>\d+(\.\d+)+)\.tar" |
31 | 32 | ||
diff --git a/meta/recipes-devtools/qemu/qemu/0001-linux-user-Replace-__u64-with-uint64_t.patch b/meta/recipes-devtools/qemu/qemu/0001-linux-user-Replace-__u64-with-uint64_t.patch new file mode 100644 index 0000000000..3d5c890b0f --- /dev/null +++ b/meta/recipes-devtools/qemu/qemu/0001-linux-user-Replace-__u64-with-uint64_t.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 5cc7b63299602d0aa8b57c684bbd9829856d54ad Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 8 Nov 2021 11:39:26 -0800 | ||
4 | Subject: [PATCH] linux-user: Replace __u64 with uint64_t | ||
5 | |||
6 | uint64_t is available in all userspaces via compiler include stdint.h | ||
7 | therefore use it instead of __u64 which is linux internal type, it fixes | ||
8 | build on some platforms eg. aarch64 systems using musl C library | ||
9 | |||
10 | Upstream-Status: Submitted [https://lists.gnu.org/archive/html/qemu-devel/2021-11/msg01955.html] | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | linux-user/host/aarch64/hostdep.h | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/linux-user/host/aarch64/hostdep.h b/linux-user/host/aarch64/hostdep.h | ||
17 | index a8d41a21ad..34d934f665 100644 | ||
18 | --- a/linux-user/host/aarch64/hostdep.h | ||
19 | +++ b/linux-user/host/aarch64/hostdep.h | ||
20 | @@ -25,7 +25,7 @@ extern char safe_syscall_end[]; | ||
21 | static inline void rewind_if_in_safe_syscall(void *puc) | ||
22 | { | ||
23 | ucontext_t *uc = puc; | ||
24 | - __u64 *pcreg = &uc->uc_mcontext.pc; | ||
25 | + uint64_t *pcreg = &uc->uc_mcontext.pc; | ||
26 | |||
27 | if (*pcreg > (uintptr_t)safe_syscall_start | ||
28 | && *pcreg < (uintptr_t)safe_syscall_end) { | ||
29 | -- | ||
30 | 2.33.1 | ||
31 | |||
diff --git a/meta/recipes-devtools/qemu/qemu_6.1.0.bb b/meta/recipes-devtools/qemu/qemu_6.1.0.bb index 017a054d5d..c9a53e3b05 100644 --- a/meta/recipes-devtools/qemu/qemu_6.1.0.bb +++ b/meta/recipes-devtools/qemu/qemu_6.1.0.bb | |||
@@ -4,6 +4,8 @@ require qemu.inc | |||
4 | 4 | ||
5 | DEPENDS = "glib-2.0 zlib pixman bison-native ninja-native meson-native" | 5 | DEPENDS = "glib-2.0 zlib pixman bison-native ninja-native meson-native" |
6 | 6 | ||
7 | DEPENDS:append:libc-musl = " libucontext" | ||
8 | |||
7 | RDEPENDS:${PN}:class-target += "bash" | 9 | RDEPENDS:${PN}:class-target += "bash" |
8 | 10 | ||
9 | EXTRA_OECONF:append:class-target = " --target-list=${@get_qemu_target_list(d)}" | 11 | EXTRA_OECONF:append:class-target = " --target-list=${@get_qemu_target_list(d)}" |