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/arch/riscv/rv32imac/
Date: Sat, 05 Sep 2020 15:21:48
Message-Id: 1599319275.2be6302e962634986ea593d71ac7ca1b6e6ba6a4.dilfridge@gentoo
1 commit: 2be6302e962634986ea593d71ac7ca1b6e6ba6a4
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 5 14:50:07 2020 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 5 15:21:15 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/riscv.git/commit/?id=2be6302e
7
8 Add intermediate rv32imac profile
9
10 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
11
12 profiles/arch/riscv/rv32imac/eapi | 1 +
13 profiles/arch/riscv/rv32imac/make.defaults | 23 +++++++++++++++++++++++
14 profiles/arch/riscv/rv32imac/parent | 2 ++
15 profiles/arch/riscv/rv32imac/use.force | 5 +++++
16 profiles/arch/riscv/rv32imac/use.mask | 6 ++++++
17 5 files changed, 37 insertions(+)
18
19 diff --git a/profiles/arch/riscv/rv32imac/eapi b/profiles/arch/riscv/rv32imac/eapi
20 new file mode 100644
21 index 0000000..7ed6ff8
22 --- /dev/null
23 +++ b/profiles/arch/riscv/rv32imac/eapi
24 @@ -0,0 +1 @@
25 +5
26
27 diff --git a/profiles/arch/riscv/rv32imac/make.defaults b/profiles/arch/riscv/rv32imac/make.defaults
28 new file mode 100644
29 index 0000000..57c09ed
30 --- /dev/null
31 +++ b/profiles/arch/riscv/rv32imac/make.defaults
32 @@ -0,0 +1,23 @@
33 +# Copyright 2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +# RISC-V profile for rv32imac multilib
37 +#
38 +# This immediate profile is ONLY useful for internal purposes. It can NOT
39 +# generate stages or a working system due to limitations in gcc.
40 +
41 +CHOST="riscv32-unknown-linux-gnu"
42 +
43 +# Multilib ABIs
44 +MULTILIB_ABIS="ilp32d ilp32"
45 +DEFAULT_ABI="ilp32d"
46 +ABI="ilp32d"
47 +
48 +# Enable lp64d by default
49 +ABI_RISCV="ilp32d"
50 +
51 +# Unhide the riscv/rv64gc-specific USE_EXPANDs
52 +USE_EXPAND_HIDDEN="-ABI_RISCV"
53 +
54 +# Implicitly enable lp64d in ebuilds without multilib support
55 +IUSE_IMPLICIT="abi_riscv_ilp32d"
56
57 diff --git a/profiles/arch/riscv/rv32imac/parent b/profiles/arch/riscv/rv32imac/parent
58 new file mode 100644
59 index 0000000..c87ae0e
60 --- /dev/null
61 +++ b/profiles/arch/riscv/rv32imac/parent
62 @@ -0,0 +1,2 @@
63 +..
64 +gentoo:features/multilib
65
66 diff --git a/profiles/arch/riscv/rv32imac/use.force b/profiles/arch/riscv/rv32imac/use.force
67 new file mode 100644
68 index 0000000..069813e
69 --- /dev/null
70 +++ b/profiles/arch/riscv/rv32imac/use.force
71 @@ -0,0 +1,5 @@
72 +# Copyright 2019 Gentoo Authors
73 +# Distributed under the terms of the GNU General Public License v2
74 +
75 +# Force the flag corresponding to the default ABI.
76 +abi_riscv_ilp32d
77
78 diff --git a/profiles/arch/riscv/rv32imac/use.mask b/profiles/arch/riscv/rv32imac/use.mask
79 new file mode 100644
80 index 0000000..d57df4d
81 --- /dev/null
82 +++ b/profiles/arch/riscv/rv32imac/use.mask
83 @@ -0,0 +1,6 @@
84 +# Copyright 2019 Gentoo Authors
85 +# Distributed under the terms of the GNU General Public License v2
86 +
87 +# Unmask the multilib flags for this arch.
88 +-abi_riscv_ilp32d
89 +-abi_riscv_ilp32