|
|
9c2066 |
From d9d47e01146a5d4411691a71916b1030ac7da193 Mon Sep 17 00:00:00 2001
|
|
|
9c2066 |
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
|
9c2066 |
Date: Tue, 9 Aug 2016 18:25:24 +0100
|
|
|
9c2066 |
Subject: [PATCH 1/3] RISCV 64-bit (riscv64) support.
|
|
|
9c2066 |
|
|
|
9c2066 |
Based on Mark Salter's aarch64 support patch (commit 8e1ca16c58).
|
|
|
9c2066 |
|
|
|
9c2066 |
Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
|
|
|
9c2066 |
---
|
|
|
9c2066 |
installplatform | 6 ++++++
|
|
|
9c2066 |
rpmrc.in | 16 ++++++++++++++++
|
|
|
9c2066 |
2 files changed, 22 insertions(+)
|
|
|
9c2066 |
|
|
|
9c2066 |
diff --git a/installplatform b/installplatform
|
|
|
9c2066 |
index ebade42..12339fc 100755
|
|
|
9c2066 |
--- a/installplatform
|
|
|
9c2066 |
+++ b/installplatform
|
|
|
9c2066 |
@@ -174,6 +174,12 @@ for ARCH in noarch `grep ^arch_canon $RPMRC | cut -d: -f2`; do
|
|
|
9c2066 |
CANONARCH=m68k
|
|
|
9c2066 |
CANONCOLOR=0
|
|
|
9c2066 |
;;
|
|
|
9c2066 |
+ riscv64)
|
|
|
9c2066 |
+ ISANAME=riscv
|
|
|
9c2066 |
+ ISABITS=64
|
|
|
9c2066 |
+ CANONARCH=riscv64
|
|
|
9c2066 |
+ CANONCOLOR=3
|
|
|
9c2066 |
+ ;;
|
|
|
9c2066 |
noarch)
|
|
|
9c2066 |
CANONARCH=noarch
|
|
|
9c2066 |
CANONCOLOR=0
|
|
|
9c2066 |
diff --git a/rpmrc.in b/rpmrc.in
|
|
|
9c2066 |
index e888b0f..abc08fc 100644
|
|
|
9c2066 |
--- a/rpmrc.in
|
|
|
9c2066 |
+++ b/rpmrc.in
|
|
|
9c2066 |
@@ -99,6 +99,8 @@ optflags: sh4a -O2 -g -mieee
|
|
|
9c2066 |
|
|
|
9c2066 |
optflags: aarch64 -O2 -g
|
|
|
9c2066 |
|
|
|
9c2066 |
+optflags: riscv64 -O2 -g
|
|
|
9c2066 |
+
|
|
|
9c2066 |
#############################################################
|
|
|
9c2066 |
# Architecture colors
|
|
|
9c2066 |
|
|
|
9c2066 |
@@ -147,6 +149,8 @@ archcolor: sh4 1
|
|
|
9c2066 |
|
|
|
9c2066 |
archcolor: aarch64 2
|
|
|
9c2066 |
|
|
|
9c2066 |
+archcolor: riscv64 2
|
|
|
9c2066 |
+
|
|
|
9c2066 |
#############################################################
|
|
|
9c2066 |
# Canonical arch names and numbers
|
|
|
9c2066 |
|
|
|
9c2066 |
@@ -243,6 +247,9 @@ arch_canon: mipsr6el: mipsr6el 20
|
|
|
9c2066 |
arch_canon: mips64r6: mips64r6 21
|
|
|
9c2066 |
arch_canon: mips64r6el: mips64r6el 21
|
|
|
9c2066 |
|
|
|
9c2066 |
+arch_canon: riscv: riscv64 22
|
|
|
9c2066 |
+arch_canon: riscv64: riscv64 22
|
|
|
9c2066 |
+
|
|
|
9c2066 |
#############################################################
|
|
|
9c2066 |
# Canonical OS names and numbers
|
|
|
9c2066 |
|
|
|
9c2066 |
@@ -368,6 +375,9 @@ buildarchtranslate: sh4a: sh4
|
|
|
9c2066 |
|
|
|
9c2066 |
buildarchtranslate: aarch64: aarch64
|
|
|
9c2066 |
|
|
|
9c2066 |
+buildarchtranslate: riscv: riscv64
|
|
|
9c2066 |
+buildarchtranslate: riscv64: riscv64
|
|
|
9c2066 |
+
|
|
|
9c2066 |
#############################################################
|
|
|
9c2066 |
# Architecture compatibility
|
|
|
9c2066 |
|
|
|
9c2066 |
@@ -473,6 +483,9 @@ arch_compat: sh4a: sh4
|
|
|
9c2066 |
|
|
|
9c2066 |
arch_compat: aarch64: noarch
|
|
|
9c2066 |
|
|
|
9c2066 |
+arch_compat: riscv: noarch
|
|
|
9c2066 |
+arch_compat: riscv64: noarch
|
|
|
9c2066 |
+
|
|
|
9c2066 |
os_compat: IRIX64: IRIX
|
|
|
9c2066 |
os_compat: solaris2.7: solaris2.3 solaris2.4 solaris2.5 solaris2.6
|
|
|
9c2066 |
os_compat: solaris2.6: solaris2.3 solaris2.4 solaris2.5
|
|
|
9c2066 |
@@ -506,6 +519,9 @@ buildarch_compat: ia64: noarch
|
|
|
9c2066 |
|
|
|
9c2066 |
buildarch_compat: aarch64: noarch
|
|
|
9c2066 |
|
|
|
9c2066 |
+buildarch_compat: riscv: noarch
|
|
|
9c2066 |
+buildarch_compat: riscv64: noarch
|
|
|
9c2066 |
+
|
|
|
9c2066 |
buildarch_compat: athlon: i686
|
|
|
9c2066 |
buildarch_compat: geode: i586
|
|
|
9c2066 |
buildarch_compat: pentium4: pentium3
|
|
|
9c2066 |
--
|
|
|
9c2066 |
2.7.4
|
|
|
9c2066 |
|