1 |
commit: c0dc5c35d746f798ca1835a77ec0b396803cd723 |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 3 10:10:23 2020 +0000 |
4 |
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 3 10:10:23 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/riscv.git/commit/?id=c0dc5c35 |
7 |
|
8 |
profiles: Add rv32 abis to multilib profile |
9 |
|
10 |
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org> |
11 |
|
12 |
profiles/arch/riscv/rv64gc/make.defaults | 17 ++++++++++++++++- |
13 |
1 file changed, 16 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/profiles/arch/riscv/rv64gc/make.defaults b/profiles/arch/riscv/rv64gc/make.defaults |
16 |
index 46206e2..efa94c7 100644 |
17 |
--- a/profiles/arch/riscv/rv64gc/make.defaults |
18 |
+++ b/profiles/arch/riscv/rv64gc/make.defaults |
19 |
@@ -2,6 +2,9 @@ |
20 |
# Distributed under the terms of the GNU General Public License v2 |
21 |
|
22 |
# RISC-V profile for rv64gc multilib |
23 |
+# |
24 |
+# This immediate profile is ONLY useful for internal purposes; it can generate |
25 |
+# stages just fine, but the only "hardware" that can run them is qemu-user ... |
26 |
|
27 |
CFLAGS="-O2 -pipe" |
28 |
CXXFLAGS="${CFLAGS}" |
29 |
@@ -9,13 +12,15 @@ FFLAGS="${CFLAGS}" |
30 |
FCFLAGS="${CFLAGS}" |
31 |
|
32 |
# Multilib ABIs |
33 |
-MULTILIB_ABIS="lp64d lp64" |
34 |
+MULTILIB_ABIS="lp64d lp64 ilp32d ilp32" |
35 |
DEFAULT_ABI="lp64d" |
36 |
ABI="lp64d" |
37 |
|
38 |
# Library directories |
39 |
LIBDIR_lp64d="lib64/lp64d" |
40 |
LIBDIR_lp64="lib64/lp64" |
41 |
+LIBDIR_ilp32d="lib32/ilp32d" |
42 |
+LIBDIR_ilp32="lib32/ilp32" |
43 |
SYMLINK_LIB="no" |
44 |
|
45 |
# Flags for lp64d |
46 |
@@ -28,6 +33,16 @@ CFLAGS_lp64="-mabi=lp64" |
47 |
LDFLAGS_lp64="-m elf64lriscv_lp64" |
48 |
CHOST_lp64="riscv64-unknown-linux-gnu" |
49 |
|
50 |
+# Flags for ilp32d |
51 |
+CFLAGS_ilp32d="-mabi=ilp32d -march=rv32imafdc" |
52 |
+LDFLAGS_ilp32d="-m elf32lriscv" |
53 |
+CHOST_ilp32d="riscv32-unknown-linux-gnu" |
54 |
+ |
55 |
+# Flags for ilp32 |
56 |
+CFLAGS_ilp32="-mabi=ilp32 -march=rv32imac" |
57 |
+LDFLAGS_ilp32="-m elf32lriscv_ilp32" |
58 |
+CHOST_ilp32="riscv32-unknown-linux-gnu" |
59 |
+ |
60 |
# Enable lp64d by default |
61 |
ABI_RISCV="lp64d" |