Remove *.la files after gcc build.
[fedora-riscv.git] / 0001-RISCV-64-bit-riscv64-support.patch
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.
5
6 Based on Mark Salter's aarch64 support patch (commit 8e1ca16c58).
7
8 Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
9 ---
10  installplatform |  6 ++++++
11  rpmrc.in        | 16 ++++++++++++++++
12  2 files changed, 22 insertions(+)
13
14 diff --git a/installplatform b/installplatform
15 index ebade42..12339fc 100755
16 --- a/installplatform
17 +++ b/installplatform
18 @@ -174,6 +174,12 @@ for ARCH in noarch `grep ^arch_canon $RPMRC | cut -d: -f2`; do
19         CANONARCH=m68k
20         CANONCOLOR=0
21         ;;
22 +    riscv64)
23 +       ISANAME=riscv
24 +       ISABITS=64
25 +       CANONARCH=riscv64
26 +       CANONCOLOR=3
27 +       ;;
28      noarch)
29         CANONARCH=noarch
30         CANONCOLOR=0
31 diff --git a/rpmrc.in b/rpmrc.in
32 index e888b0f..abc08fc 100644
33 --- a/rpmrc.in
34 +++ b/rpmrc.in
35 @@ -99,6 +99,8 @@ optflags: sh4a -O2 -g -mieee
36  
37  optflags: aarch64 -O2 -g
38  
39 +optflags: riscv64 -O2 -g
40 +
41  #############################################################
42  # Architecture colors
43  
44 @@ -147,6 +149,8 @@ archcolor: sh4 1
45  
46  archcolor: aarch64 2
47  
48 +archcolor: riscv64 2
49 +
50  #############################################################
51  # Canonical arch names and numbers
52  
53 @@ -243,6 +247,9 @@ arch_canon: mipsr6el: mipsr6el      20
54  arch_canon:    mips64r6: mips64r6      21
55  arch_canon:    mips64r6el: mips64r6el  21
56  
57 +arch_canon:    riscv: riscv64  22
58 +arch_canon:    riscv64: riscv64        22
59 +
60  #############################################################
61  # Canonical OS names and numbers
62  
63 @@ -368,6 +375,9 @@ buildarchtranslate: sh4a: sh4
64  
65  buildarchtranslate: aarch64: aarch64
66  
67 +buildarchtranslate: riscv: riscv64
68 +buildarchtranslate: riscv64: riscv64
69 +
70  #############################################################
71  # Architecture compatibility
72  
73 @@ -473,6 +483,9 @@ arch_compat: sh4a: sh4
74  
75  arch_compat: aarch64: noarch
76  
77 +arch_compat: riscv: noarch
78 +arch_compat: riscv64: noarch
79 +
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
84  
85  buildarch_compat: aarch64: noarch
86  
87 +buildarch_compat: riscv: noarch
88 +buildarch_compat: riscv64: noarch
89 +
90  buildarch_compat: athlon: i686
91  buildarch_compat: geode: i586
92  buildarch_compat: pentium4: pentium3
93 -- 
94 2.7.4
95