|
0
|
1 #=============================================================================== |
|
|
2 # |
|
|
3 # targets |
|
|
4 # |
|
|
5 # This file lists the supported target architectures. |
|
|
6 # |
|
|
7 #=============================================================================== |
|
|
8 #####COPYRIGHTBEGIN#### |
|
|
9 # |
|
|
10 # ------------------------------------------- |
|
|
11 # The contents of this file are subject to the Cygnus eCos Public License |
|
|
12 # Version 1.0 (the "License"); you may not use this file except in |
|
|
13 # compliance with the License. You may obtain a copy of the License at |
|
|
14 # http://sourceware.cygnus.com/ecos |
|
|
15 # |
|
|
16 # Software distributed under the License is distributed on an "AS IS" |
|
|
17 # basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the |
|
|
18 # License for the specific language governing rights and limitations under |
|
|
19 # the License. |
|
|
20 # |
|
|
21 # The Original Code is eCos - Embedded Cygnus Operating System, released |
|
|
22 # September 30, 1998. |
|
|
23 # |
|
|
24 # The Initial Developer of the Original Code is Cygnus. Portions created |
|
|
25 # by Cygnus are Copyright (C) 1998 Cygnus Solutions. All Rights Reserved. |
|
|
26 # ------------------------------------------- |
|
|
27 # |
|
|
28 #####COPYRIGHTEND#### |
|
|
29 #=============================================================================== |
|
|
30 ######DESCRIPTIONBEGIN#### |
|
|
31 # |
|
|
32 # Author(s): bartv |
|
|
33 # Contributors: bartv |
|
|
34 # Date: 1998-04-11 |
|
|
35 # |
|
|
36 # Purpose: To provide the interim build system with information |
|
|
37 # about the supported targets. |
|
|
38 # |
|
|
39 # Description: This file defines details of the supported target architectures. |
|
|
40 # Usage: |
|
|
41 # |
|
|
42 #####DESCRIPTIONEND#### |
|
|
43 #=============================================================================== |
|
|
44 # |
|
|
45 |
|
|
46 # |
|
|
47 # Format of this file: |
|
|
48 # |
|
|
49 # Each target architecture is defined by a statement of the form: |
|
|
50 # target <arch> <body> |
|
|
51 # |
|
|
52 # The name of the architecture and acts as the default alias string. |
|
|
53 # |
|
|
54 # The body can contain the following commands: |
|
|
55 # |
|
|
56 # 1) alias one or more aliases for this target. The first alias will |
|
|
57 # be used for output purposes. All aliases will be accepted |
|
|
58 # as input, and the input matching is not case-sensitive. |
|
|
59 # 2) command_prefix what goes before gcc/ld/whatever, e.g. powerpc-eabi |
|
|
60 # 3) flags compiler flags that should be used. |
|
|
61 # 4) packages the names of one or more packages that should be |
|
|
62 # loaded automatically for this target. |
|
|
63 # 5) platform definition of a specific platform for this architecture. |
|
|
64 # Each platform definition is similar to a target definition, |
|
|
65 # consisting of a name and a body. The name can be used in a |
|
|
66 # --platform argument to pkgconf. The body can contain the |
|
|
67 # following commands: |
|
|
68 # |
|
|
69 # 5a) alias an alias for this platform, used for output. |
|
|
70 # 5b) packages the names of one or more packages that should be loaded |
|
|
71 # automatically for this platform. |
|
|
72 # 5c) cflags replacement compiler flags needed on this platform |
|
|
73 # 5d) startup a list of the legal start-ups, typically either just ram |
|
|
74 # or both ram and rom. This corresponds to the --startup |
|
|
75 # argument to pkgconf. |
|
|
76 # |
|
|
77 |
|
|
78 target mn10300 { |
|
|
79 alias { MN10300 mn10300-elf am30 am30-elf am32 am32-elf } |
|
|
80 command_prefix mn10300-elf |
|
|
81 packages CYGPKG_HAL_MN10300 |
|
|
82 |
|
|
83 cflags { |
|
|
84 ERRFLAGS "-Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef" |
|
|
85 CXXERRFLAGS "-Woverloaded-virtual" |
|
|
86 DBGFLAGS "-g -O2" |
|
|
87 LANGFLAGS "-ffunction-sections -fdata-sections" |
|
|
88 CXXLANGFLAGS "-fno-rtti -fno-exceptions -fvtable-gc -finit-priority" |
|
|
89 LDLANGFLAGS "-Wl,--gc-sections -Wl,-static" |
|
|
90 } |
|
|
91 |
|
|
92 platform stdeval1 { |
|
|
93 alias { "Evaluation board" } |
|
|
94 startup { ram rom } |
|
|
95 packages { |
|
|
96 CYGPKG_HAL_MN10300_STDEVAL1 |
|
|
97 CYGPKG_DEVICES_GDB |
|
|
98 CYGPKG_DEVICES_SERIAL_RS232_COMMON |
|
|
99 CYGPKG_DEVICES_SERIAL_RS232_MN10300 |
|
|
100 CYGPKG_DEVICES_WALLCLOCK |
|
|
101 CYGPKG_DEVICES_WATCHDOG |
|
|
102 } |
|
|
103 |
|
|
104 } |
|
|
105 platform sim { |
|
|
106 alias { "Simulator" } |
|
|
107 startup { ram } |
|
|
108 packages { |
|
|
109 CYGPKG_HAL_MN10300_SIM |
|
|
110 CYGPKG_DEVICES_WALLCLOCK |
|
|
111 CYGPKG_DEVICES_WATCHDOG |
|
|
112 } |
|
|
113 } |
|
|
114 } |
|
|
115 |
|
|
116 |
|
|
117 target tx39 { |
|
|
118 alias { TX39 mips-tx39 mips-tx39-elf } |
|
|
119 command_prefix mips-tx39-elf |
|
|
120 packages CYGPKG_HAL_TX39 |
|
|
121 |
|
|
122 cflags { |
|
|
123 ERRFLAGS "-Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef" |
|
|
124 CXXERRFLAGS "-Woverloaded-virtual" |
|
|
125 LANGFLAGS "-ffunction-sections -fdata-sections" |
|
|
126 DBGFLAGS "-g -O2" |
|
|
127 CXXLANGFLAGS "-fno-rtti -fno-exceptions -fvtable-gc -finit-priority" |
|
|
128 LDLANGFLAGS "-Wl,--gc-sections -Wl,-static" |
|
|
129 } |
|
|
130 |
|
|
131 platform jmr3904 { |
|
|
132 alias { "JMR-TX3904 evaluation board" jmr3904 } |
|
|
133 hal hal/mips/jmr3904 |
|
|
134 startup { ram rom } |
|
|
135 packages { |
|
|
136 CYGPKG_HAL_TX39_JMR3904 |
|
|
137 CYGPKG_DEVICES_SERIAL_RS232_COMMON |
|
|
138 CYGPKG_DEVICES_SERIAL_RS232_TX39 |
|
|
139 CYGPKG_DEVICES_WALLCLOCK |
|
|
140 CYGPKG_DEVICES_WATCHDOG |
|
|
141 } |
|
|
142 } |
|
|
143 platform sim { |
|
|
144 alias { "Simulator" } |
|
|
145 startup { ram } |
|
|
146 packages { |
|
|
147 CYGPKG_HAL_TX39_SIM |
|
|
148 CYGPKG_DEVICES_WALLCLOCK |
|
|
149 CYGPKG_DEVICES_WATCHDOG |
|
|
150 } |
|
|
151 } |
|
|
152 } |
|
|
153 |
|
|
154 target powerpc { |
|
|
155 alias { PowerPC powerpc-eabi } |
|
|
156 command_prefix powerpc-eabi |
|
|
157 packages { CYGPKG_HAL_POWERPC } |
|
|
158 |
|
|
159 cflags { |
|
|
160 ARCHFLAGS "-mcpu=860 -D_SOFT_FLOAT" |
|
|
161 ERRFLAGS "-Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef" |
|
|
162 CXXERRFLAGS "-Woverloaded-virtual" |
|
|
163 LANGFLAGS "-ffunction-sections -fdata-sections" |
|
|
164 DBGFLAGS "-g -O2" |
|
|
165 CXXLANGFLAGS "-fno-rtti -fno-exceptions -fvtable-gc -finit-priority" |
|
|
166 LDLANGFLAGS "-Wl,--gc-sections -Wl,-static" |
|
|
167 } |
|
|
168 hal hal/powerpc/arch |
|
|
169 |
|
|
170 platform cogent { |
|
|
171 alias { "Cogent board" } |
|
|
172 startup { ram rom } |
|
|
173 packages { |
|
|
174 CYGPKG_HAL_POWERPC_COGENT |
|
|
175 CYGPKG_DEVICES_WALLCLOCK |
|
|
176 CYGPKG_DEVICES_WATCHDOG |
|
|
177 } |
|
|
178 } |
|
|
179 platform sim { |
|
|
180 alias { "Simulator" } |
|
|
181 startup { ram } |
|
|
182 packages { |
|
|
183 CYGPKG_HAL_POWERPC_SIM |
|
|
184 CYGPKG_DEVICES_WALLCLOCK |
|
|
185 CYGPKG_DEVICES_WATCHDOG |
|
|
186 } |
|
|
187 } |
|
|
188 } |
|
|
189 |