]>
Commit | Line | Data |
---|---|---|
c589970a JS |
1 | # Multilibs for powerpc RTEMS targets. |
2 | ||
3 | MULTILIB_OPTIONS = \ | |
4 | mcpu=403/mcpu=505/mcpu=601/mcpu=602/mcpu=603/mcpu=603e/mcpu=604/mcpu=750/mcpu=821/mcpu=860 \ | |
5 | Dmpc509/Dmpc8260 \ | |
6 | D_OLD_EXCEPTIONS \ | |
7 | msoft-float | |
8 | ||
9 | MULTILIB_DIRNAMES = \ | |
10 | m403 m505 m601 m602 m603 m603e m604 m750 m821 m860 \ | |
11 | mpc509 \ | |
12 | mpc8260 \ | |
13 | roe \ | |
14 | nof | |
15 | ||
16 | MULTILIB_EXTRA_OPTS = mrelocatable-lib mno-eabi mstrict-align | |
17 | ||
18 | # MULTILIB_MATCHES = ${MULTILIB_MATCHES_FLOAT} | |
19 | MULTILIB_MATCHES = ${MULTILIB_MATCHES_ENDIAN} \ | |
20 | ${MULTILIB_MATCHES_SYSV} \ | |
21 | mcpu?505/Dmpc505=mcpu?505/Dmpc509 | |
22 | ||
23 | # | |
24 | # RTEMS old/new-exceptions handling | |
25 | # | |
26 | # old-exception processing is depredicated, therefore | |
27 | # | |
28 | # * Cpu-variants supporting new exception processing are build | |
29 | # with new exception processing only | |
30 | # * Cpu-variants not having been ported to new exception processing are | |
31 | # build with old and new exception processing | |
32 | # | |
33 | ||
34 | # Cpu-variants supporting new exception processing only | |
35 | MULTILIB_NEW_EXCEPTIONS_ONLY = \ | |
0e03665c | 36 | *mcpu=505*/*D_OLD_EXCEPTIONS* \ |
c589970a JS |
37 | *mcpu=604*/*D_OLD_EXCEPTIONS* \ |
38 | *mcpu=750*/*D_OLD_EXCEPTIONS* \ | |
39 | *mcpu=821*/*D_OLD_EXCEPTIONS* \ | |
40 | *Dmpc8260*/*D_OLD_EXCEPTIONS* \ | |
41 | *mcpu=860*/*D_OLD_EXCEPTIONS* | |
42 | ||
43 | # Soft-float only, default implies msoft-float | |
44 | # NOTE: Must match with MULTILIB_MATCHES_FLOAT and MULTILIB_MATCHES | |
45 | MULTILIB_SOFTFLOAT_ONLY = \ | |
46 | mcpu=403/*msoft-float* \ | |
47 | mcpu=821/*msoft-float* \ | |
48 | mcpu=860/*msoft-float* | |
49 | ||
50 | # Hard-float only, take out msoft-float | |
51 | MULTILIB_HARDFLOAT_ONLY = \ | |
52 | mcpu=505/*msoft-float* | |
53 | ||
54 | MULTILIB_EXCEPTIONS = | |
55 | ||
56 | # Disallow -D_OLD_EXCEPTIONS without other options | |
57 | MULTILIB_EXCEPTIONS += D_OLD_EXCEPTIONS* | |
58 | ||
59 | # Disallow -Dppc and -Dmpc without other options | |
60 | MULTILIB_EXCEPTIONS += Dppc* Dmpc* | |
61 | ||
62 | MULTILIB_EXCEPTIONS += \ | |
63 | ${MULTILIB_NEW_EXCEPTIONS_ONLY} \ | |
64 | ${MULTILIB_SOFTFLOAT_ONLY} \ | |
65 | ${MULTILIB_HARDFLOAT_ONLY} | |
66 | ||
67 | # Special rules | |
68 | # Take out all variants we don't want | |
69 | MULTILIB_EXCEPTIONS += mcpu=403/Dmpc509* | |
70 | MULTILIB_EXCEPTIONS += mcpu=403/Dmpc8260* | |
71 | MULTILIB_EXCEPTIONS += mcpu=505/Dmpc509* | |
72 | MULTILIB_EXCEPTIONS += mcpu=505/Dmpc8260* | |
73 | MULTILIB_EXCEPTIONS += mcpu=601/Dmpc509* | |
74 | MULTILIB_EXCEPTIONS += mcpu=601/Dmpc8260* | |
75 | MULTILIB_EXCEPTIONS += mcpu=602/Dmpc509* | |
76 | MULTILIB_EXCEPTIONS += mcpu=602/Dmpc8260* | |
77 | MULTILIB_EXCEPTIONS += mcpu=603/Dmpc509* | |
78 | MULTILIB_EXCEPTIONS += mcpu=603/Dmpc8260* | |
79 | MULTILIB_EXCEPTIONS += mcpu=603e/Dmpc509* | |
80 | MULTILIB_EXCEPTIONS += mcpu=604/Dmpc509* | |
81 | MULTILIB_EXCEPTIONS += mcpu=604/Dmpc8260* | |
82 | MULTILIB_EXCEPTIONS += mcpu=750/Dmpc509* | |
83 | MULTILIB_EXCEPTIONS += mcpu=750/Dmpc8260* | |
84 | MULTILIB_EXCEPTIONS += mcpu=821/Dmpc509* | |
85 | MULTILIB_EXCEPTIONS += mcpu=821/Dmpc8260* | |
86 | MULTILIB_EXCEPTIONS += mcpu=860/Dmpc509* | |
87 | MULTILIB_EXCEPTIONS += mcpu=860/Dmpc8260* |