Skip to content

Latest commit

 

History

History
executable file
·
1795 lines (1754 loc) · 30.8 KB

config.sub

File metadata and controls

executable file
·
1795 lines (1754 loc) · 30.8 KB
 
1
2
#! /bin/sh
# Configuration validation subroutine script.
Dec 1, 2019
Dec 1, 2019
3
# Copyright 1992-2019 Free Software Foundation, Inc.
Dec 1, 2019
Dec 1, 2019
5
timestamp='2019-01-05'
6
7
8
9
10
11
12
13
14
15
16
17
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
Dec 1, 2019
Dec 1, 2019
18
# along with this program; if not, see <https://www.gnu.org/licenses/>.
19
20
21
22
23
24
25
26
27
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that
# program. This Exception is an additional permission under section 7
# of the GNU General Public License, version 3 ("GPLv3").
Dec 1, 2019
Dec 1, 2019
28
# Please send patches to <config-patches@gnu.org>.
29
30
31
32
33
34
35
#
# Configuration subroutine to validate and canonicalize a configuration type.
# Supply the specified configuration type as an argument.
# If it is invalid, we print an error message on stderr and exit with code 1.
# Otherwise, we print the canonical config type on stdout and succeed.
# You can get the latest version of this script from:
Dec 1, 2019
Dec 1, 2019
36
# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# This file is supposed to be the same for all GNU packages
# and recognize all the CPU types, system types and aliases
# that are meaningful with *any* GNU software.
# Each package is responsible for reporting which valid configurations
# it does not support. The user should be able to distinguish
# a failure to support a valid configuration from a meaningless
# configuration.
# The goal of this file is to map all the various variations of a given
# machine specification into a single specification in the form:
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
# or in some cases, the newer four-part form:
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
# It is wrong to echo any other type of specification.
me=`echo "$0" | sed -e 's,.*/,,'`
usage="\
Dec 1, 2019
Dec 1, 2019
56
Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
57
58
59
Canonicalize a configuration name.
Dec 1, 2019
Dec 1, 2019
60
Options:
61
62
63
64
65
66
67
68
69
-h, --help print this help, then exit
-t, --time-stamp print date of last modification, then exit
-v, --version print version number, then exit
Report bugs and patches to <config-patches@gnu.org>."
version="\
GNU config.sub ($timestamp)
Dec 1, 2019
Dec 1, 2019
70
Copyright 1992-2019 Free Software Foundation, Inc.
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
help="
Try \`$me --help' for more information."
# Parse command line
while test $# -gt 0 ; do
case $1 in
--time-stamp | --time* | -t )
echo "$timestamp" ; exit ;;
--version | -v )
echo "$version" ; exit ;;
--help | --h* | -h )
echo "$usage"; exit ;;
-- ) # Stop option processing
shift; break ;;
- ) # Use stdin as input.
break ;;
-* )
Dec 1, 2019
Dec 1, 2019
92
echo "$me: invalid option $1$help" >&2
93
94
95
96
exit 1 ;;
*local*)
# First pass through any local machine types.
Dec 1, 2019
Dec 1, 2019
97
echo "$1"
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
exit ;;
* )
break ;;
esac
done
case $# in
0) echo "$me: missing argument$help" >&2
exit 1;;
1) ;;
*) echo "$me: too many arguments$help" >&2
exit 1;;
esac
Dec 1, 2019
Dec 1, 2019
113
114
115
116
117
# Split fields of configuration type
# shellcheck disable=SC2162
IFS="-" read field1 field2 field3 field4 <<EOF
$1
EOF
Dec 1, 2019
Dec 1, 2019
119
120
121
122
123
# Separate into logical components for further validation
case $1 in
*-*-*-*-*)
echo Invalid configuration \`"$1"\': more than four components >&2
exit 1
Dec 1, 2019
Dec 1, 2019
125
126
127
*-*-*-*)
basic_machine=$field1-$field2
os=$field3-$field4
Dec 1, 2019
Dec 1, 2019
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
*-*-*)
# Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
# parts
maybe_os=$field2-$field3
case $maybe_os in
nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc \
| linux-newlib* | linux-musl* | linux-uclibc* | uclinux-uclibc* \
| uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
| netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
| storm-chaos* | os2-emx* | rtmk-nova*)
basic_machine=$field1
os=$maybe_os
;;
android-linux)
basic_machine=$field1-unknown
os=linux-android
;;
*)
basic_machine=$field1-$field2
os=$field3
;;
esac
Dec 1, 2019
Dec 1, 2019
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
*-*)
# A lone config we happen to match not fitting any pattern
case $field1-$field2 in
decstation-3100)
basic_machine=mips-dec
os=
;;
*-*)
# Second component is usually, but not always the OS
case $field2 in
# Prevent following clause from handling this valid os
sun*os*)
basic_machine=$field1
os=$field2
;;
# Manufacturers
dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \
| att* | 7300* | 3300* | delta* | motorola* | sun[234]* \
| unicom* | ibm* | next | hp | isi* | apollo | altos* \
| convergent* | ncr* | news | 32* | 3600* | 3100* \
| hitachi* | c[123]* | convex* | sun | crds | omron* | dg \
| ultra | tti* | harris | dolphin | highlevel | gould \
| cbm | ns | masscomp | apple | axis | knuth | cray \
| microblaze* | sim | cisco \
| oki | wec | wrs | winbond)
basic_machine=$field1-$field2
os=
;;
*)
basic_machine=$field1
os=$field2
;;
esac
;;
esac
Dec 1, 2019
Dec 1, 2019
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
*)
# Convert single-component short-hands not valid as part of
# multi-component configurations.
case $field1 in
386bsd)
basic_machine=i386-pc
os=bsd
;;
a29khif)
basic_machine=a29k-amd
os=udi
;;
adobe68k)
basic_machine=m68010-adobe
os=scout
;;
alliant)
basic_machine=fx80-alliant
os=
;;
altos | altos3068)
basic_machine=m68k-altos
os=
;;
am29k)
basic_machine=a29k-none
os=bsd
;;
amdahl)
basic_machine=580-amdahl
os=sysv
;;
amiga)
basic_machine=m68k-unknown
os=
;;
amigaos | amigados)
basic_machine=m68k-unknown
os=amigaos
;;
amigaunix | amix)
basic_machine=m68k-unknown
os=sysv4
;;
apollo68)
basic_machine=m68k-apollo
os=sysv
;;
apollo68bsd)
basic_machine=m68k-apollo
os=bsd
;;
aros)
basic_machine=i386-pc
os=aros
;;
aux)
basic_machine=m68k-apple
os=aux
;;
balance)
basic_machine=ns32k-sequent
os=dynix
;;
blackfin)
basic_machine=bfin-unknown
os=linux
;;
cegcc)
basic_machine=arm-unknown
os=cegcc
;;
convex-c1)
basic_machine=c1-convex
os=bsd
;;
convex-c2)
basic_machine=c2-convex
os=bsd
;;
convex-c32)
basic_machine=c32-convex
os=bsd
;;
convex-c34)
basic_machine=c34-convex
os=bsd
;;
convex-c38)
basic_machine=c38-convex
os=bsd
;;
cray)
basic_machine=j90-cray
os=unicos
;;
crds | unos)
basic_machine=m68k-crds
os=
;;
da30)
basic_machine=m68k-da30
os=
;;
decstation | pmax | pmin | dec3100 | decstatn)
basic_machine=mips-dec
os=
;;
delta88)
basic_machine=m88k-motorola
os=sysv3
;;
dicos)
basic_machine=i686-pc
os=dicos
;;
djgpp)
basic_machine=i586-pc
os=msdosdjgpp
;;
ebmon29k)
basic_machine=a29k-amd
os=ebmon
;;
es1800 | OSE68k | ose68k | ose | OSE)
basic_machine=m68k-ericsson
os=ose
;;
gmicro)
basic_machine=tron-gmicro
os=sysv
;;
go32)
basic_machine=i386-pc
os=go32
;;
h8300hms)
basic_machine=h8300-hitachi
os=hms
;;
h8300xray)
basic_machine=h8300-hitachi
os=xray
;;
h8500hms)
basic_machine=h8500-hitachi
os=hms
;;
harris)
basic_machine=m88k-harris
os=sysv3
;;
hp300)
basic_machine=m68k-hp
;;
hp300bsd)
basic_machine=m68k-hp
os=bsd
;;
hp300hpux)
basic_machine=m68k-hp
os=hpux
;;
hppaosf)
basic_machine=hppa1.1-hp
os=osf
;;
hppro)
basic_machine=hppa1.1-hp
os=proelf
;;
i386mach)
basic_machine=i386-mach
os=mach
;;
vsta)
basic_machine=i386-pc
os=vsta
;;
isi68 | isi)
basic_machine=m68k-isi
os=sysv
;;
m68knommu)
basic_machine=m68k-unknown
os=linux
;;
magnum | m3230)
basic_machine=mips-mips
os=sysv
;;
merlin)
basic_machine=ns32k-utek
os=sysv
;;
mingw64)
basic_machine=x86_64-pc
os=mingw64
;;
mingw32)
basic_machine=i686-pc
os=mingw32
;;
mingw32ce)
basic_machine=arm-unknown
os=mingw32ce
;;
monitor)
basic_machine=m68k-rom68k
os=coff
;;
morphos)
basic_machine=powerpc-unknown
os=morphos
;;
moxiebox)
basic_machine=moxie-unknown
os=moxiebox
;;
msdos)
basic_machine=i386-pc
os=msdos
;;
msys)
basic_machine=i686-pc
os=msys
;;
mvs)
basic_machine=i370-ibm
os=mvs
;;
nacl)
basic_machine=le32-unknown
os=nacl
;;
ncr3000)
basic_machine=i486-ncr
os=sysv4
;;
netbsd386)
basic_machine=i386-pc
os=netbsd
;;
netwinder)
basic_machine=armv4l-rebel
os=linux
;;
news | news700 | news800 | news900)
basic_machine=m68k-sony
os=newsos
;;
news1000)
basic_machine=m68030-sony
os=newsos
;;
necv70)
basic_machine=v70-nec
os=sysv
;;
nh3000)
basic_machine=m68k-harris
os=cxux
;;
nh[45]000)
basic_machine=m88k-harris
os=cxux
;;
nindy960)
basic_machine=i960-intel
os=nindy
;;
mon960)
basic_machine=i960-intel
os=mon960
;;
nonstopux)
basic_machine=mips-compaq
os=nonstopux
;;
os400)
basic_machine=powerpc-ibm
os=os400
;;
OSE68000 | ose68000)
basic_machine=m68000-ericsson
os=ose
;;
os68k)
basic_machine=m68k-none
os=os68k
;;
paragon)
basic_machine=i860-intel
os=osf
;;
parisc)
basic_machine=hppa-unknown
os=linux
;;
pw32)
basic_machine=i586-unknown
os=pw32
;;
rdos | rdos64)
basic_machine=x86_64-pc
os=rdos
;;
rdos32)
basic_machine=i386-pc
os=rdos
;;
rom68k)
basic_machine=m68k-rom68k
os=coff
;;
sa29200)
basic_machine=a29k-amd
os=udi
;;
sei)
basic_machine=mips-sei
os=seiux
;;
sequent)
basic_machine=i386-sequent
os=
;;
sps7)
basic_machine=m68k-bull
os=sysv2
;;
st2000)
basic_machine=m68k-tandem
os=
;;
stratus)
basic_machine=i860-stratus
os=sysv4
;;
sun2)
basic_machine=m68000-sun
os=
;;
sun2os3)
basic_machine=m68000-sun
os=sunos3
;;
sun2os4)
basic_machine=m68000-sun
os=sunos4
;;
sun3)
basic_machine=m68k-sun
os=
;;
sun3os3)
basic_machine=m68k-sun
os=sunos3
;;
sun3os4)
basic_machine=m68k-sun
os=sunos4
;;
sun4)
basic_machine=sparc-sun
os=
;;
sun4os3)
basic_machine=sparc-sun
os=sunos3
;;
sun4os4)
basic_machine=sparc-sun
os=sunos4
;;
sun4sol2)
basic_machine=sparc-sun
os=solaris2
;;
sun386 | sun386i | roadrunner)
basic_machine=i386-sun
os=
;;
sv1)
basic_machine=sv1-cray
os=unicos
;;
symmetry)
basic_machine=i386-sequent
os=dynix
;;
t3e)
basic_machine=alphaev5-cray
os=unicos
;;
t90)
basic_machine=t90-cray
os=unicos
;;
toad1)
basic_machine=pdp10-xkl
os=tops20
;;
tpf)
basic_machine=s390x-ibm
os=tpf
;;
udi29k)
basic_machine=a29k-amd
os=udi
;;
ultra3)
basic_machine=a29k-nyu
os=sym1
;;
v810 | necv810)
basic_machine=v810-nec
os=none
;;
vaxv)
basic_machine=vax-dec
os=sysv
;;
vms)
basic_machine=vax-dec
os=vms
;;
vxworks960)
basic_machine=i960-wrs
os=vxworks
;;
vxworks68)
basic_machine=m68k-wrs
os=vxworks
;;
vxworks29k)
basic_machine=a29k-wrs
os=vxworks
;;
xbox)
basic_machine=i686-pc
os=mingw32
;;
ymp)
basic_machine=ymp-cray
os=unicos
;;
*)
basic_machine=$1
os=
;;
esac
640
641
642
;;
esac
Dec 1, 2019
Dec 1, 2019
643
# Decode 1-component or ad-hoc basic machines
644
case $basic_machine in
Dec 1, 2019
Dec 1, 2019
645
646
647
648
649
# Here we handle the default manufacturer of certain CPU types. It is in
# some cases the only manufacturer, in others, it is the most popular.
w89k)
cpu=hppa1.1
vendor=winbond
Dec 1, 2019
Dec 1, 2019
651
652
653
op50n)
cpu=hppa1.1
vendor=oki
Dec 1, 2019
Dec 1, 2019
655
656
657
op60c)
cpu=hppa1.1
vendor=oki
Dec 1, 2019
Dec 1, 2019
659
660
661
ibm*)
cpu=i370
vendor=ibm
Dec 1, 2019
Dec 1, 2019
663
664
665
orion105)
cpu=clipper
vendor=highlevel
Dec 1, 2019
Dec 1, 2019
667
668
669
mac | mpw | mac-mpw)
cpu=m68k
vendor=apple
Dec 1, 2019
Dec 1, 2019
671
672
673
pmac | pmac-mpw)
cpu=powerpc
vendor=apple
Dec 1, 2019
Dec 1, 2019
675
676
677
678
# Recognize the various machine names and aliases which stand
# for a CPU type and a company and sometimes even an OS.
3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
Dec 1, 2019
Dec 1, 2019
679
680
cpu=m68000
vendor=att
681
682
;;
3b*)
Dec 1, 2019
Dec 1, 2019
683
684
cpu=we32k
vendor=att
685
686
;;
bluegene*)
Dec 1, 2019
Dec 1, 2019
687
688
689
cpu=powerpc
vendor=ibm
os=cnk
690
691
;;
decsystem10* | dec10*)
Dec 1, 2019
Dec 1, 2019
692
693
694
cpu=pdp10
vendor=dec
os=tops10
695
696
;;
decsystem20* | dec20*)
Dec 1, 2019
Dec 1, 2019
697
698
699
cpu=pdp10
vendor=dec
os=tops20
700
701
702
;;
delta | 3300 | motorola-3300 | motorola-delta \
| 3300-motorola | delta-motorola)
Dec 1, 2019
Dec 1, 2019
703
704
cpu=m68k
vendor=motorola
Dec 1, 2019
Dec 1, 2019
706
707
708
709
dpx2*)
cpu=m68k
vendor=bull
os=sysv3
710
711
;;
encore | umax | mmax)
Dec 1, 2019
Dec 1, 2019
712
713
cpu=ns32k
vendor=encore
Dec 1, 2019
Dec 1, 2019
715
716
717
718
elxsi)
cpu=elxsi
vendor=elxsi
os=${os:-bsd}
719
720
;;
fx2800)
Dec 1, 2019
Dec 1, 2019
721
722
cpu=i860
vendor=alliant
723
724
;;
genix)
Dec 1, 2019
Dec 1, 2019
725
726
cpu=ns32k
vendor=ns
727
728
;;
h3050r* | hiux*)
Dec 1, 2019
Dec 1, 2019
729
730
731
cpu=hppa1.1
vendor=hitachi
os=hiuxwe2
732
733
;;
hp3k9[0-9][0-9] | hp9[0-9][0-9])
Dec 1, 2019
Dec 1, 2019
734
735
cpu=hppa1.0
vendor=hp
736
737
;;
hp9k2[0-9][0-9] | hp9k31[0-9])
Dec 1, 2019
Dec 1, 2019
738
739
cpu=m68000
vendor=hp
740
741
;;
hp9k3[2-9][0-9])
Dec 1, 2019
Dec 1, 2019
742
743
cpu=m68k
vendor=hp
744
745
;;
hp9k6[0-9][0-9] | hp6[0-9][0-9])
Dec 1, 2019
Dec 1, 2019
746
747
cpu=hppa1.0
vendor=hp
748
749
;;
hp9k7[0-79][0-9] | hp7[0-79][0-9])
Dec 1, 2019
Dec 1, 2019
750
751
cpu=hppa1.1
vendor=hp
752
753
754
;;
hp9k78[0-9] | hp78[0-9])
# FIXME: really hppa2.0-hp
Dec 1, 2019
Dec 1, 2019
755
756
cpu=hppa1.1
vendor=hp
757
758
759
;;
hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
# FIXME: really hppa2.0-hp
Dec 1, 2019
Dec 1, 2019
760
761
cpu=hppa1.1
vendor=hp
762
763
;;
hp9k8[0-9][13679] | hp8[0-9][13679])
Dec 1, 2019
Dec 1, 2019
764
765
cpu=hppa1.1
vendor=hp
766
767
;;
hp9k8[0-9][0-9] | hp8[0-9][0-9])
Dec 1, 2019
Dec 1, 2019
768
769
cpu=hppa1.0
vendor=hp
770
771
;;
i*86v32)
Dec 1, 2019
Dec 1, 2019
772
773
774
cpu=`echo "$1" | sed -e 's/86.*/86/'`
vendor=pc
os=sysv32
775
776
;;
i*86v4*)
Dec 1, 2019
Dec 1, 2019
777
778
779
cpu=`echo "$1" | sed -e 's/86.*/86/'`
vendor=pc
os=sysv4
780
781
;;
i*86v)
Dec 1, 2019
Dec 1, 2019
782
783
784
cpu=`echo "$1" | sed -e 's/86.*/86/'`
vendor=pc
os=sysv
785
786
;;
i*86sol2)
Dec 1, 2019
Dec 1, 2019
787
788
789
cpu=`echo "$1" | sed -e 's/86.*/86/'`
vendor=pc
os=solaris2
Dec 1, 2019
Dec 1, 2019
791
792
793
794
j90 | j90-cray)
cpu=j90
vendor=cray
os=${os:-unicos}
795
796
;;
iris | iris4d)
Dec 1, 2019
Dec 1, 2019
797
798
cpu=mips
vendor=sgi
799
case $os in
Dec 1, 2019
Dec 1, 2019
800
irix*)
Dec 1, 2019
Dec 1, 2019
803
os=irix4
804
805
806
807
;;
esac
;;
miniframe)
Dec 1, 2019
Dec 1, 2019
808
809
cpu=m68000
vendor=convergent
Dec 1, 2019
Dec 1, 2019
811
812
813
814
*mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
cpu=m68k
vendor=atari
os=mint
815
816
;;
news-3600 | risc-news)
Dec 1, 2019
Dec 1, 2019
817
818
819
cpu=mips
vendor=sony
os=newsos
Dec 1, 2019
Dec 1, 2019
821
822
823
next | m*-next)
cpu=m68k
vendor=next
824
case $os in
Dec 1, 2019
Dec 1, 2019
825
nextstep* )
Dec 1, 2019
Dec 1, 2019
827
828
ns2*)
os=nextstep2
Dec 1, 2019
Dec 1, 2019
831
os=nextstep3
832
833
834
835
;;
esac
;;
np1)
Dec 1, 2019
Dec 1, 2019
836
837
cpu=np1
vendor=gould
838
839
;;
op50n-* | op60c-*)
Dec 1, 2019
Dec 1, 2019
840
841
842
cpu=hppa1.1
vendor=oki
os=proelf
843
844
;;
pa-hitachi)
Dec 1, 2019
Dec 1, 2019
845
846
847
cpu=hppa1.1
vendor=hitachi
os=hiuxwe2
848
849
;;
pbd)
Dec 1, 2019
Dec 1, 2019
850
851
cpu=sparc
vendor=tti
852
853
;;
pbb)
Dec 1, 2019
Dec 1, 2019
854
855
cpu=m68k
vendor=tti
Dec 1, 2019
Dec 1, 2019
857
858
859
pc532)
cpu=ns32k
vendor=pc532
Dec 1, 2019
Dec 1, 2019
862
863
cpu=pn
vendor=gould
Dec 1, 2019
Dec 1, 2019
865
866
867
power)
cpu=power
vendor=ibm
868
869
;;
ps2)
Dec 1, 2019
Dec 1, 2019
870
871
cpu=i386
vendor=ibm
872
873
;;
rm[46]00)
Dec 1, 2019
Dec 1, 2019
874
875
cpu=mips
vendor=siemens
876
877
;;
rtpc | rtpc-*)
Dec 1, 2019
Dec 1, 2019
878
879
cpu=romp
vendor=ibm
Dec 1, 2019
Dec 1, 2019
881
882
883
884
sde)
cpu=mipsisa32
vendor=sde
os=${os:-elf}
Dec 1, 2019
Dec 1, 2019
886
887
888
889
simso-wrs)
cpu=sparclite
vendor=wrs
os=vxworks
Dec 1, 2019
Dec 1, 2019
891
892
893
tower | tower-32)
cpu=m68k
vendor=ncr
Dec 1, 2019
Dec 1, 2019
895
896
897
vpp*|vx|vx-*)
cpu=f301
vendor=fujitsu
Dec 1, 2019
Dec 1, 2019
899
900
901
w65)
cpu=w65
vendor=wdc
Dec 1, 2019
Dec 1, 2019
903
904
905
906
w89k-*)
cpu=hppa1.1
vendor=winbond
os=proelf
Dec 1, 2019
Dec 1, 2019
908
909
910
none)
cpu=none
vendor=none
Dec 1, 2019
Dec 1, 2019
912
913
914
leon|leon[3-9])
cpu=sparc
vendor=$basic_machine
Dec 1, 2019
Dec 1, 2019
916
917
918
leon-*|leon[3-9]-*)
cpu=sparc
vendor=`echo "$basic_machine" | sed 's/-.*//'`
Dec 1, 2019
Dec 1, 2019
920
921
922
923
924
925
*-*)
# shellcheck disable=SC2162
IFS="-" read cpu vendor <<EOF
$basic_machine
EOF
Dec 1, 2019
Dec 1, 2019
927
928
929
930
931
932
# We use `pc' rather than `unknown'
# because (1) that's what they normally are, and
# (2) the word "unknown" tends to confuse beginning users.
i*86 | x86_64)
cpu=$basic_machine
vendor=pc
Dec 1, 2019
Dec 1, 2019
934
935
936
937
938
# These rules are duplicated from below for sake of the special case above;
# i.e. things that normalized to x86 arches should also default to "pc"
pc98)
cpu=i386
vendor=pc
Dec 1, 2019
Dec 1, 2019
940
941
942
x64 | amd64)
cpu=x86_64
vendor=pc
Dec 1, 2019
Dec 1, 2019
944
945
946
947
# Recognize the basic CPU types without company name.
*)
cpu=$basic_machine
vendor=unknown
Dec 1, 2019
Dec 1, 2019
949
950
951
952
953
954
955
956
957
958
959
esac
unset -v basic_machine
# Decode basic machines in the full and proper CPU-Company form.
case $cpu-$vendor in
# Here we handle the default manufacturer of certain CPU types in canonical form. It is in
# some cases the only manufacturer, in others, it is the most popular.
craynv-unknown)
vendor=cray
os=${os:-unicosmp}
Dec 1, 2019
Dec 1, 2019
961
962
963
c90-unknown | c90-cray)
vendor=cray
os=${os:-unicos}
Dec 1, 2019
Dec 1, 2019
965
966
fx80-unknown)
vendor=alliant
Dec 1, 2019
Dec 1, 2019
968
969
romp-unknown)
vendor=ibm
Dec 1, 2019
Dec 1, 2019
971
972
mmix-unknown)
vendor=knuth
Dec 1, 2019
Dec 1, 2019
974
975
microblaze-unknown | microblazeel-unknown)
vendor=xilinx
Dec 1, 2019
Dec 1, 2019
977
978
rs6000-unknown)
vendor=ibm
Dec 1, 2019
Dec 1, 2019
980
981
vax-unknown)
vendor=dec
Dec 1, 2019
Dec 1, 2019
983
984
pdp11-unknown)
vendor=dec
Dec 1, 2019
Dec 1, 2019
986
987
we32k-unknown)
vendor=att
Dec 1, 2019
Dec 1, 2019
989
990
cydra-unknown)
vendor=cydrome
Dec 1, 2019
Dec 1, 2019
992
993
i370-ibm*)
vendor=ibm
Dec 1, 2019
Dec 1, 2019
995
996
orion-unknown)
vendor=highlevel
Dec 1, 2019
Dec 1, 2019
998
999
1000
xps-unknown | xps100-unknown)
cpu=xps100
vendor=honeywell