Skip to content

Commit 0ef47a3

Browse files
riscv: Add multilib list
1 parent 03ed0b6 commit 0ef47a3

File tree

2 files changed

+64
-2
lines changed

2 files changed

+64
-2
lines changed

crosstool.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ do_gcc() {
185185
--enable-languages=c,c++ \
186186
--enable-multilib \
187187
--enable-soft-float \
188-
$TARGET_OPTIONS \
188+
"$TARGET_OPTIONS" \
189189
|| error_exit "Configuration gcc failed"
190190
fi
191191
if ! make -q all-gcc all-target-libgcc; then

riscv.in

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,64 @@
1+
GCC_MULTILIB_LIST=${GCC_MULTILIB_LIST:-"\
2+
--cmodel=medany; \
3+
\
4+
rv32e-ilp32e--; \
5+
rv32ea-ilp32e--; \
6+
rv32eac-ilp32e--; \
7+
rv32ec-ilp32e--; \
8+
rv32em-ilp32e--; \
9+
rv32ema-ilp32e--; \
10+
rv32emac-ilp32e--; \
11+
rv32emc-ilp32e--; \
12+
\
13+
rv32i-ilp32--; \
14+
rv32ia-ilp32--; \
15+
rv32iac-ilp32--; \
16+
rv32iaf-ilp32f--; \
17+
rv32iafc-ilp32f--; \
18+
rv32iafd-ilp32d--; \
19+
rv32iafdc-ilp32d--; \
20+
rv32ic-ilp32--; \
21+
rv32if-ilp32f--; \
22+
rv32ifc-ilp32f--; \
23+
rv32ifd-ilp32d--; \
24+
rv32ifdc-ilp32d--; \
25+
rv32im-ilp32--; \
26+
rv32ima-ilp32--; \
27+
rv32imaf-ilp32f--; \
28+
rv32imafc-ilp32f--; \
29+
rv32imafd-ilp32d--; \
30+
rv32imafdc-ilp32d--; \
31+
rv32imc-ilp32--; \
32+
rv32imf-ilp32f--; \
33+
rv32imfc-ilp32f--; \
34+
rv32imfd-ilp32d--; \
35+
rv32imfdc-ilp32d--; \
36+
\
37+
rv64i-lp64--; \
38+
rv64ia-lp64--; \
39+
rv64iac-lp64--; \
40+
rv64iaf-lp64f--; \
41+
rv64iafc-lp64f--; \
42+
rv64iafd-lp64d--; \
43+
rv64iafdc-lp64d--; \
44+
rv64ic-lp64--; \
45+
rv64if-lp64f--; \
46+
rv64ifc-lp64f--; \
47+
rv64ifd-lp64d--; \
48+
rv64ifdc-lp64d--; \
49+
rv64im-lp64--; \
50+
rv64ima-lp64--; \
51+
rv64imac-lp64--; \
52+
rv64imaf-lp64f--; \
53+
rv64imafc-lp64f--; \
54+
rv64imafd-lp64d--; \
55+
rv64imafdc-lp64d--; \
56+
rv64imc-lp64--; \
57+
rv64imf-lp64f--; \
58+
rv64imfc-lp64f--; \
59+
rv64imfd-lp64d--; \
60+
rv64imfdc-lp64d-- \
61+
"}
62+
163
TARGET=riscv64-unknown-elf
2-
TARGET_OPTIONS=
64+
TARGET_OPTIONS=--with-multilib-generator="$GCC_MULTILIB_LIST"

0 commit comments

Comments
 (0)