Gentoo Archives: gentoo-commits

From: "Andreas K. Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/riscv:master commit in: profiles/default/linux/riscv/17.0/, profiles/arch/base/, profiles/arch/riscv/, ...
Date: Thu, 18 Apr 2019 20:00:33
Message-Id: 1555617615.b771f2f1859b13880911d872cbcb650e701ad614.dilfridge@gentoo
1 commit: b771f2f1859b13880911d872cbcb650e701ad614
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 18 19:59:55 2019 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 18 20:00:15 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/riscv.git/commit/?id=b771f2f1
7
8 profiles: Add first attempt at riscv profiles
9
10 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
11
12 profiles/arch.list | 1 +
13 profiles/arch/base/parent | 1 +
14 profiles/arch/riscv/eapi | 1 +
15 profiles/arch/riscv/make.defaults | 21 ++++++++++++
16 profiles/arch/riscv/parent | 1 +
17 profiles/arch/riscv/rv64gc/eapi | 1 +
18 profiles/arch/riscv/rv64gc/lp64/eapi | 1 +
19 profiles/arch/riscv/rv64gc/lp64/make.defaults | 10 ++++++
20 profiles/arch/riscv/rv64gc/lp64d/eapi | 1 +
21 profiles/arch/riscv/rv64gc/lp64d/make.defaults | 10 ++++++
22 profiles/arch/riscv/rv64gc/make.defaults | 38 ++++++++++++++++++++++
23 profiles/arch/riscv/rv64gc/parent | 1 +
24 profiles/default/linux/riscv/17.0/parent | 2 ++
25 profiles/default/linux/riscv/17.0/rv64gc/eapi | 1 +
26 profiles/default/linux/riscv/17.0/rv64gc/lp64/eapi | 1 +
27 .../default/linux/riscv/17.0/rv64gc/lp64/parent | 2 ++
28 .../default/linux/riscv/17.0/rv64gc/lp64d/eapi | 1 +
29 .../default/linux/riscv/17.0/rv64gc/lp64d/parent | 2 ++
30 profiles/default/linux/riscv/17.0/rv64gc/parent | 2 ++
31 profiles/default/linux/riscv/eapi | 1 +
32 profiles/default/linux/riscv/parent | 2 ++
33 profiles/make.defaults | 6 ++++
34 22 files changed, 107 insertions(+)
35
36 diff --git a/profiles/arch.list b/profiles/arch.list
37 new file mode 100644
38 index 0000000..d569162
39 --- /dev/null
40 +++ b/profiles/arch.list
41 @@ -0,0 +1 @@
42 +riscv
43
44 diff --git a/profiles/arch/base/parent b/profiles/arch/base/parent
45 new file mode 100644
46 index 0000000..b90fefd
47 --- /dev/null
48 +++ b/profiles/arch/base/parent
49 @@ -0,0 +1 @@
50 +gentoo:arch/base
51
52 diff --git a/profiles/arch/riscv/eapi b/profiles/arch/riscv/eapi
53 new file mode 100644
54 index 0000000..7ed6ff8
55 --- /dev/null
56 +++ b/profiles/arch/riscv/eapi
57 @@ -0,0 +1 @@
58 +5
59
60 diff --git a/profiles/arch/riscv/make.defaults b/profiles/arch/riscv/make.defaults
61 new file mode 100644
62 index 0000000..1e1fc22
63 --- /dev/null
64 +++ b/profiles/arch/riscv/make.defaults
65 @@ -0,0 +1,21 @@
66 +# Copyright 2019 Gentoo Authors
67 +# Distributed under the terms of the GNU General Public License v2
68 +
69 +# Main RISC-V profile
70 +
71 +ARCH="riscv"
72 +ACCEPT_KEYWORDS="riscv ~riscv"
73 +
74 +CHOST="riscv64-unknown-linux-gnu"
75 +
76 +# This is not a complete profile. The following stuff is
77 +# defined in subdirs:
78 +# CFLAGS
79 +# CXXFLAGS
80 +# FFLAGS
81 +# FCFLAGS
82 +# ABI
83 +# DEFAULT_ABI
84 +# MULTILIB_ABIS
85 +# CHOST_riscv
86 +# LIBDIR_riscv
87
88 diff --git a/profiles/arch/riscv/parent b/profiles/arch/riscv/parent
89 new file mode 100644
90 index 0000000..eb001c6
91 --- /dev/null
92 +++ b/profiles/arch/riscv/parent
93 @@ -0,0 +1 @@
94 +../base
95
96 diff --git a/profiles/arch/riscv/rv64gc/eapi b/profiles/arch/riscv/rv64gc/eapi
97 new file mode 100644
98 index 0000000..7ed6ff8
99 --- /dev/null
100 +++ b/profiles/arch/riscv/rv64gc/eapi
101 @@ -0,0 +1 @@
102 +5
103
104 diff --git a/profiles/arch/riscv/rv64gc/lp64/eapi b/profiles/arch/riscv/rv64gc/lp64/eapi
105 new file mode 100644
106 index 0000000..7ed6ff8
107 --- /dev/null
108 +++ b/profiles/arch/riscv/rv64gc/lp64/eapi
109 @@ -0,0 +1 @@
110 +5
111
112 diff --git a/profiles/arch/riscv/rv64gc/lp64/make.defaults b/profiles/arch/riscv/rv64gc/lp64/make.defaults
113 new file mode 100644
114 index 0000000..fe2afc5
115 --- /dev/null
116 +++ b/profiles/arch/riscv/rv64gc/lp64/make.defaults
117 @@ -0,0 +1,10 @@
118 +# Copyright 2019 Gentoo Authors
119 +# Distributed under the terms of the GNU General Public License v2
120 +
121 +# RISC-V rv64gc/lp64 no-multilib profile
122 +
123 +# We have only one ABI
124 +MULTILIB_ABIS="lp64"
125 +
126 +# We hide the useflags for the ABIs
127 +USE_EXPAND_HIDDEN="ABI_RISCV"
128
129 diff --git a/profiles/arch/riscv/rv64gc/lp64d/eapi b/profiles/arch/riscv/rv64gc/lp64d/eapi
130 new file mode 100644
131 index 0000000..7ed6ff8
132 --- /dev/null
133 +++ b/profiles/arch/riscv/rv64gc/lp64d/eapi
134 @@ -0,0 +1 @@
135 +5
136
137 diff --git a/profiles/arch/riscv/rv64gc/lp64d/make.defaults b/profiles/arch/riscv/rv64gc/lp64d/make.defaults
138 new file mode 100644
139 index 0000000..7b72704
140 --- /dev/null
141 +++ b/profiles/arch/riscv/rv64gc/lp64d/make.defaults
142 @@ -0,0 +1,10 @@
143 +# Copyright 2019 Gentoo Authors
144 +# Distributed under the terms of the GNU General Public License v2
145 +
146 +# RISC-V rv64gc/lp64d no-multilib profile
147 +
148 +# We have only one ABI
149 +MULTILIB_ABIS="lp64d"
150 +
151 +# We hide the useflags for the ABIs
152 +USE_EXPAND_HIDDEN="ABI_RISCV"
153
154 diff --git a/profiles/arch/riscv/rv64gc/make.defaults b/profiles/arch/riscv/rv64gc/make.defaults
155 new file mode 100644
156 index 0000000..43de775
157 --- /dev/null
158 +++ b/profiles/arch/riscv/rv64gc/make.defaults
159 @@ -0,0 +1,38 @@
160 +# Copyright 2019 Gentoo Authors
161 +# Distributed under the terms of the GNU General Public License v2
162 +
163 +# RISC-V profile for rv64gc multilib
164 +
165 +CFLAGS="-O2 -pipe -march=rv64gc"
166 +CXXFLAGS="${CFLAGS}"
167 +FFLAGS="${CFLAGS}"
168 +FCFLAGS="${CFLAGS}"
169 +
170 +# Multilib ABIs
171 +MULTILIB_ABIS="lp64d lp64"
172 +DEFAULT_ABI="lp64d"
173 +ABI="lp64d"
174 +
175 +# Library directories
176 +LIBDIR_lp64d="lib64/lp64d"
177 +LIBDIR_lp64="lib64/lp64"
178 +SYMLINK_LIB="no"
179 +
180 +# Flags for lp64d
181 +CFLAGS_lp64d="-mabi=lp64d"
182 +# LDFLAGS_lp64d
183 +# CHOST_lp64d
184 +
185 +# Flags for lp64
186 +CFLAGS_lp64="-mabi=lp64"
187 +# LDFLAGS_lp64
188 +# CHOST_lp64
189 +
190 +# Enable lp64d by default
191 +ABI_RISCV="lp64d"
192 +
193 +# Unhide the riscv/rv64gc-specific USE_EXPANDs
194 +USE_EXPAND_HIDDEN="-ABI_RISCV"
195 +
196 +# Implicitly enable lp64d in ebuilds without multilib support
197 +IUSE_IMPLICIT="abi_riscv_lp64d"
198
199 diff --git a/profiles/arch/riscv/rv64gc/parent b/profiles/arch/riscv/rv64gc/parent
200 new file mode 100644
201 index 0000000..f3229c5
202 --- /dev/null
203 +++ b/profiles/arch/riscv/rv64gc/parent
204 @@ -0,0 +1 @@
205 +..
206
207 diff --git a/profiles/default/linux/riscv/17.0/parent b/profiles/default/linux/riscv/17.0/parent
208 new file mode 100644
209 index 0000000..9e143e5
210 --- /dev/null
211 +++ b/profiles/default/linux/riscv/17.0/parent
212 @@ -0,0 +1,2 @@
213 +..
214 +gentoo:releases/17.0
215
216 diff --git a/profiles/default/linux/riscv/17.0/rv64gc/eapi b/profiles/default/linux/riscv/17.0/rv64gc/eapi
217 new file mode 100644
218 index 0000000..7ed6ff8
219 --- /dev/null
220 +++ b/profiles/default/linux/riscv/17.0/rv64gc/eapi
221 @@ -0,0 +1 @@
222 +5
223
224 diff --git a/profiles/default/linux/riscv/17.0/rv64gc/lp64/eapi b/profiles/default/linux/riscv/17.0/rv64gc/lp64/eapi
225 new file mode 100644
226 index 0000000..7ed6ff8
227 --- /dev/null
228 +++ b/profiles/default/linux/riscv/17.0/rv64gc/lp64/eapi
229 @@ -0,0 +1 @@
230 +5
231
232 diff --git a/profiles/default/linux/riscv/17.0/rv64gc/lp64/parent b/profiles/default/linux/riscv/17.0/rv64gc/lp64/parent
233 new file mode 100644
234 index 0000000..0273fe5
235 --- /dev/null
236 +++ b/profiles/default/linux/riscv/17.0/rv64gc/lp64/parent
237 @@ -0,0 +1,2 @@
238 +..
239 +../../../../../../arch/riscv/rv64gc/lp64
240
241 diff --git a/profiles/default/linux/riscv/17.0/rv64gc/lp64d/eapi b/profiles/default/linux/riscv/17.0/rv64gc/lp64d/eapi
242 new file mode 100644
243 index 0000000..7ed6ff8
244 --- /dev/null
245 +++ b/profiles/default/linux/riscv/17.0/rv64gc/lp64d/eapi
246 @@ -0,0 +1 @@
247 +5
248
249 diff --git a/profiles/default/linux/riscv/17.0/rv64gc/lp64d/parent b/profiles/default/linux/riscv/17.0/rv64gc/lp64d/parent
250 new file mode 100644
251 index 0000000..f497f65
252 --- /dev/null
253 +++ b/profiles/default/linux/riscv/17.0/rv64gc/lp64d/parent
254 @@ -0,0 +1,2 @@
255 +..
256 +../../../../../../arch/riscv/rv64gc/lp64d
257
258 diff --git a/profiles/default/linux/riscv/17.0/rv64gc/parent b/profiles/default/linux/riscv/17.0/rv64gc/parent
259 new file mode 100644
260 index 0000000..4bbbd0a
261 --- /dev/null
262 +++ b/profiles/default/linux/riscv/17.0/rv64gc/parent
263 @@ -0,0 +1,2 @@
264 +..
265 +../../../../../arch/riscv/rv64gc
266
267 diff --git a/profiles/default/linux/riscv/eapi b/profiles/default/linux/riscv/eapi
268 new file mode 100644
269 index 0000000..7ed6ff8
270 --- /dev/null
271 +++ b/profiles/default/linux/riscv/eapi
272 @@ -0,0 +1 @@
273 +5
274
275 diff --git a/profiles/default/linux/riscv/parent b/profiles/default/linux/riscv/parent
276 new file mode 100644
277 index 0000000..b85be8f
278 --- /dev/null
279 +++ b/profiles/default/linux/riscv/parent
280 @@ -0,0 +1,2 @@
281 +gentoo:base
282 +gentoo:default/linux
283
284 diff --git a/profiles/make.defaults b/profiles/make.defaults
285 new file mode 100644
286 index 0000000..47848b9
287 --- /dev/null
288 +++ b/profiles/make.defaults
289 @@ -0,0 +1,6 @@
290 +# Copyright 2019 Gentoo Authors
291 +# Distributed under the terms of the GNU General Public License v2
292 +
293 +# RISC-V specific variables
294 +USE_EXPAND="ABI_RISCV"
295 +USE_EXPAND_HIDDEN="ABI_RISCV"