From b022614bc4a2ddc744ab976d87295758710382d2 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 31 Dec 2020 16:14:56 -0800 Subject: [PATCH] musl: Add bits/reg.h for riscv32 Applications include sys/reg.h to get wordsize for architecture and such applications would fail to build on rv32/musl if this header is not provided Signed-off-by: Khem Raj --- .../0017-Add-bits-reg.h-for-riscv32.patch | 23 +++++++++++++++++++ recipes-core/musl/musl_%.bbappend | 1 + 2 files changed, 24 insertions(+) create mode 100644 recipes-core/musl/musl/0017-Add-bits-reg.h-for-riscv32.patch diff --git a/recipes-core/musl/musl/0017-Add-bits-reg.h-for-riscv32.patch b/recipes-core/musl/musl/0017-Add-bits-reg.h-for-riscv32.patch new file mode 100644 index 0000000..2a16524 --- /dev/null +++ b/recipes-core/musl/musl/0017-Add-bits-reg.h-for-riscv32.patch @@ -0,0 +1,23 @@ +From 707914898f9b5a2738ad188942c3c730889f8f16 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Thu, 31 Dec 2020 16:07:38 -0800 +Subject: [PATCH] Add bits/reg.h for riscv32 + +Signed-off-by: Khem Raj +--- + arch/riscv32/bits/reg.h | 3 +++ + 1 file changed, 3 insertions(+) + create mode 100644 arch/riscv32/bits/reg.h + +diff --git a/arch/riscv32/bits/reg.h b/arch/riscv32/bits/reg.h +new file mode 100644 +index 00000000..0c7bffca +--- /dev/null ++++ b/arch/riscv32/bits/reg.h +@@ -0,0 +1,3 @@ ++#undef __WORDSIZE ++#define __WORDSIZE 32 ++/* FIXME */ +-- +2.30.0 + diff --git a/recipes-core/musl/musl_%.bbappend b/recipes-core/musl/musl_%.bbappend index c7ffb11..a4b856d 100644 --- a/recipes-core/musl/musl_%.bbappend +++ b/recipes-core/musl/musl_%.bbappend @@ -17,4 +17,5 @@ SRC_URI_append_riscv32 = "\ file://0014-riscv32-Add-thread-support.patch \ file://0015-Change-definitions-of-F_GETLK-F_SETLK-F_SETLKW.patch \ file://0016-riscv32-Wire-new-syscalls.patch \ + file://0017-Add-bits-reg.h-for-riscv32.patch \ "