Skip to content

Commit

Permalink
RISCV 64-bit (riscv64) support.
Browse files Browse the repository at this point in the history
Based on Mark Salter's aarch64 support patch (commit 8e1ca16).

Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
  • Loading branch information
rwmjones committed Aug 22, 2016
1 parent 83e4d44 commit d9d47e0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions installplatform
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ for ARCH in noarch `grep ^arch_canon $RPMRC | cut -d: -f2`; do
CANONARCH=m68k
CANONCOLOR=0
;;
riscv64)
ISANAME=riscv
ISABITS=64
CANONARCH=riscv64
CANONCOLOR=3
;;
noarch)
CANONARCH=noarch
CANONCOLOR=0
Expand Down
16 changes: 16 additions & 0 deletions rpmrc.in
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ optflags: sh4a -O2 -g -mieee

optflags: aarch64 -O2 -g

optflags: riscv64 -O2 -g

#############################################################
# Architecture colors

Expand Down Expand Up @@ -147,6 +149,8 @@ archcolor: sh4 1

archcolor: aarch64 2

archcolor: riscv64 2

#############################################################
# Canonical arch names and numbers

Expand Down Expand Up @@ -243,6 +247,9 @@ arch_canon: mipsr6el: mipsr6el 20
arch_canon: mips64r6: mips64r6 21
arch_canon: mips64r6el: mips64r6el 21

arch_canon: riscv: riscv64 22
arch_canon: riscv64: riscv64 22

#############################################################
# Canonical OS names and numbers

Expand Down Expand Up @@ -368,6 +375,9 @@ buildarchtranslate: sh4a: sh4

buildarchtranslate: aarch64: aarch64

buildarchtranslate: riscv: riscv64
buildarchtranslate: riscv64: riscv64

#############################################################
# Architecture compatibility

Expand Down Expand Up @@ -473,6 +483,9 @@ arch_compat: sh4a: sh4

arch_compat: aarch64: noarch

arch_compat: riscv: noarch
arch_compat: riscv64: noarch

os_compat: IRIX64: IRIX
os_compat: solaris2.7: solaris2.3 solaris2.4 solaris2.5 solaris2.6
os_compat: solaris2.6: solaris2.3 solaris2.4 solaris2.5
Expand Down Expand Up @@ -506,6 +519,9 @@ buildarch_compat: ia64: noarch

buildarch_compat: aarch64: noarch

buildarch_compat: riscv: noarch
buildarch_compat: riscv64: noarch

buildarch_compat: athlon: i686
buildarch_compat: geode: i586
buildarch_compat: pentium4: pentium3
Expand Down

0 comments on commit d9d47e0

Please sign in to comment.