Lines Matching +full:cpu +full:- +full:1

3 #   Copyright 1992-2021 Free Software Foundation, Inc.
7 timestamp='2021-08-14'
30 # Please send patches to <config-patches@gnu.org>.
34 # If it is invalid, we print an error message on stderr and exit with code 1.
41 # and recognize all the CPU types, system types and aliases
50 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
51 # or in some cases, the newer four-part form:
52 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
58 # variety of pre-POSIX systems that do not have POSIX shells at all, and
59 # even some reasonably current systems (Solaris 10 as case-in-point) still
60 # have a pre-POSIX /bin/sh.
62 me=`echo "$0" | sed -e 's,.*/,,'`
65 Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
70 -h, --help print this help, then exit
71 -t, --time-stamp print date of last modification, then exit
72 -v, --version print version number, then exit
74 Report bugs and patches to <config-patches@gnu.org>."
79 Copyright 1992-2021 Free Software Foundation, Inc.
85 Try \`$me --help' for more information."
88 while test $# -gt 0 ; do
89 case $1 in
90 --time-stamp | --time* | -t )
92 --version | -v )
94 --help | --h* | -h )
96 -- ) # Stop option processing
98 - ) # Use stdin as input.
100 -* )
101 echo "$me: invalid option $1$help" >&2
102 exit 1 ;;
106 echo "$1"
116 exit 1;;
117 1) ;;
119 exit 1;;
125 IFS="-" read field1 field2 field3 field4 <<EOF
126 $1
131 case $1 in
132 *-*-*-*-*)
133 echo Invalid configuration \`"$1"\': more than four components >&2
134 exit 1
136 *-*-*-*)
137 basic_machine=$field1-$field2
138 basic_os=$field3-$field4
140 *-*-*)
141 # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
143 maybe_os=$field2-$field3
145 nto-qnx* | linux-* | uclinux-uclibc* \
146 | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
147 | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
148 | storm-chaos* | os2-emx* | rtmk-nova*)
152 android-linux)
153 basic_machine=$field1-unknown
154 basic_os=linux-android
157 basic_machine=$field1-$field2
162 *-*)
164 case $field1-$field2 in
165 decstation-3100)
166 basic_machine=mips-dec
169 *-*)
178 basic_machine=$field1-unknown
191 basic_machine=$field1-$field2
203 # Convert single-component short-hands not valid as part of
204 # multi-component configurations.
207 basic_machine=i386-pc
211 basic_machine=a29k-amd
215 basic_machine=m68010-adobe
219 basic_machine=fx80-alliant
223 basic_machine=m68k-altos
227 basic_machine=a29k-none
231 basic_machine=580-amdahl
235 basic_machine=m68k-unknown
239 basic_machine=m68k-unknown
243 basic_machine=m68k-unknown
247 basic_machine=m68k-apollo
251 basic_machine=m68k-apollo
255 basic_machine=i386-pc
259 basic_machine=m68k-apple
263 basic_machine=ns32k-sequent
267 basic_machine=bfin-unknown
271 basic_machine=arm-unknown
274 convex-c1)
275 basic_machine=c1-convex
278 convex-c2)
279 basic_machine=c2-convex
282 convex-c32)
283 basic_machine=c32-convex
286 convex-c34)
287 basic_machine=c34-convex
290 convex-c38)
291 basic_machine=c38-convex
295 basic_machine=j90-cray
299 basic_machine=m68k-crds
303 basic_machine=m68k-da30
307 basic_machine=mips-dec
311 basic_machine=m88k-motorola
315 basic_machine=i686-pc
319 basic_machine=i586-pc
323 basic_machine=a29k-amd
327 basic_machine=m68k-ericsson
331 basic_machine=tron-gmicro
335 basic_machine=i386-pc
339 basic_machine=h8300-hitachi
343 basic_machine=h8300-hitachi
347 basic_machine=h8500-hitachi
351 basic_machine=m88k-harris
355 basic_machine=m68k-hp
359 basic_machine=m68k-hp
363 basic_machine=hppa1.1-hp
367 basic_machine=hppa1.1-hp
371 basic_machine=i386-mach
375 basic_machine=m68k-isi
379 basic_machine=m68k-unknown
383 basic_machine=mips-mips
387 basic_machine=ns32k-utek
391 basic_machine=x86_64-pc
395 basic_machine=i686-pc
399 basic_machine=arm-unknown
403 basic_machine=m68k-rom68k
407 basic_machine=powerpc-unknown
411 basic_machine=moxie-unknown
415 basic_machine=i386-pc
419 basic_machine=i686-pc
423 basic_machine=i370-ibm
427 basic_machine=le32-unknown
431 basic_machine=i486-ncr
435 basic_machine=i386-pc
439 basic_machine=armv4l-rebel
443 basic_machine=m68k-sony
447 basic_machine=m68030-sony
451 basic_machine=v70-nec
455 basic_machine=m68k-harris
459 basic_machine=m88k-harris
463 basic_machine=i960-intel
467 basic_machine=i960-intel
471 basic_machine=mips-compaq
475 basic_machine=powerpc-ibm
479 basic_machine=m68000-ericsson
483 basic_machine=m68k-none
487 basic_machine=i860-intel
491 basic_machine=hppa-unknown
495 basic_machine=mipsallegrexel-sony
499 basic_machine=i586-unknown
503 basic_machine=x86_64-pc
507 basic_machine=i386-pc
511 basic_machine=m68k-rom68k
515 basic_machine=a29k-amd
519 basic_machine=mips-sei
523 basic_machine=i386-sequent
527 basic_machine=m68k-bull
531 basic_machine=m68k-tandem
535 basic_machine=i860-stratus
539 basic_machine=m68000-sun
543 basic_machine=m68000-sun
547 basic_machine=m68000-sun
551 basic_machine=m68k-sun
555 basic_machine=m68k-sun
559 basic_machine=m68k-sun
563 basic_machine=sparc-sun
567 basic_machine=sparc-sun
571 basic_machine=sparc-sun
575 basic_machine=sparc-sun
579 basic_machine=i386-sun
583 basic_machine=sv1-cray
587 basic_machine=i386-sequent
591 basic_machine=alphaev5-cray
595 basic_machine=t90-cray
599 basic_machine=pdp10-xkl
603 basic_machine=s390x-ibm
607 basic_machine=a29k-amd
611 basic_machine=a29k-nyu
615 basic_machine=v810-nec
619 basic_machine=vax-dec
623 basic_machine=vax-dec
627 basic_machine=i386-pc
631 basic_machine=i960-wrs
635 basic_machine=m68k-wrs
639 basic_machine=a29k-wrs
643 basic_machine=i686-pc
647 basic_machine=ymp-cray
651 basic_machine=$1
658 # Decode 1-component or ad-hoc basic machines
660 # Here we handle the default manufacturer of certain CPU types. It is in
663 cpu=hppa1.1
667 cpu=hppa1.1
671 cpu=hppa1.1
675 cpu=i370
679 cpu=clipper
682 mac | mpw | mac-mpw)
683 cpu=m68k
686 pmac | pmac-mpw)
687 cpu=powerpc
692 # for a CPU type and a company and sometimes even an OS.
693 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
694 cpu=m68000
698 cpu=we32k
702 cpu=powerpc
707 cpu=pdp10
712 cpu=pdp10
716 delta | 3300 | motorola-3300 | motorola-delta \
717 | 3300-motorola | delta-motorola)
718 cpu=m68k
722 cpu=m68k
727 cpu=ns32k
731 cpu=elxsi
733 basic_os=${basic_os:-bsd}
736 cpu=i860
740 cpu=ns32k
744 cpu=hppa1.1
748 hp3k9[0-9][0-9] | hp9[0-9][0-9])
749 cpu=hppa1.0
752 hp9k2[0-9][0-9] | hp9k31[0-9])
753 cpu=m68000
756 hp9k3[2-9][0-9])
757 cpu=m68k
760 hp9k6[0-9][0-9] | hp6[0-9][0-9])
761 cpu=hppa1.0
764 hp9k7[0-79][0-9] | hp7[0-79][0-9])
765 cpu=hppa1.1
768 hp9k78[0-9] | hp78[0-9])
769 # FIXME: really hppa2.0-hp
770 cpu=hppa1.1
773 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
774 # FIXME: really hppa2.0-hp
775 cpu=hppa1.1
778 hp9k8[0-9][13679] | hp8[0-9][13679])
779 cpu=hppa1.1
782 hp9k8[0-9][0-9] | hp8[0-9][0-9])
783 cpu=hppa1.0
787 cpu=`echo "$1" | sed -e 's/86.*/86/'`
792 cpu=`echo "$1" | sed -e 's/86.*/86/'`
797 cpu=`echo "$1" | sed -e 's/86.*/86/'`
802 cpu=`echo "$1" | sed -e 's/86.*/86/'`
806 j90 | j90-cray)
807 cpu=j90
809 basic_os=${basic_os:-unicos}
812 cpu=mips
823 cpu=m68000
826 *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
827 cpu=m68k
831 news-3600 | risc-news)
832 cpu=mips
836 next | m*-next)
837 cpu=m68k
853 cpu=np1
856 op50n-* | op60c-*)
857 cpu=hppa1.1
861 pa-hitachi)
862 cpu=hppa1.1
867 cpu=sparc
871 cpu=m68k
875 cpu=ns32k
879 cpu=pn
883 cpu=power
887 cpu=i386
891 cpu=mips
894 rtpc | rtpc-*)
895 cpu=romp
899 cpu=mipsisa32
901 basic_os=${basic_os:-elf}
903 simso-wrs)
904 cpu=sparclite
908 tower | tower-32)
909 cpu=m68k
912 vpp*|vx|vx-*)
913 cpu=f301
917 cpu=w65
920 w89k-*)
921 cpu=hppa1.1
926 cpu=none
929 leon|leon[3-9])
930 cpu=sparc
933 leon-*|leon[3-9]-*)
934 cpu=sparc
935 vendor=`echo "$basic_machine" | sed 's/-.*//'`
938 *-*)
941 IFS="-" read cpu vendor <<EOF
947 # because (1) that's what they normally are, and
950 cpu=$basic_machine
956 cpu=i386
960 cpu=x86_64
963 # Recognize the basic CPU types without company name.
965 cpu=$basic_machine
970 unset -v basic_machine
972 # Decode basic machines in the full and proper CPU-Company form.
973 case $cpu-$vendor in
974 # Here we handle the default manufacturer of certain CPU types in canonical form. It is in
976 craynv-unknown)
978 basic_os=${basic_os:-unicosmp}
980 c90-unknown | c90-cray)
982 basic_os=${Basic_os:-unicos}
984 fx80-unknown)
987 romp-unknown)
990 mmix-unknown)
993 microblaze-unknown | microblazeel-unknown)
996 rs6000-unknown)
999 vax-unknown)
1002 pdp11-unknown)
1005 we32k-unknown)
1008 cydra-unknown)
1011 i370-ibm*)
1014 orion-unknown)
1017 xps-unknown | xps100-unknown)
1018 cpu=xps100
1022 # Here we normalize CPU types with a missing or matching vendor
1023 dpx20-unknown | dpx20-bull)
1024 cpu=rs6000
1026 basic_os=${basic_os:-bosx}
1029 # Here we normalize CPU types irrespective of the vendor
1030 amd64-*)
1031 cpu=x86_64
1033 blackfin-*)
1034 cpu=bfin
1037 c54x-*)
1038 cpu=tic54x
1040 c55x-*)
1041 cpu=tic55x
1043 c6x-*)
1044 cpu=tic6x
1046 e500v[12]-*)
1047 cpu=powerpc
1050 mips3*-*)
1051 cpu=mips64
1053 ms1-*)
1054 cpu=mt
1056 m68knommu-*)
1057 cpu=m68k
1060 m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
1061 cpu=s12z
1063 openrisc-*)
1064 cpu=or32
1066 parisc-*)
1067 cpu=hppa
1070 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1071 cpu=i586
1073 pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
1074 cpu=i686
1076 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1077 cpu=i686
1079 pentium4-*)
1080 cpu=i786
1082 pc98-*)
1083 cpu=i386
1085 ppc-* | ppcbe-*)
1086 cpu=powerpc
1088 ppcle-* | powerpclittle-*)
1089 cpu=powerpcle
1091 ppc64-*)
1092 cpu=powerpc64
1094 ppc64le-* | powerpc64little-*)
1095 cpu=powerpc64le
1097 sb1-*)
1098 cpu=mipsisa64sb1
1100 sb1el-*)
1101 cpu=mipsisa64sb1el
1103 sh5e[lb]-*)
1104 cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'`
1106 spur-*)
1107 cpu=spur
1109 strongarm-* | thumb-*)
1110 cpu=arm
1112 tx39-*)
1113 cpu=mipstx39
1115 tx39el-*)
1116 cpu=mipstx39el
1118 x64-*)
1119 cpu=x86_64
1121 xscale-* | xscalee[bl]-*)
1122 cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
1124 arm64-*)
1125 cpu=aarch64
1128 # Recognize the canonical CPU Types that limit and/or modify the
1130 cr16-*)
1131 basic_os=${basic_os:-elf}
1133 crisv32-* | etraxfs*-*)
1134 cpu=crisv32
1137 cris-* | etrax*-*)
1138 cpu=cris
1141 crx-*)
1142 basic_os=${basic_os:-elf}
1144 neo-tandem)
1145 cpu=neo
1148 nse-tandem)
1149 cpu=nse
1152 nsr-tandem)
1153 cpu=nsr
1156 nsv-tandem)
1157 cpu=nsv
1160 nsx-tandem)
1161 cpu=nsx
1164 mipsallegrexel-sony)
1165 cpu=mipsallegrexel
1168 tile*-*)
1169 basic_os=${basic_os:-linux-gnu}
1173 # Recognize the canonical CPU types that are allowed with any
1175 case $cpu in
1180 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
1181 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \
1284 echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2
1285 exit 1
1303 # Decode manufacturer-specific aliases for certain operating systems.
1308 # First recognize some ad-hoc caes, or perhaps split kernel-os, or else just
1313 os=`echo "$basic_os" | sed -e 's|gnu/linux|gnu|'`
1315 os2-emx)
1317 os=`echo "$basic_os" | sed -e 's|os2-emx|emx|'`
1319 nto-qnx*)
1321 os=`echo "$basic_os" | sed -e 's|nto-qnx|qnx|'`
1323 *-*)
1326 IFS="-" read kernel os <<EOF
1334 os=`echo "$basic_os" | sed -e 's|nto|qnx|'`
1338 os=`echo "$basic_os" | sed -e 's|linux|gnu|'`
1359 os=`echo "$os" | sed -e 's|solaris1|sunos4|'`
1387 sco3.2.[4-9]*)
1388 os=`echo "$os" | sed -e 's/sco3.2./sco3.2v/'`
1417 mac[0-9]*)
1418 os=`echo "$os" | sed -e 's|mac|macos|'`
1427 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
1430 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
1457 os=rtmk-nova
1464 os=`echo "$os" | sed -e 's|sinix|sysv|'`
1490 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
1500 case $cpu in
1520 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1521 # "-sun"), then you have to tell the case statement up towards the top
1527 case $cpu-$vendor in
1528 score-*)
1531 spu-*)
1534 *-acorn)
1537 arm*-rebel)
1541 arm*-semi)
1544 c4x-* | tic4x-*)
1547 c8051-*)
1550 clipper-intergraph)
1553 hexagon-*)
1556 tic54x-*)
1559 tic55x-*)
1562 tic6x-*)
1565 # This must come before the *-dec entry.
1566 pdp10-*)
1569 pdp11-*)
1572 *-dec | vax-*)
1575 m68*-apollo)
1578 i386-sun)
1581 m68000-sun)
1584 m68*-cisco)
1587 mep-*)
1590 mips*-cisco)
1593 mips*-*)
1596 or32-*)
1599 *-tti) # must be before sparc entry or we get the wrong os.
1602 sparc-* | *-sun)
1605 pru-*)
1608 *-be)
1611 *-ibm)
1614 *-knuth)
1617 *-wec)
1620 *-winbond)
1623 *-oki)
1626 *-hp)
1629 *-hitachi)
1632 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1635 *-cbm)
1638 *-dg)
1641 *-dolphin)
1644 m68k-ccur)
1647 m88k-omron*)
1650 *-next)
1653 *-sequent)
1656 *-crds)
1659 *-ns)
1662 i370-*)
1665 *-gould)
1668 *-highlevel)
1671 *-encore)
1674 *-sgi)
1677 *-siemens)
1680 *-masscomp)
1683 f30[01]-fujitsu | f700-fujitsu)
1686 *-rom68k)
1689 *-*bug)
1692 *-apple)
1695 *-atari*)
1698 *-wrs)
1708 # Now, validate our (potentially fixed-up) OS.
1710 # Sometimes we do "kernel-libc", so those need to count as OSes.
1713 # Likewise for "kernel-abi"
1716 # VxWorks passes extra cpu info in the 4th filed.
1745 | storm-chaos* | tops10* | tenex* | tops20* | its* \
1755 sco3.2v2 | sco3.2v[4-9]* | sco5v6*)
1761 echo Invalid configuration \`"$1"\': OS \`"$os"\' not recognized 1>&2
1762 exit 1
1766 # As a final step for OS-related things, validate the OS-kernel combination
1768 case $kernel-$os in
1769 linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* \
1770 | linux-musl* | linux-relibc* | linux-uclibc* )
1772 uclinux-uclibc* )
1774 -dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* )
1777 echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2
1778 exit 1
1780 kfreebsd*-gnu* | kopensolaris*-gnu*)
1782 vxworks-simlinux | vxworks-simwindows | vxworks-spe)
1784 nto-qnx*)
1786 os2-emx)
1788 *-eabi* | *-gnueabi*)
1790 -*)
1793 *-*)
1794 echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2
1795 exit 1
1799 # Here we handle the case where we know the os, and the CPU type, but not the
1803 case $cpu-$os in
1804 *-riscix*)
1807 *-sunos*)
1810 *-cnk* | *-aix*)
1813 *-beos*)
1816 *-hpux*)
1819 *-mpeix*)
1822 *-hiux*)
1825 *-unos*)
1828 *-dgux*)
1831 *-luna*)
1834 *-genix*)
1837 *-clix*)
1840 *-mvs* | *-opened*)
1843 *-os400*)
1846 s390-* | s390x-*)
1849 *-ptx*)
1852 *-tpf*)
1855 *-vxsim* | *-vxworks* | *-windiss*)
1858 *-aux*)
1861 *-hms*)
1864 *-mpw* | *-macos*)
1867 *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*)
1870 *-vos*)
1877 echo "$cpu-$vendor-${kernel:+$kernel-}$os"
1881 # eval: (add-hook 'before-save-hook 'time-stamp)
1882 # time-stamp-start: "timestamp='"
1883 # time-stamp-format: "%:y-%02m-%02d"
1884 # time-stamp-end: "'"