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

3 #   Copyright 1992-2022 Free Software Foundation, Inc.
7 timestamp='2022-01-03'
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-2022 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 armh-unknown | armh-alt)
1024 cpu=armv7l
1026 basic_os=${basic_os:-linux-gnueabihf}
1028 dpx20-unknown | dpx20-bull)
1029 cpu=rs6000
1031 basic_os=${basic_os:-bosx}
1034 # Here we normalize CPU types irrespective of the vendor
1035 amd64-*)
1036 cpu=x86_64
1038 blackfin-*)
1039 cpu=bfin
1042 c54x-*)
1043 cpu=tic54x
1045 c55x-*)
1046 cpu=tic55x
1048 c6x-*)
1049 cpu=tic6x
1051 e500v[12]-*)
1052 cpu=powerpc
1055 mips3*-*)
1056 cpu=mips64
1058 ms1-*)
1059 cpu=mt
1061 m68knommu-*)
1062 cpu=m68k
1065 m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
1066 cpu=s12z
1068 openrisc-*)
1069 cpu=or32
1071 parisc-*)
1072 cpu=hppa
1075 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1076 cpu=i586
1078 pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
1079 cpu=i686
1081 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1082 cpu=i686
1084 pentium4-*)
1085 cpu=i786
1087 pc98-*)
1088 cpu=i386
1090 ppc-* | ppcbe-*)
1091 cpu=powerpc
1093 ppcle-* | powerpclittle-*)
1094 cpu=powerpcle
1096 ppc64-*)
1097 cpu=powerpc64
1099 ppc64le-* | powerpc64little-*)
1100 cpu=powerpc64le
1102 sb1-*)
1103 cpu=mipsisa64sb1
1105 sb1el-*)
1106 cpu=mipsisa64sb1el
1108 sh5e[lb]-*)
1109 cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'`
1111 spur-*)
1112 cpu=spur
1114 strongarm-* | thumb-*)
1115 cpu=arm
1117 tx39-*)
1118 cpu=mipstx39
1120 tx39el-*)
1121 cpu=mipstx39el
1123 x64-*)
1124 cpu=x86_64
1126 xscale-* | xscalee[bl]-*)
1127 cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
1129 arm64-* | aarch64le-*)
1130 cpu=aarch64
1133 # Recognize the canonical CPU Types that limit and/or modify the
1135 cr16-*)
1136 basic_os=${basic_os:-elf}
1138 crisv32-* | etraxfs*-*)
1139 cpu=crisv32
1142 cris-* | etrax*-*)
1143 cpu=cris
1146 crx-*)
1147 basic_os=${basic_os:-elf}
1149 neo-tandem)
1150 cpu=neo
1153 nse-tandem)
1154 cpu=nse
1157 nsr-tandem)
1158 cpu=nsr
1161 nsv-tandem)
1162 cpu=nsv
1165 nsx-tandem)
1166 cpu=nsx
1169 mipsallegrexel-sony)
1170 cpu=mipsallegrexel
1173 tile*-*)
1174 basic_os=${basic_os:-linux-gnu}
1178 # Recognize the canonical CPU types that are allowed with any
1180 case $cpu in
1185 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
1186 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \
1288 echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2
1289 exit 1
1307 # Decode manufacturer-specific aliases for certain operating systems.
1312 # First recognize some ad-hoc cases, or perhaps split kernel-os, or else just
1317 os=`echo "$basic_os" | sed -e 's|gnu/linux|gnu|'`
1319 os2-emx)
1321 os=`echo "$basic_os" | sed -e 's|os2-emx|emx|'`
1323 nto-qnx*)
1325 os=`echo "$basic_os" | sed -e 's|nto-qnx|qnx|'`
1327 *-*)
1330 IFS="-" read kernel os <<EOF
1338 os=`echo "$basic_os" | sed -e 's|nto|qnx|'`
1342 os=`echo "$basic_os" | sed -e 's|linux|gnu|'`
1363 os=`echo "$os" | sed -e 's|solaris1|sunos4|'`
1391 sco3.2.[4-9]*)
1392 os=`echo "$os" | sed -e 's/sco3.2./sco3.2v/'`
1421 mac[0-9]*)
1422 os=`echo "$os" | sed -e 's|mac|macos|'`
1431 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
1434 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
1461 os=rtmk-nova
1468 os=`echo "$os" | sed -e 's|sinix|sysv|'`
1494 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
1504 case $cpu in
1524 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1525 # "-sun"), then you have to tell the case statement up towards the top
1531 case $cpu-$vendor in
1532 score-*)
1535 spu-*)
1538 *-acorn)
1541 arm*-rebel)
1545 arm*-semi)
1548 c4x-* | tic4x-*)
1551 c8051-*)
1554 clipper-intergraph)
1557 hexagon-*)
1560 tic54x-*)
1563 tic55x-*)
1566 tic6x-*)
1569 # This must come before the *-dec entry.
1570 pdp10-*)
1573 pdp11-*)
1576 *-dec | vax-*)
1579 m68*-apollo)
1582 i386-sun)
1585 m68000-sun)
1588 m68*-cisco)
1591 mep-*)
1594 mips*-cisco)
1597 mips*-*)
1600 or32-*)
1603 *-tti) # must be before sparc entry or we get the wrong os.
1606 sparc-* | *-sun)
1609 pru-*)
1612 *-be)
1615 *-ibm)
1618 *-knuth)
1621 *-wec)
1624 *-winbond)
1627 *-oki)
1630 *-hp)
1633 *-hitachi)
1636 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1639 *-cbm)
1642 *-dg)
1645 *-dolphin)
1648 m68k-ccur)
1651 m88k-omron*)
1654 *-next)
1657 *-sequent)
1660 *-crds)
1663 *-ns)
1666 i370-*)
1669 *-gould)
1672 *-highlevel)
1675 *-encore)
1678 *-sgi)
1681 *-siemens)
1684 *-masscomp)
1687 f30[01]-fujitsu | f700-fujitsu)
1690 *-rom68k)
1693 *-*bug)
1696 *-apple)
1699 *-atari*)
1702 *-wrs)
1712 # Now, validate our (potentially fixed-up) OS.
1714 # Sometimes we do "kernel-libc", so those need to count as OSes.
1717 # Likewise for "kernel-abi"
1720 # VxWorks passes extra cpu info in the 4th filed.
1749 | storm-chaos* | tops10* | tenex* | tops20* | its* \
1760 sco3.2v2 | sco3.2v[4-9]* | sco5v6*)
1766 echo Invalid configuration \`"$1"\': OS \`"$os"\' not recognized 1>&2
1767 exit 1
1771 # As a final step for OS-related things, validate the OS-kernel combination
1773 case $kernel-$os in
1774 linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* \
1775 | linux-musl* | linux-relibc* | linux-uclibc* )
1777 uclinux-uclibc* )
1779 -dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* )
1782 echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2
1783 exit 1
1785 kfreebsd*-gnu* | kopensolaris*-gnu*)
1787 vxworks-simlinux | vxworks-simwindows | vxworks-spe)
1789 nto-qnx*)
1791 os2-emx)
1793 *-eabi* | *-gnueabi*)
1795 -*)
1798 *-*)
1799 echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2
1800 exit 1
1804 # Here we handle the case where we know the os, and the CPU type, but not the
1808 case $cpu-$os in
1809 *-riscix*)
1812 *-sunos*)
1815 *-cnk* | *-aix*)
1818 *-beos*)
1821 *-hpux*)
1824 *-mpeix*)
1827 *-hiux*)
1830 *-unos*)
1833 *-dgux*)
1836 *-luna*)
1839 *-genix*)
1842 *-clix*)
1845 *-mvs* | *-opened*)
1848 *-os400*)
1851 s390-* | s390x-*)
1854 *-ptx*)
1857 *-tpf*)
1860 *-vxsim* | *-vxworks* | *-windiss*)
1863 *-aux*)
1866 *-hms*)
1869 *-mpw* | *-macos*)
1872 *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*)
1875 *-vos*)
1882 echo "$cpu-$vendor-${kernel:+$kernel-}$os"
1886 # eval: (add-hook 'before-save-hook 'time-stamp)
1887 # time-stamp-start: "timestamp='"
1888 # time-stamp-format: "%:y-%02m-%02d"
1889 # time-stamp-end: "'"