summaryrefslogtreecommitdiffstats
path: root/debian/patches/upstream/setarch-add-riscv64-riscv32-support.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 19:10:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 19:10:50 +0000
commit63c1e58910cbc3c5cc4b4bdf966f68dd292980a1 (patch)
treeba5913f9f169d5c0391237afbab9c94955ce18ab /debian/patches/upstream/setarch-add-riscv64-riscv32-support.patch
parentAdding upstream version 2.39.3. (diff)
downloadutil-linux-63c1e58910cbc3c5cc4b4bdf966f68dd292980a1.tar.xz
util-linux-63c1e58910cbc3c5cc4b4bdf966f68dd292980a1.zip
Adding debian version 2.39.3-6.debian/2.39.3-6
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/patches/upstream/setarch-add-riscv64-riscv32-support.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/patches/upstream/setarch-add-riscv64-riscv32-support.patch b/debian/patches/upstream/setarch-add-riscv64-riscv32-support.patch
new file mode 100644
index 0000000..c0daa0f
--- /dev/null
+++ b/debian/patches/upstream/setarch-add-riscv64-riscv32-support.patch
@@ -0,0 +1,26 @@
+From: Michal Biesek <michalbiesek@gmail.com>
+Date: Mon, 14 Aug 2023 02:37:45 +0200
+Subject: setarch: add riscv64/riscv32 support
+
+Signed-off-by: Michal Biesek <michalbiesek@gmail.com>
+---
+ sys-utils/setarch.c | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/sys-utils/setarch.c b/sys-utils/setarch.c
+index 1a255e4..0a6af83 100644
+--- a/sys-utils/setarch.c
++++ b/sys-utils/setarch.c
+@@ -270,6 +270,12 @@ static struct arch_domain *init_arch_domains(void)
+ {PER_LINUX32, "arm", "arm"},
+ {PER_LINUX, "arm64", "aarch64"},
+ {PER_LINUX, "aarch64", "aarch64"},
++#endif
++#if defined(__riscv)
++ {PER_LINUX32, "riscv32", "riscv32"},
++ {PER_LINUX32, "rv32", "riscv32"},
++ {PER_LINUX, "riscv64", "riscv64"},
++ {PER_LINUX, "rv64", "riscv64"},
+ #endif
+ /* place holder, will be filled up at runtime */
+ {-1, NULL, NULL},