t-rtems revision 110611
1# Multilibs for powerpc RTEMS targets.
2
3MULTILIB_OPTIONS	= \
4mcpu=403/mcpu=505/mcpu=601/mcpu=602/mcpu=603/mcpu=603e/mcpu=604/mcpu=750/mcpu=821/mcpu=860 \
5Dmpc509/Dmpc8260 \
6D_OLD_EXCEPTIONS \
7msoft-float
8
9MULTILIB_DIRNAMES	= \
10m403 m505 m601 m602 m603 m603e m604 m750 m821 m860 \
11mpc509 \
12mpc8260 \
13roe \
14nof
15
16MULTILIB_EXTRA_OPTS	= mrelocatable-lib mno-eabi mstrict-align
17
18# MULTILIB_MATCHES	= ${MULTILIB_MATCHES_FLOAT}
19MULTILIB_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
35MULTILIB_NEW_EXCEPTIONS_ONLY = \
36*mcpu=604*/*D_OLD_EXCEPTIONS* \
37*mcpu=750*/*D_OLD_EXCEPTIONS* \
38*mcpu=821*/*D_OLD_EXCEPTIONS* \
39*Dmpc8260*/*D_OLD_EXCEPTIONS* \
40*mcpu=860*/*D_OLD_EXCEPTIONS*
41
42# Soft-float only, default implies msoft-float
43# NOTE: Must match with MULTILIB_MATCHES_FLOAT and MULTILIB_MATCHES
44MULTILIB_SOFTFLOAT_ONLY = \
45mcpu=403/*msoft-float* \
46mcpu=821/*msoft-float* \
47mcpu=860/*msoft-float*
48
49# Hard-float only, take out msoft-float
50MULTILIB_HARDFLOAT_ONLY = \
51mcpu=505/*msoft-float*
52
53MULTILIB_EXCEPTIONS =
54
55# Disallow -D_OLD_EXCEPTIONS without other options
56MULTILIB_EXCEPTIONS	+= D_OLD_EXCEPTIONS*
57
58# Disallow -Dppc and -Dmpc without other options
59MULTILIB_EXCEPTIONS 	+= Dppc* Dmpc*
60
61MULTILIB_EXCEPTIONS	+= \
62${MULTILIB_NEW_EXCEPTIONS_ONLY} \
63${MULTILIB_SOFTFLOAT_ONLY} \
64${MULTILIB_HARDFLOAT_ONLY}
65
66# Special rules
67# Take out all variants we don't want
68MULTILIB_EXCEPTIONS += mcpu=403/Dmpc509*
69MULTILIB_EXCEPTIONS += mcpu=403/Dmpc8260*
70MULTILIB_EXCEPTIONS += mcpu=505/Dmpc509*
71MULTILIB_EXCEPTIONS += mcpu=505/Dmpc8260*
72MULTILIB_EXCEPTIONS += mcpu=601/Dmpc509*
73MULTILIB_EXCEPTIONS += mcpu=601/Dmpc8260*
74MULTILIB_EXCEPTIONS += mcpu=602/Dmpc509*
75MULTILIB_EXCEPTIONS += mcpu=602/Dmpc8260*
76MULTILIB_EXCEPTIONS += mcpu=603/Dmpc509*
77MULTILIB_EXCEPTIONS += mcpu=603/Dmpc8260*
78MULTILIB_EXCEPTIONS += mcpu=603e/Dmpc509*
79MULTILIB_EXCEPTIONS += mcpu=604/Dmpc509*
80MULTILIB_EXCEPTIONS += mcpu=604/Dmpc8260*
81MULTILIB_EXCEPTIONS += mcpu=750/Dmpc509*
82MULTILIB_EXCEPTIONS += mcpu=750/Dmpc8260*
83MULTILIB_EXCEPTIONS += mcpu=821/Dmpc509*
84MULTILIB_EXCEPTIONS += mcpu=821/Dmpc8260*
85MULTILIB_EXCEPTIONS += mcpu=860/Dmpc509*
86MULTILIB_EXCEPTIONS += mcpu=860/Dmpc8260*
87