Lines Matching +full:cpu +full:- +full:1
3 # Copyright 1992-2020 Free Software Foundation, Inc.
5 timestamp='2020-08-17'
28 # Please send patches to <config-patches@gnu.org>.
32 # If it is invalid, we print an error message on stderr and exit with code 1.
39 # and recognize all the CPU types, system types and aliases
48 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
49 # or in some cases, the newer four-part form:
50 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
53 me=`echo "$0" | sed -e 's,.*/,,'`
56 Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
61 -h, --help print this help, then exit
62 -t, --time-stamp print date of last modification, then exit
63 -v, --version print version number, then exit
65 Report bugs and patches to <config-patches@gnu.org>."
70 Copyright 1992-2020 Free Software Foundation, Inc.
76 Try \`$me --help' for more information."
79 while test $# -gt 0 ; do
80 case $1 in
81 --time-stamp | --time* | -t )
83 --version | -v )
85 --help | --h* | -h )
87 -- ) # Stop option processing
89 - ) # Use stdin as input.
91 -* )
92 echo "$me: invalid option $1$help" >&2
93 exit 1 ;;
97 echo "$1"
107 exit 1;;
108 1) ;;
110 exit 1;;
115 IFS="-" read field1 field2 field3 field4 <<EOF
116 $1
120 case $1 in
121 *-*-*-*-*)
122 echo Invalid configuration \`"$1"\': more than four components >&2
123 exit 1
125 *-*-*-*)
126 basic_machine=$field1-$field2
127 basic_os=$field3-$field4
129 *-*-*)
130 # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
132 maybe_os=$field2-$field3
134 nto-qnx* | linux-* | uclinux-uclibc* \
135 | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
136 | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
137 | storm-chaos* | os2-emx* | rtmk-nova*)
141 android-linux)
142 basic_machine=$field1-unknown
143 basic_os=linux-android
146 basic_machine=$field1-$field2
151 *-*)
153 case $field1-$field2 in
154 decstation-3100)
155 basic_machine=mips-dec
158 *-*)
176 basic_machine=$field1-$field2
188 # Convert single-component short-hands not valid as part of
189 # multi-component configurations.
192 basic_machine=i386-pc
196 basic_machine=a29k-amd
200 basic_machine=m68010-adobe
204 basic_machine=fx80-alliant
208 basic_machine=m68k-altos
212 basic_machine=a29k-none
216 basic_machine=580-amdahl
220 basic_machine=m68k-unknown
224 basic_machine=m68k-unknown
228 basic_machine=m68k-unknown
232 basic_machine=m68k-apollo
236 basic_machine=m68k-apollo
240 basic_machine=i386-pc
244 basic_machine=m68k-apple
248 basic_machine=ns32k-sequent
252 basic_machine=bfin-unknown
256 basic_machine=arm-unknown
259 convex-c1)
260 basic_machine=c1-convex
263 convex-c2)
264 basic_machine=c2-convex
267 convex-c32)
268 basic_machine=c32-convex
271 convex-c34)
272 basic_machine=c34-convex
275 convex-c38)
276 basic_machine=c38-convex
280 basic_machine=j90-cray
284 basic_machine=m68k-crds
288 basic_machine=m68k-da30
292 basic_machine=mips-dec
296 basic_machine=m88k-motorola
300 basic_machine=i686-pc
304 basic_machine=i586-pc
308 basic_machine=a29k-amd
312 basic_machine=m68k-ericsson
316 basic_machine=tron-gmicro
320 basic_machine=i386-pc
324 basic_machine=h8300-hitachi
328 basic_machine=h8300-hitachi
332 basic_machine=h8500-hitachi
336 basic_machine=m88k-harris
340 basic_machine=m68k-hp
344 basic_machine=m68k-hp
348 basic_machine=hppa1.1-hp
352 basic_machine=hppa1.1-hp
356 basic_machine=i386-mach
360 basic_machine=m68k-isi
364 basic_machine=m68k-unknown
368 basic_machine=mips-mips
372 basic_machine=ns32k-utek
376 basic_machine=x86_64-pc
380 basic_machine=i686-pc
384 basic_machine=arm-unknown
388 basic_machine=m68k-rom68k
392 basic_machine=powerpc-unknown
396 basic_machine=moxie-unknown
400 basic_machine=i386-pc
404 basic_machine=i686-pc
408 basic_machine=i370-ibm
412 basic_machine=le32-unknown
416 basic_machine=i486-ncr
420 basic_machine=i386-pc
424 basic_machine=armv4l-rebel
428 basic_machine=m68k-sony
432 basic_machine=m68030-sony
436 basic_machine=v70-nec
440 basic_machine=m68k-harris
444 basic_machine=m88k-harris
448 basic_machine=i960-intel
452 basic_machine=i960-intel
456 basic_machine=mips-compaq
460 basic_machine=powerpc-ibm
464 basic_machine=m68000-ericsson
468 basic_machine=m68k-none
472 basic_machine=i860-intel
476 basic_machine=hppa-unknown
480 basic_machine=mipsallegrexel-sony
484 basic_machine=i586-unknown
488 basic_machine=x86_64-pc
492 basic_machine=i386-pc
496 basic_machine=m68k-rom68k
500 basic_machine=a29k-amd
504 basic_machine=mips-sei
508 basic_machine=i386-sequent
512 basic_machine=m68k-bull
516 basic_machine=m68k-tandem
520 basic_machine=i860-stratus
524 basic_machine=m68000-sun
528 basic_machine=m68000-sun
532 basic_machine=m68000-sun
536 basic_machine=m68k-sun
540 basic_machine=m68k-sun
544 basic_machine=m68k-sun
548 basic_machine=sparc-sun
552 basic_machine=sparc-sun
556 basic_machine=sparc-sun
560 basic_machine=sparc-sun
564 basic_machine=i386-sun
568 basic_machine=sv1-cray
572 basic_machine=i386-sequent
576 basic_machine=alphaev5-cray
580 basic_machine=t90-cray
584 basic_machine=pdp10-xkl
588 basic_machine=s390x-ibm
592 basic_machine=a29k-amd
596 basic_machine=a29k-nyu
600 basic_machine=v810-nec
604 basic_machine=vax-dec
608 basic_machine=vax-dec
612 basic_machine=i386-pc
616 basic_machine=i960-wrs
620 basic_machine=m68k-wrs
624 basic_machine=a29k-wrs
628 basic_machine=i686-pc
632 basic_machine=ymp-cray
636 basic_machine=$1
643 # Decode 1-component or ad-hoc basic machines
645 # Here we handle the default manufacturer of certain CPU types. It is in
648 cpu=hppa1.1
652 cpu=hppa1.1
656 cpu=hppa1.1
660 cpu=i370
664 cpu=clipper
667 mac | mpw | mac-mpw)
668 cpu=m68k
671 pmac | pmac-mpw)
672 cpu=powerpc
677 # for a CPU type and a company and sometimes even an OS.
678 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
679 cpu=m68000
683 cpu=we32k
687 cpu=powerpc
692 cpu=pdp10
697 cpu=pdp10
701 delta | 3300 | motorola-3300 | motorola-delta \
702 | 3300-motorola | delta-motorola)
703 cpu=m68k
707 cpu=m68k
712 cpu=ns32k
716 cpu=elxsi
718 basic_os=${basic_os:-bsd}
721 cpu=i860
725 cpu=ns32k
729 cpu=hppa1.1
733 hp3k9[0-9][0-9] | hp9[0-9][0-9])
734 cpu=hppa1.0
737 hp9k2[0-9][0-9] | hp9k31[0-9])
738 cpu=m68000
741 hp9k3[2-9][0-9])
742 cpu=m68k
745 hp9k6[0-9][0-9] | hp6[0-9][0-9])
746 cpu=hppa1.0
749 hp9k7[0-79][0-9] | hp7[0-79][0-9])
750 cpu=hppa1.1
753 hp9k78[0-9] | hp78[0-9])
754 # FIXME: really hppa2.0-hp
755 cpu=hppa1.1
758 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
759 # FIXME: really hppa2.0-hp
760 cpu=hppa1.1
763 hp9k8[0-9][13679] | hp8[0-9][13679])
764 cpu=hppa1.1
767 hp9k8[0-9][0-9] | hp8[0-9][0-9])
768 cpu=hppa1.0
772 cpu=`echo "$1" | sed -e 's/86.*/86/'`
777 cpu=`echo "$1" | sed -e 's/86.*/86/'`
782 cpu=`echo "$1" | sed -e 's/86.*/86/'`
787 cpu=`echo "$1" | sed -e 's/86.*/86/'`
791 j90 | j90-cray)
792 cpu=j90
794 basic_os=${basic_os:-unicos}
797 cpu=mips
808 cpu=m68000
811 *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
812 cpu=m68k
816 news-3600 | risc-news)
817 cpu=mips
821 next | m*-next)
822 cpu=m68k
838 cpu=np1
841 op50n-* | op60c-*)
842 cpu=hppa1.1
846 pa-hitachi)
847 cpu=hppa1.1
852 cpu=sparc
856 cpu=m68k
860 cpu=ns32k
864 cpu=pn
868 cpu=power
872 cpu=i386
876 cpu=mips
879 rtpc | rtpc-*)
880 cpu=romp
884 cpu=mipsisa32
886 basic_os=${basic_os:-elf}
888 simso-wrs)
889 cpu=sparclite
893 tower | tower-32)
894 cpu=m68k
897 vpp*|vx|vx-*)
898 cpu=f301
902 cpu=w65
905 w89k-*)
906 cpu=hppa1.1
911 cpu=none
914 leon|leon[3-9])
915 cpu=sparc
918 leon-*|leon[3-9]-*)
919 cpu=sparc
920 vendor=`echo "$basic_machine" | sed 's/-.*//'`
923 *-*)
925 IFS="-" read cpu vendor <<EOF
930 # because (1) that's what they normally are, and
933 cpu=$basic_machine
939 cpu=i386
943 cpu=x86_64
946 # Recognize the basic CPU types without company name.
948 cpu=$basic_machine
953 unset -v basic_machine
955 # Decode basic machines in the full and proper CPU-Company form.
956 case $cpu-$vendor in
957 # Here we handle the default manufacturer of certain CPU types in canonical form. It is in
959 craynv-unknown)
961 basic_os=${basic_os:-unicosmp}
963 c90-unknown | c90-cray)
965 basic_os=${Basic_os:-unicos}
967 fx80-unknown)
970 romp-unknown)
973 mmix-unknown)
976 microblaze-unknown | microblazeel-unknown)
979 rs6000-unknown)
982 vax-unknown)
985 pdp11-unknown)
988 we32k-unknown)
991 cydra-unknown)
994 i370-ibm*)
997 orion-unknown)
1000 xps-unknown | xps100-unknown)
1001 cpu=xps100
1005 # Here we normalize CPU types with a missing or matching vendor
1006 dpx20-unknown | dpx20-bull)
1007 cpu=rs6000
1009 basic_os=${basic_os:-bosx}
1012 # Here we normalize CPU types irrespective of the vendor
1013 amd64-*)
1014 cpu=x86_64
1016 blackfin-*)
1017 cpu=bfin
1020 c54x-*)
1021 cpu=tic54x
1023 c55x-*)
1024 cpu=tic55x
1026 c6x-*)
1027 cpu=tic6x
1029 e500v[12]-*)
1030 cpu=powerpc
1033 mips3*-*)
1034 cpu=mips64
1036 ms1-*)
1037 cpu=mt
1039 m68knommu-*)
1040 cpu=m68k
1043 m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
1044 cpu=s12z
1046 openrisc-*)
1047 cpu=or32
1049 parisc-*)
1050 cpu=hppa
1053 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1054 cpu=i586
1056 pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
1057 cpu=i686
1059 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1060 cpu=i686
1062 pentium4-*)
1063 cpu=i786
1065 pc98-*)
1066 cpu=i386
1068 ppc-* | ppcbe-*)
1069 cpu=powerpc
1071 ppcle-* | powerpclittle-*)
1072 cpu=powerpcle
1074 ppc64-*)
1075 cpu=powerpc64
1077 ppc64le-* | powerpc64little-*)
1078 cpu=powerpc64le
1080 sb1-*)
1081 cpu=mipsisa64sb1
1083 sb1el-*)
1084 cpu=mipsisa64sb1el
1086 sh5e[lb]-*)
1087 cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'`
1089 spur-*)
1090 cpu=spur
1092 strongarm-* | thumb-*)
1093 cpu=arm
1095 tx39-*)
1096 cpu=mipstx39
1098 tx39el-*)
1099 cpu=mipstx39el
1101 x64-*)
1102 cpu=x86_64
1104 xscale-* | xscalee[bl]-*)
1105 cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
1107 arm64-*)
1108 cpu=aarch64
1111 # Recognize the canonical CPU Types that limit and/or modify the
1113 cr16-*)
1114 basic_os=${basic_os:-elf}
1116 crisv32-* | etraxfs*-*)
1117 cpu=crisv32
1120 cris-* | etrax*-*)
1121 cpu=cris
1124 crx-*)
1125 basic_os=${basic_os:-elf}
1127 neo-tandem)
1128 cpu=neo
1131 nse-tandem)
1132 cpu=nse
1135 nsr-tandem)
1136 cpu=nsr
1139 nsv-tandem)
1140 cpu=nsv
1143 nsx-tandem)
1144 cpu=nsx
1147 mipsallegrexel-sony)
1148 cpu=mipsallegrexel
1151 tile*-*)
1152 basic_os=${basic_os:-linux-gnu}
1156 # Recognize the canonical CPU types that are allowed with any
1158 case $cpu in
1163 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
1164 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \
1260 echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2
1261 exit 1
1279 # Decode manufacturer-specific aliases for certain operating systems.
1284 # First recognize some ad-hoc caes, or perhaps split kernel-os, or else just
1289 os=`echo $basic_os | sed -e 's|gnu/linux|gnu|'`
1291 nto-qnx*)
1293 os=`echo $basic_os | sed -e 's|nto-qnx|qnx|'`
1295 *-*)
1297 IFS="-" read kernel os <<EOF
1304 os=`echo $basic_os | sed -e 's|nto|qnx|'`
1308 os=`echo $basic_os | sed -e 's|linux|gnu|'`
1329 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1357 sco3.2.[4-9]*)
1358 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
1370 case $cpu in
1374 os=nto-$os
1393 mac[0-9]*)
1394 os=`echo "$os" | sed -e 's|mac|macos|'`
1403 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
1406 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
1433 os=rtmk-nova
1440 os=`echo $os | sed -e 's|sinix|sysv|'`
1466 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
1476 case $cpu in
1496 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1497 # "-sun"), then you have to tell the case statement up towards the top
1503 case $cpu-$vendor in
1504 score-*)
1507 spu-*)
1510 *-acorn)
1513 arm*-rebel)
1517 arm*-semi)
1520 c4x-* | tic4x-*)
1523 c8051-*)
1526 clipper-intergraph)
1529 hexagon-*)
1532 tic54x-*)
1535 tic55x-*)
1538 tic6x-*)
1541 # This must come before the *-dec entry.
1542 pdp10-*)
1545 pdp11-*)
1548 *-dec | vax-*)
1551 m68*-apollo)
1554 i386-sun)
1557 m68000-sun)
1560 m68*-cisco)
1563 mep-*)
1566 mips*-cisco)
1569 mips*-*)
1572 or32-*)
1575 *-tti) # must be before sparc entry or we get the wrong os.
1578 sparc-* | *-sun)
1581 pru-*)
1584 *-be)
1587 *-ibm)
1590 *-knuth)
1593 *-wec)
1596 *-winbond)
1599 *-oki)
1602 *-hp)
1605 *-hitachi)
1608 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1611 *-cbm)
1614 *-dg)
1617 *-dolphin)
1620 m68k-ccur)
1623 m88k-omron*)
1626 *-next)
1629 *-sequent)
1632 *-crds)
1635 *-ns)
1638 i370-*)
1641 *-gould)
1644 *-highlevel)
1647 *-encore)
1650 *-sgi)
1653 *-siemens)
1656 *-masscomp)
1659 f30[01]-fujitsu | f700-fujitsu)
1662 *-rom68k)
1665 *-*bug)
1668 *-apple)
1671 *-atari*)
1674 *-wrs)
1684 # Now, validate our (potentially fixed-up) OS.
1686 # Sometimes we do "kernel-abi", so those need to count as OSes.
1689 # Likewise for "kernel-libc"
1718 | storm-chaos* | tops10* | tenex* | tops20* | its* \
1728 sco3.2v2 | sco3.2v[4-9]* | sco5v6*)
1734 echo Invalid configuration \`"$1"\': OS \`"$os"\' not recognized 1>&2
1735 exit 1
1739 # As a final step for OS-related things, validate the OS-kernel combination
1741 case $kernel-$os in
1742 linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* | linux-musl* | linux-uclibc* )
1744 -dietlibc* | -newlib* | -musl* | -uclibc* )
1747 echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2
1748 exit 1
1750 kfreebsd*-gnu* | kopensolaris*-gnu*)
1752 nto-qnx*)
1754 *-eabi* | *-gnueabi*)
1756 -*)
1759 *-*)
1760 echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2
1761 exit 1
1765 # Here we handle the case where we know the os, and the CPU type, but not the
1769 case $cpu-$os in
1770 *-riscix*)
1773 *-sunos*)
1776 *-cnk* | *-aix*)
1779 *-beos*)
1782 *-hpux*)
1785 *-mpeix*)
1788 *-hiux*)
1791 *-unos*)
1794 *-dgux*)
1797 *-luna*)
1800 *-genix*)
1803 *-clix*)
1806 *-mvs* | *-opened*)
1809 *-os400*)
1812 s390-* | s390x-*)
1815 *-ptx*)
1818 *-tpf*)
1821 *-vxsim* | *-vxworks* | *-windiss*)
1824 *-aux*)
1827 *-hms*)
1830 *-mpw* | *-macos*)
1833 *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*)
1836 *-vos*)
1843 echo "$cpu-$vendor-${kernel:+$kernel-}$os"
1847 # eval: (add-hook 'before-save-hook 'time-stamp)
1848 # time-stamp-start: "timestamp='"
1849 # time-stamp-format: "%:y-%02m-%02d"
1850 # time-stamp-end: "'"