summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-09-18 07:12:28 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-09-20 14:01:02 +0100
commit3d64ad906bb49a6d17541af670fbf067cc94d6d6 (patch)
treebc2ed98ecf79e1fb98548b9b0cff1d7f18389df8 /meta/recipes-devtools
parenta7da5d525b268fc2f1c43112ecbd0f2b8824fcff (diff)
downloadpoky-3d64ad906bb49a6d17541af670fbf067cc94d6d6.tar.gz
systemd-bootchart: Add riscv 32bit support
(From OE-Core rev: b20551a8bbd71dd73aca7df3973556de020819cd) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/systemd-bootchart/systemd-bootchart/0001-Add-riscv32-support.patch48
-rw-r--r--meta/recipes-devtools/systemd-bootchart/systemd-bootchart_235.bb1
2 files changed, 49 insertions, 0 deletions
diff --git a/meta/recipes-devtools/systemd-bootchart/systemd-bootchart/0001-Add-riscv32-support.patch b/meta/recipes-devtools/systemd-bootchart/systemd-bootchart/0001-Add-riscv32-support.patch
new file mode 100644
index 0000000000..80f0b6d378
--- /dev/null
+++ b/meta/recipes-devtools/systemd-bootchart/systemd-bootchart/0001-Add-riscv32-support.patch
@@ -0,0 +1,48 @@
1From da22e9f4eec22163feab5a0a4488627ea992daa9 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 16 Sep 2024 23:58:36 +0000
4Subject: [PATCH] Add riscv32 support
5
6Add missing definitions for the RISC-V 32-bit architecture.
7
8Upstream-Status: Submitted [https://github.com/systemd/systemd-bootchart/pull/54]
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 configure.ac | 1 +
12 src/architecture.h | 4 ++++
13 2 files changed, 5 insertions(+)
14
15diff --git a/configure.ac b/configure.ac
16index 5c9c20f..f977c78 100644
17--- a/configure.ac
18+++ b/configure.ac
19@@ -45,6 +45,7 @@ SET_ARCH(IA32, i*86*)
20 SET_ARCH(MIPS, mips*)
21 SET_ARCH(AARCH64, aarch64*)
22 SET_ARCH(RISCV64, riscv64*)
23+SET_ARCH(RISCV32, riscv32*)
24
25 AC_CHECK_SIZEOF(pid_t)
26 AC_CHECK_SIZEOF(uid_t)
27diff --git a/src/architecture.h b/src/architecture.h
28index cbf1795..f33cd00 100644
29--- a/src/architecture.h
30+++ b/src/architecture.h
31@@ -58,6 +58,7 @@ enum {
32 ARCHITECTURE_TILEGX,
33 ARCHITECTURE_CRIS,
34 ARCHITECTURE_RISCV64,
35+ ARCHITECTURE_RISCV32,
36 ARCHITECTURE_LOONGARCH,
37 _ARCHITECTURE_MAX,
38 _ARCHITECTURE_INVALID = -1
39@@ -151,6 +152,9 @@ int uname_architecture(void);
40 #elif defined(__riscv) && __riscv_xlen == 64
41 # define native_architecture() ARCHITECTURE_RISCV64
42 # define define LIB_ARCH_TUPLE "riscv64-linux-gnu"
43+#elif defined(__riscv) && __riscv_xlen == 32
44+# define native_architecture() ARCHITECTURE_RISCV32
45+# define define LIB_ARCH_TUPLE "riscv32-linux-gnu"
46 #elif defined(__loongarch__) && __loongarch_grlen == 64
47 # define native_architecture() ARCHITECTURE_LOONGARCH
48 # define define LIB_ARCH_TUPLE "loongarch64-linux-gnu"
diff --git a/meta/recipes-devtools/systemd-bootchart/systemd-bootchart_235.bb b/meta/recipes-devtools/systemd-bootchart/systemd-bootchart_235.bb
index 3c3c84ff4a..859c7eb906 100644
--- a/meta/recipes-devtools/systemd-bootchart/systemd-bootchart_235.bb
+++ b/meta/recipes-devtools/systemd-bootchart/systemd-bootchart_235.bb
@@ -11,6 +11,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c
11SRC_URI = "git://github.com/systemd/systemd-bootchart.git;protocol=https;branch=main \ 11SRC_URI = "git://github.com/systemd/systemd-bootchart.git;protocol=https;branch=main \
12 file://mips64.patch \ 12 file://mips64.patch \
13 file://no_lto.patch \ 13 file://no_lto.patch \
14 file://0001-Add-riscv32-support.patch \
14" 15"
15 16
16SRC_URI:append:libc-musl = " \ 17SRC_URI:append:libc-musl = " \