summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-05-19 00:37:24 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-05-21 15:18:23 +0100
commit180d2fb8b1b9f5311f45fb41a10283f98a8a9355 (patch)
tree28066fb5f11d71ab059c6874f17acdfdf00382d3 /meta
parent497b5b3329da81fdbe1f362d9a8a222d4165dba0 (diff)
downloadpoky-180d2fb8b1b9f5311f45fb41a10283f98a8a9355.tar.gz
musl: Fix __NR_fstatat syscall name for riscv
(From OE-Core rev: 3bd71e31ea535c5ad480c2d97110ff0b4b290555) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/musl/musl/0001-riscv-Rename-__NR_fstatat-__NR_newfstatat.patch32
-rw-r--r--meta/recipes-core/musl/musl_git.bb1
2 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-core/musl/musl/0001-riscv-Rename-__NR_fstatat-__NR_newfstatat.patch b/meta/recipes-core/musl/musl/0001-riscv-Rename-__NR_fstatat-__NR_newfstatat.patch
new file mode 100644
index 0000000000..9d9f16cee6
--- /dev/null
+++ b/meta/recipes-core/musl/musl/0001-riscv-Rename-__NR_fstatat-__NR_newfstatat.patch
@@ -0,0 +1,32 @@
1From 40732d03990632049d5ba63dd736269a81756b16 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 19 May 2021 00:30:05 -0700
4Subject: [PATCH] riscv: Rename __NR_fstatat __NR_newfstatat
5
6on riscv64 this syscall is called __NR_newfstatat
7this helps the name match kernel UAPI for external
8programs
9
10Upstream-Status: Submitted [https://www.openwall.com/lists/musl/2021/05/19/3]
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12Cc: zabolcs Nagy <nsz@port70.net>
13---
14 arch/riscv64/bits/syscall.h.in | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/arch/riscv64/bits/syscall.h.in b/arch/riscv64/bits/syscall.h.in
18index f9c421d0..39c0d650 100644
19--- a/arch/riscv64/bits/syscall.h.in
20+++ b/arch/riscv64/bits/syscall.h.in
21@@ -76,7 +76,7 @@
22 #define __NR_splice 76
23 #define __NR_tee 77
24 #define __NR_readlinkat 78
25-#define __NR_fstatat 79
26+#define __NR_newfstatat 79
27 #define __NR_fstat 80
28 #define __NR_sync 81
29 #define __NR_fsync 82
30--
312.31.1
32
diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-core/musl/musl_git.bb
index ef8bc2eec3..795b888bb3 100644
--- a/meta/recipes-core/musl/musl_git.bb
+++ b/meta/recipes-core/musl/musl_git.bb
@@ -15,6 +15,7 @@ PV = "${BASEVER}+git${SRCPV}"
15SRC_URI = "git://git.musl-libc.org/musl \ 15SRC_URI = "git://git.musl-libc.org/musl \
16 file://0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch \ 16 file://0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch \
17 file://0002-ldso-Use-syslibdir-and-libdir-as-default-pathes-to-l.patch \ 17 file://0002-ldso-Use-syslibdir-and-libdir-as-default-pathes-to-l.patch \
18 file://0001-riscv-Rename-__NR_fstatat-__NR_newfstatat.patch \
18 " 19 "
19 20
20S = "${WORKDIR}/git" 21S = "${WORKDIR}/git"