Add support for StrongARM host/target.
[external/binutils.git] / gdb / configure.tgt
1 # Mappings from configurations to GDB target definitions.  This is
2 # invoked from the autoconf generated configure script.
3
4 # This file sets the following shell variables:
5 #  gdb_target_cpu       generic name of CPU
6 #  gdb_target           name of GDB target definition to use
7
8 # This file may also modify configdirs.
9
10 # Map target cpu into the config cpu subdirectory name.
11 # The default is $target_cpu.
12
13 case "${target_cpu}" in
14
15 alpha*)                 gdb_target_cpu=alpha ;;
16 c[12])                  gdb_target_cpu=convex ;;
17 hppa*)                  gdb_target_cpu=pa ;;
18 i[3456]86*)             gdb_target_cpu=i386 ;;
19 m68*)                   gdb_target_cpu=m68k ;;
20 m88*)                   gdb_target_cpu=m88k ;;
21 mips*)                  gdb_target_cpu=mips ;;
22 np1)                    gdb_target_cpu=gould ;;
23 powerpc*)               gdb_target_cpu=powerpc ;;
24 pn)                     gdb_target_cpu=gould ;;
25 pyramid)                gdb_target_cpu=pyr ;;
26 sparc*)                 gdb_target_cpu=sparc ;;
27 thumb*)                 gdb_target_cpu=arm ;;
28 strongarm*)             gdb_target_cpu=arm ;;
29 v850*)                  gdb_target_cpu=v850 ;;
30 *)                      gdb_target_cpu=$target_cpu ;;
31
32 esac
33
34 # map target info into gdb names.
35
36 case "${target}" in
37
38 a29k-*-aout*)           gdb_target=a29k ;;
39 a29k-*-coff*)           gdb_target=a29k ;;
40 a29k-*-elf*)            gdb_target=a29k ;;
41 a29k-*-ebmon*)          gdb_target=a29k ;;
42 a29k-*-kern*)           gdb_target=a29k-kern ;;
43 a29k-*-none*)           gdb_target=a29k ;;
44 a29k-*-sym1*)           gdb_target=ultra3 ;;
45 a29k-*-udi*)            gdb_target=a29k-udi ;;
46 a29k-*-vxworks*)        gdb_target=vx29k ;;
47
48 alpha*-*-osf*)          gdb_target=alpha-osf1 ;;
49 alpha*-*-linux*)        gdb_target=alpha-linux ;;
50
51 arc-*-*)                gdb_target=arc ;;
52
53 arm-*-* | thumb-*-* | strongarm-*-*)    gdb_target=arm
54
55                         # rdi doesn't work for wingdb yet
56                         case $gdb_host in
57                         windows) ;;
58                         *)
59                             configdirs="$configdirs rdi-share"
60                             CONFIG_OBS="$CONFIG_OBS remote-rdi.o rdi-share/libangsd.a"
61                             ;;
62                         esac
63                         ;;
64
65 c1-*-*)                 gdb_target=convex ;;
66 c2-*-*)                 gdb_target=convex ;;
67
68 d10v-*-*)               gdb_target=d10v ;;
69 d30v-*-*)               gdb_target=d30v ;;
70
71 h8300-*-*)              gdb_target=h8300 ;;
72 h8500-*-*)              gdb_target=h8500 ;;
73
74 sh-*-*)                 gdb_target=sh ;;
75
76 fr30-*-elf*)            gdb_target=fr30 ;;
77
78 hppa*-*-bsd*)           gdb_target=hppabsd ;;
79 hppa*-*-pro*)           gdb_target=hppapro ;;
80 hppa*-*-hpux*)          gdb_target=hppahpux ;;
81 hppa*-*-hiux*)          gdb_target=hppahpux ;;
82 hppa*-*-osf*)           gdb_target=hppaosf ;;
83
84 i[3456]86-sequent-bsd*) gdb_target=symmetry ;;
85 i[3456]86-sequent-sysv4*) gdb_target=ptx4 ;;
86 i[3456]86-sequent-sysv*) gdb_target=ptx ;;
87 i[3456]86-ncr-*)        gdb_target=ncr3000 ;;
88 i[3456]86-*-aout*)      gdb_target=i386aout ;;
89 i[3456]86-*-coff*)      gdb_target=i386v ;;
90 i[3456]86-*-elf*)       gdb_target=i386v ;;
91 i[3456]86-*-aix*)       gdb_target=i386aix ;;
92 i[3456]86-*-bsd*)       gdb_target=i386bsd ;;
93 i[3456]86-*-freebsd*)   gdb_target=fbsd ;;
94 i[3456]86-*-netbsd*)    gdb_target=nbsd ;;
95 i[3456]86-*-os9k)       gdb_target=i386os9k ;;
96 i[3456]86-*-go32*)      gdb_target=i386aout ;;
97 i[3456]86-*-lynxos*)    gdb_target=i386lynx
98                 configdirs="${configdirs} gdbserver" ;;
99 i[3456]86-*-solaris*)   gdb_target=i386sol2 ;;
100 i[3456]86-*-sunos*)     gdb_target=sun386 ;;
101 i[3456]86-*-sysv4.2MP)  gdb_target=i386v42mp ;;
102 i[3456]86-*-sysv4*)     gdb_target=i386v4 ;;
103 i[3456]86-*-unixware2*) gdb_target=i386v42mp ;;
104 i[3456]86-*-unixware*)  gdb_target=i386v4 ;;
105 i[3456]86-*-sco*)       gdb_target=i386v ;;
106 i[3456]86-*-sysv*)      gdb_target=i386v ;;
107 i[3456]86-*-linux*)     gdb_target=linux
108                 configdirs="${configdirs} gdbserver" ;;
109 i[3456]86-pc-linux-gnu) gdb_target=linux
110                 configdirs="${configdirs} gdbserver" ;;
111 i[3456]86-*-isc*)       gdb_target=i386v ;;
112 i[3456]86-*-mach3*)     gdb_target=i386m3 ;;
113 i[3456]86-*-gnu*)       gdb_target=i386gnu ;;
114 i[3456]86-*-netware*)   gdb_target=i386nw
115                 configdirs="${configdirs} nlm" ;;
116 i[3456]86-*-osf1mk*)    gdb_target=i386mk ;;
117 i[3456]86-*-cygwin*)    gdb_target=cygwin  ;;
118 i960-*-bout*)           gdb_target=vxworks960 ;;
119 i960-nindy-coff*)       gdb_target=nindy960 ;;
120 i960-*-coff*)           gdb_target=mon960 ;;
121 i960-nindy-elf*)        gdb_target=nindy960 ;;
122 i960-*-elf*)            gdb_target=mon960 ;;
123
124 i960-*-nindy*)          gdb_target=nindy960 ;;
125 i960-*-vxworks*)        gdb_target=vxworks960 ;;
126
127 m32r-*-elf*)            gdb_target=m32r ;;
128
129 m68000-*-sunos3*)       gdb_target=sun2os3 ;;
130 m68000-*-sunos4*)       gdb_target=sun2os4 ;;
131
132 m68*-apollo*-bsd*)      gdb_target=apollo68b ;;
133 m68*-bull-sysv*)        gdb_target=dpx2 ;;
134 m68*-hp-bsd*)           gdb_target=hp300bsd ;;
135 m68*-hp-hpux*)          gdb_target=hp300hpux ;;
136 m68*-altos-*)           gdb_target=altos ;;
137 m68*-att-*)             gdb_target=3b1 ;;
138 m68*-cisco*-*)          gdb_target=cisco ;;
139 m68*-ericsson-*)        gdb_target=es1800 ;;
140 m68*-isi-*)             gdb_target=isi ;;
141 m68*-motorola-*)        gdb_target=delta68 ;;
142 m68*-netx-*)            gdb_target=vxworks68 ;;
143 m68*-sony-*)            gdb_target=news ;;
144 m68*-tandem-*)          gdb_target=st2000 ;;
145 m68*-rom68k-*)          gdb_target=monitor ;;
146 m68*-*bug-*)            gdb_target=monitor ;;
147 m68*-monitor-*)         gdb_target=monitor ;;
148 m68*-est-*)             gdb_target=monitor ;;
149 m68*-*-aout*)           gdb_target=monitor ;;
150 m68*-*-coff*)           gdb_target=monitor ;;
151 m68*-*-elf*)            gdb_target=monitor ;;
152 m68*-*-linux*)          gdb_target=linux
153                 configdirs="${configdirs} gdbserver" ;;
154 m68*-*-lynxos*)         gdb_target=m68klynx
155                 configdirs="${configdirs} gdbserver" ;;
156 m68*-*-netbsd*)         gdb_target=nbsd ;;
157 m68*-*-os68k*)          gdb_target=os68k ;;
158 m68*-*-sunos3*)         gdb_target=sun3os3 ;;
159 m68*-*-sunos4*)         gdb_target=sun3os4 ;;
160 m68*-*-sysv4*)          gdb_target=m68kv4 ;;
161 m68*-*-vxworks*)        gdb_target=vxworks68 ;;
162
163 m88*-harris-cxux*)      gdb_target=cxux ;;
164 m88*-motorola-sysv4*)   gdb_target=delta88v4 ;;
165 m88*-motorola-*)        gdb_target=delta88 ;;
166 m88*-*-*)               gdb_target=m88k ;;
167
168 mips64*-big-*)          gdb_target=bigmips64 ;;
169 mips*-big-*)            gdb_target=bigmips ;;
170 mips*-dec-mach3*)       gdb_target=mach3 ;;
171 mips*-dec-*)            gdb_target=decstation ;;
172 mips64*el-*-ecoff*)     gdb_target=embedl64 ;;
173 mips64*-*-ecoff*)       gdb_target=embed64 ;;
174 # start-sanitize-vr4xxx
175 #mips64*vr4xxx*el-*-elf*)gdb_target=vr4xxxel ;;
176 mips64*vr4xxx*-*-elf*)  gdb_target=vr4xxx ;;
177 # end-sanitize-vr4xxx
178 # start-sanitize-vr4320
179 mips64*vr4320*el-*-elf*)gdb_target=vr4300el ;;
180 mips64*vr4320*-*-elf*)  gdb_target=vr4320 ;;
181 # end-sanitize-vr4320
182 mips64*vr4300*el-*-elf*)        gdb_target=vr4300el ;;
183 mips64*vr4300*-*-elf*)  gdb_target=vr4300 ;;
184 mips64*vr4100*el-*-elf*)        gdb_target=vr4300el ;;
185 mips64*vr4100*-*-elf*)  gdb_target=vr4100 ;;
186 mips64*vr5000*el-*-elf*)        gdb_target=vr5000el ;;
187 mips64*vr5000*-*-elf*)  gdb_target=vr5000
188                 configdirs="${configdirs} gdbserver" ;;
189 # start-sanitize-cygnus
190 mips64*vr5400*el-*-elf*)        gdb_target=vr5000el ;;
191 mips64*vr5400*-*-elf*)  gdb_target=vr5000
192                 configdirs="${configdirs} gdbserver" ;;
193 # end-sanitize-cygnus
194 # start-sanitize-sky
195 mips64*r5900*-sky-elf*) gdb_target=txvu ;;
196 # end-sanitize-sky
197 # start-sanitize-r5900
198 mips64*r5900*-*-elf*)   gdb_target=r5900 ;;
199 # end-sanitize-r5900
200 # start-sanitize-tx19
201 mips-tx19*el-* | mips*tx19*el-*-*)
202                         gdb_target=tx19l ;;
203 mips-tx19*-* | mips*tx19*-*-*)
204                         gdb_target=tx19 ;;
205 # end-sanitize-tx19  
206 mips*tx39*el*-elf*)     gdb_target=tx39l ;;
207 mips*tx39*-elf*)        gdb_target=tx39 ;;
208 # start-sanitize-tx49
209 mips64*tx49*el-*-elf*)  gdb_target=tx49el ;;
210 mips64*tx49*-*-elf*)    gdb_target=tx49 ;;
211 # end-sanitize-tx49
212 mips64*el-*-elf*)       gdb_target=embedl64 ;;
213 mips64*-*-elf*)         gdb_target=embed64 ;;
214 mips*el-*-ecoff*)       gdb_target=embedl ;;
215 mips*-*-ecoff*)         gdb_target=embed ;;
216 mips*el-*-elf*)         gdb_target=embedl ;;
217 mips*-*-elf*)           gdb_target=embed ;;
218 mips*-little-*)         gdb_target=littlemips ;;
219 mips*-*-lnews*)         gdb_target=embedl ;;
220 mips*-sgi-irix5*)       gdb_target=irix5 ;;
221 mips*-sgi-irix6*)       gdb_target=irix5 ;;
222 mips*-sgi-*)            gdb_target=irix3 ;;
223 mips*-sony-*)           gdb_target=bigmips ;;
224 mips*-*-mach3*)         gdb_target=mipsm3 ;;
225 mips*-*-sysv4*)         gdb_target=mipsv4 ;;
226 mips*-*-sysv*)          gdb_target=bigmips ;;
227 mips*-*-riscos*)        gdb_target=bigmips ;;
228 mips*-*-vxworks*)       gdb_target=vxmips ;;
229
230 mn10200-*-*)            gdb_target=mn10200 ;;
231 mn10300-*-*)            gdb_target=mn10300 ;;
232
233 none-*-*)               gdb_target=none ;;
234
235 np1-*-*)                gdb_target=np1 ;;
236
237 ns32k-*-mach3*)         gdb_target=ns32km3 ;;
238 ns32k-*-netbsd*)        gdb_target=nbsd ;;
239 ns32k-utek-sysv*)       gdb_target=merlin ;;
240 ns32k-utek-*)           gdb_target=umax ;;
241
242 pn-*-*)                 gdb_target=pn ;;
243 powerpc-*-macos*)       gdb_target=macos ;;
244 powerpc-*-netware*)     gdb_target=ppc-nw
245                         configdirs="${configdirs} nlm" ;;
246
247 powerpc-*-aix*)         gdb_target=aix ;;
248 powerpcle-*-cygwin*)    gdb_target=cygwin ;;
249 powerpcle-*-solaris*)   gdb_target=solaris ;;
250 powerpc-*-eabi* | powerpc-*-linux* | powerpc-*-sysv* | powerpc-*-elf*)
251                         if test -f ../sim/ppc/Makefile; then
252                           gdb_target=ppc-sim
253                         else
254                           gdb_target=ppc-eabi
255                         fi ;;
256 powerpcle-*-eabi* | powerpcle-*-sysv* | powerpcle-*-elf*)
257                         if test -f ../sim/ppc/Makefile; then
258                           gdb_target=ppcle-sim
259                         else
260                           gdb_target=ppcle-eabi
261                         fi ;;
262
263 pyramid-*-*)            gdb_target=pyramid ;;
264
265 rs6000-*-lynxos*)       gdb_target=rs6000lynx ;;
266 rs6000-*-aix4*)         gdb_target=aix4 ;;
267 rs6000-*-*)             gdb_target=rs6000 ;;
268
269 sparc-*-aout*)          gdb_target=sparc-em ;;
270 sparc-*-coff*)          gdb_target=sparc-em ;;
271 sparc-*-elf*)           gdb_target=sparc-em ;;
272 sparc-*-linux*)         gdb_target=linux ;;
273 sparc-*-lynxos*)        gdb_target=sparclynx
274                 configdirs="${configdirs} gdbserver" ;;
275 sparc-*-netbsd*)        gdb_target=nbsd ;;
276 sparc-*-solaris2*)      gdb_target=sun4sol2 ;;
277 sparc-*-sunos4*)        gdb_target=sun4os4 ;;
278 sparc-*-sunos5*)        gdb_target=sun4sol2 ;;
279 sparc-*-vxworks*)       gdb_target=vxsparc ;;
280 sparc-*-*)              gdb_target=sun4os4 ;;
281 sparclet-*-*)           gdb_target=sparclet;;
282 sparclite-*-*)          gdb_target=sparclite ;;
283 sparc86x-*-*)           gdb_target=sparclite ;;
284 # It's not clear what the right solution for "v8plus" systems is yet.
285 # For now, stick with sparc-sun-solaris2 since that's what config.guess
286 # should return.  Work is still needed to get gdb to print the 64 bit
287 # regs (some of which are usable in v8plus) so sp64sol.mt hasn't been
288 # deleted though presumably it should be eventually.
289 #sparc64-*-solaris2*)   gdb_target=sp64sol2 ;;
290 sparc64-*-*)            gdb_target=sp64 ;;
291
292 tahoe-*-*)              gdb_target=tahoe ;;
293
294 # start-sanitize-tic80
295 tic80-*-*)              gdb_target=tic80
296                         configdirs="${configdirs} gdbserver" ;;
297 # end-sanitize-tic80
298
299 vax-*-*)                gdb_target=vax ;;
300
301 fr30-*-*)               gdb_target=fr30
302                         ;;
303
304 v850*-*-*)              gdb_target=v850
305                         case ${gdb_host}-${enable_gdbtk-no} in
306                         cygwin*-yes )
307                                 CONFIG_OBS="${CONFIG_OBS} v850ice.o" ;;
308                         * ) ;;
309                         esac
310                         ;;
311
312 w65-*-*)                gdb_target=w65 ;;
313
314 z8k-*-coff*)            gdb_target=z8k ;;
315
316 esac