1 From ee9f3cca374ee9935cc0337cfbbd02f0d0e4e105 Mon Sep 17 00:00:00 2001
2 From: "Richard W.M. Jones" <rjones@redhat.com>
3 Date: Tue, 9 Aug 2016 18:25:24 +0100
4 Subject: [PATCH 1/3] RISCV 64-bit (riscv64) support.
6 Based on Mark Salter's aarch64 support patch (commit 8e1ca16c58).
8 Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
10 installplatform | 6 ++++++
11 rpmrc.in | 16 ++++++++++++++++
12 2 files changed, 22 insertions(+)
14 diff --git a/installplatform b/installplatform
15 index ebade42..12339fc 100755
18 @@ -174,6 +174,12 @@ for ARCH in noarch `grep ^arch_canon $RPMRC | cut -d: -f2`; do
31 diff --git a/rpmrc.in b/rpmrc.in
32 index e888b0f..abc08fc 100644
35 @@ -99,6 +99,8 @@ optflags: sh4a -O2 -g -mieee
37 optflags: aarch64 -O2 -g
39 +optflags: riscv64 -O2 -g
41 #############################################################
44 @@ -147,6 +149,8 @@ archcolor: sh4 1
50 #############################################################
51 # Canonical arch names and numbers
53 @@ -243,6 +247,9 @@ arch_canon: mipsr6el: mipsr6el 20
54 arch_canon: mips64r6: mips64r6 21
55 arch_canon: mips64r6el: mips64r6el 21
57 +arch_canon: riscv: riscv64 22
58 +arch_canon: riscv64: riscv64 22
60 #############################################################
61 # Canonical OS names and numbers
63 @@ -368,6 +375,9 @@ buildarchtranslate: sh4a: sh4
65 buildarchtranslate: aarch64: aarch64
67 +buildarchtranslate: riscv: riscv64
68 +buildarchtranslate: riscv64: riscv64
70 #############################################################
71 # Architecture compatibility
73 @@ -473,6 +483,9 @@ arch_compat: sh4a: sh4
75 arch_compat: aarch64: noarch
77 +arch_compat: riscv: noarch
78 +arch_compat: riscv64: noarch
80 os_compat: IRIX64: IRIX
81 os_compat: solaris2.7: solaris2.3 solaris2.4 solaris2.5 solaris2.6
82 os_compat: solaris2.6: solaris2.3 solaris2.4 solaris2.5
83 @@ -506,6 +519,9 @@ buildarch_compat: ia64: noarch
85 buildarch_compat: aarch64: noarch
87 +buildarch_compat: riscv: noarch
88 +buildarch_compat: riscv64: noarch
90 buildarch_compat: athlon: i686
91 buildarch_compat: geode: i586
92 buildarch_compat: pentium4: pentium3