Lines Matching +full:cpu +full:- +full:version

3 #   Copyright 1992-2020 Free Software Foundation, Inc.
5 timestamp='2020-01-01'
9 # the Free Software Foundation; either version 3 of the License, or
10 # (at your option) any later version.
25 # of the GNU General Public License, version 3 ("GPLv3").
28 # Please send patches to <config-patches@gnu.org>.
35 # You can get the latest version of this script from:
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>."
67 version="\
70 Copyright 1992-2020 Free Software Foundation, Inc.
76 Try \`$me --help' for more information."
79 while test $# -gt 0 ; do
81 --time-stamp | --time* | -t )
83 --version | -v )
84 echo "$version" ; exit ;;
85 --help | --h* | -h )
87 -- ) # Stop option processing
89 - ) # Use stdin as input.
91 -* )
115 IFS="-" read field1 field2 field3 field4 <<EOF
121 *-*-*-*-*)
125 *-*-*-*)
126 basic_machine=$field1-$field2
127 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-gnu* | linux-android* | linux-dietlibc \
135 | linux-newlib* | linux-musl* | linux-uclibc* | uclinux-uclibc* \
136 | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
137 | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
138 | storm-chaos* | os2-emx* | rtmk-nova*)
142 android-linux)
143 basic_machine=$field1-unknown
144 os=linux-android
147 basic_machine=$field1-$field2
152 *-*)
154 case $field1-$field2 in
155 decstation-3100)
156 basic_machine=mips-dec
159 *-*)
177 basic_machine=$field1-$field2
189 # Convert single-component short-hands not valid as part of
190 # multi-component configurations.
193 basic_machine=i386-pc
197 basic_machine=a29k-amd
201 basic_machine=m68010-adobe
205 basic_machine=fx80-alliant
209 basic_machine=m68k-altos
213 basic_machine=a29k-none
217 basic_machine=580-amdahl
221 basic_machine=m68k-unknown
225 basic_machine=m68k-unknown
229 basic_machine=m68k-unknown
233 basic_machine=m68k-apollo
237 basic_machine=m68k-apollo
241 basic_machine=i386-pc
245 basic_machine=m68k-apple
249 basic_machine=ns32k-sequent
253 basic_machine=bfin-unknown
257 basic_machine=arm-unknown
260 convex-c1)
261 basic_machine=c1-convex
264 convex-c2)
265 basic_machine=c2-convex
268 convex-c32)
269 basic_machine=c32-convex
272 convex-c34)
273 basic_machine=c34-convex
276 convex-c38)
277 basic_machine=c38-convex
281 basic_machine=j90-cray
285 basic_machine=m68k-crds
289 basic_machine=m68k-da30
293 basic_machine=mips-dec
297 basic_machine=m88k-motorola
301 basic_machine=i686-pc
305 basic_machine=i586-pc
309 basic_machine=a29k-amd
313 basic_machine=m68k-ericsson
317 basic_machine=tron-gmicro
321 basic_machine=i386-pc
325 basic_machine=h8300-hitachi
329 basic_machine=h8300-hitachi
333 basic_machine=h8500-hitachi
337 basic_machine=m88k-harris
341 basic_machine=m68k-hp
345 basic_machine=m68k-hp
349 basic_machine=hppa1.1-hp
353 basic_machine=hppa1.1-hp
357 basic_machine=i386-mach
361 basic_machine=m68k-isi
365 basic_machine=m68k-unknown
369 basic_machine=mips-mips
373 basic_machine=ns32k-utek
377 basic_machine=x86_64-pc
381 basic_machine=i686-pc
385 basic_machine=arm-unknown
389 basic_machine=m68k-rom68k
393 basic_machine=powerpc-unknown
397 basic_machine=moxie-unknown
401 basic_machine=i386-pc
405 basic_machine=i686-pc
409 basic_machine=i370-ibm
413 basic_machine=le32-unknown
417 basic_machine=i486-ncr
421 basic_machine=i386-pc
425 basic_machine=armv4l-rebel
429 basic_machine=m68k-sony
433 basic_machine=m68030-sony
437 basic_machine=v70-nec
441 basic_machine=m68k-harris
445 basic_machine=m88k-harris
449 basic_machine=i960-intel
453 basic_machine=i960-intel
457 basic_machine=mips-compaq
461 basic_machine=powerpc-ibm
465 basic_machine=m68000-ericsson
469 basic_machine=m68k-none
473 basic_machine=i860-intel
477 basic_machine=hppa-unknown
481 basic_machine=i586-unknown
485 basic_machine=x86_64-pc
489 basic_machine=i386-pc
493 basic_machine=m68k-rom68k
497 basic_machine=a29k-amd
501 basic_machine=mips-sei
505 basic_machine=i386-sequent
509 basic_machine=m68k-bull
513 basic_machine=m68k-tandem
517 basic_machine=i860-stratus
521 basic_machine=m68000-sun
525 basic_machine=m68000-sun
529 basic_machine=m68000-sun
533 basic_machine=m68k-sun
537 basic_machine=m68k-sun
541 basic_machine=m68k-sun
545 basic_machine=sparc-sun
549 basic_machine=sparc-sun
553 basic_machine=sparc-sun
557 basic_machine=sparc-sun
561 basic_machine=i386-sun
565 basic_machine=sv1-cray
569 basic_machine=i386-sequent
573 basic_machine=alphaev5-cray
577 basic_machine=t90-cray
581 basic_machine=pdp10-xkl
585 basic_machine=s390x-ibm
589 basic_machine=a29k-amd
593 basic_machine=a29k-nyu
597 basic_machine=v810-nec
601 basic_machine=vax-dec
605 basic_machine=vax-dec
609 basic_machine=i386-pc
613 basic_machine=i960-wrs
617 basic_machine=m68k-wrs
621 basic_machine=a29k-wrs
625 basic_machine=i686-pc
629 basic_machine=ymp-cray
640 # Decode 1-component or ad-hoc basic machines
642 # Here we handle the default manufacturer of certain CPU types. It is in
645 cpu=hppa1.1
649 cpu=hppa1.1
653 cpu=hppa1.1
657 cpu=i370
661 cpu=clipper
664 mac | mpw | mac-mpw)
665 cpu=m68k
668 pmac | pmac-mpw)
669 cpu=powerpc
674 # for a CPU type and a company and sometimes even an OS.
675 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
676 cpu=m68000
680 cpu=we32k
684 cpu=powerpc
689 cpu=pdp10
694 cpu=pdp10
698 delta | 3300 | motorola-3300 | motorola-delta \
699 | 3300-motorola | delta-motorola)
700 cpu=m68k
704 cpu=m68k
709 cpu=ns32k
713 cpu=elxsi
715 os=${os:-bsd}
718 cpu=i860
722 cpu=ns32k
726 cpu=hppa1.1
730 hp3k9[0-9][0-9] | hp9[0-9][0-9])
731 cpu=hppa1.0
734 hp9k2[0-9][0-9] | hp9k31[0-9])
735 cpu=m68000
738 hp9k3[2-9][0-9])
739 cpu=m68k
742 hp9k6[0-9][0-9] | hp6[0-9][0-9])
743 cpu=hppa1.0
746 hp9k7[0-79][0-9] | hp7[0-79][0-9])
747 cpu=hppa1.1
750 hp9k78[0-9] | hp78[0-9])
751 # FIXME: really hppa2.0-hp
752 cpu=hppa1.1
756 # FIXME: really hppa2.0-hp
757 cpu=hppa1.1
760 hp9k8[0-9][13679] | hp8[0-9][13679])
761 cpu=hppa1.1
764 hp9k8[0-9][0-9] | hp8[0-9][0-9])
765 cpu=hppa1.0
769 cpu=`echo "$1" | sed -e 's/86.*/86/'`
774 cpu=`echo "$1" | sed -e 's/86.*/86/'`
779 cpu=`echo "$1" | sed -e 's/86.*/86/'`
784 cpu=`echo "$1" | sed -e 's/86.*/86/'`
788 j90 | j90-cray)
789 cpu=j90
791 os=${os:-unicos}
794 cpu=mips
805 cpu=m68000
808 *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
809 cpu=m68k
813 news-3600 | risc-news)
814 cpu=mips
818 next | m*-next)
819 cpu=m68k
835 cpu=np1
838 op50n-* | op60c-*)
839 cpu=hppa1.1
843 pa-hitachi)
844 cpu=hppa1.1
849 cpu=sparc
853 cpu=m68k
857 cpu=ns32k
861 cpu=pn
865 cpu=power
869 cpu=i386
873 cpu=mips
876 rtpc | rtpc-*)
877 cpu=romp
881 cpu=mipsisa32
883 os=${os:-elf}
885 simso-wrs)
886 cpu=sparclite
890 tower | tower-32)
891 cpu=m68k
894 vpp*|vx|vx-*)
895 cpu=f301
899 cpu=w65
902 w89k-*)
903 cpu=hppa1.1
908 cpu=none
911 leon|leon[3-9])
912 cpu=sparc
915 leon-*|leon[3-9]-*)
916 cpu=sparc
917 vendor=`echo "$basic_machine" | sed 's/-.*//'`
920 *-*)
922 IFS="-" read cpu vendor <<EOF
930 cpu=$basic_machine
936 cpu=i386
940 cpu=x86_64
943 # Recognize the basic CPU types without company name.
945 cpu=$basic_machine
950 unset -v basic_machine
952 # Decode basic machines in the full and proper CPU-Company form.
953 case $cpu-$vendor in
954 # Here we handle the default manufacturer of certain CPU types in canonical form. It is in
956 craynv-unknown)
958 os=${os:-unicosmp}
960 c90-unknown | c90-cray)
962 os=${os:-unicos}
964 fx80-unknown)
967 romp-unknown)
970 mmix-unknown)
973 microblaze-unknown | microblazeel-unknown)
976 rs6000-unknown)
979 vax-unknown)
982 pdp11-unknown)
985 we32k-unknown)
988 cydra-unknown)
991 i370-ibm*)
994 orion-unknown)
997 xps-unknown | xps100-unknown)
998 cpu=xps100
1002 # Here we normalize CPU types with a missing or matching vendor
1003 dpx20-unknown | dpx20-bull)
1004 cpu=rs6000
1006 os=${os:-bosx}
1009 # Here we normalize CPU types irrespective of the vendor
1010 amd64-*)
1011 cpu=x86_64
1013 blackfin-*)
1014 cpu=bfin
1017 c54x-*)
1018 cpu=tic54x
1020 c55x-*)
1021 cpu=tic55x
1023 c6x-*)
1024 cpu=tic6x
1026 e500v[12]-*)
1027 cpu=powerpc
1030 mips3*-*)
1031 cpu=mips64
1033 ms1-*)
1034 cpu=mt
1036 m68knommu-*)
1037 cpu=m68k
1040 m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
1041 cpu=s12z
1043 openrisc-*)
1044 cpu=or32
1046 parisc-*)
1047 cpu=hppa
1050 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1051 cpu=i586
1053 pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
1054 cpu=i686
1056 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1057 cpu=i686
1059 pentium4-*)
1060 cpu=i786
1062 pc98-*)
1063 cpu=i386
1065 ppc-* | ppcbe-*)
1066 cpu=powerpc
1068 ppcle-* | powerpclittle-*)
1069 cpu=powerpcle
1071 ppc64-*)
1072 cpu=powerpc64
1074 ppc64le-* | powerpc64little-*)
1075 cpu=powerpc64le
1077 sb1-*)
1078 cpu=mipsisa64sb1
1080 sb1el-*)
1081 cpu=mipsisa64sb1el
1083 sh5e[lb]-*)
1084 cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'`
1086 spur-*)
1087 cpu=spur
1089 strongarm-* | thumb-*)
1090 cpu=arm
1092 tx39-*)
1093 cpu=mipstx39
1095 tx39el-*)
1096 cpu=mipstx39el
1098 x64-*)
1099 cpu=x86_64
1101 xscale-* | xscalee[bl]-*)
1102 cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
1105 # Recognize the canonical CPU Types that limit and/or modify the
1107 cr16-*)
1108 os=${os:-elf}
1110 crisv32-* | etraxfs*-*)
1111 cpu=crisv32
1114 cris-* | etrax*-*)
1115 cpu=cris
1118 crx-*)
1119 os=${os:-elf}
1121 neo-tandem)
1122 cpu=neo
1125 nse-tandem)
1126 cpu=nse
1129 nsr-tandem)
1130 cpu=nsr
1133 nsv-tandem)
1134 cpu=nsv
1137 nsx-tandem)
1138 cpu=nsx
1141 s390-*)
1142 cpu=s390
1145 s390x-*)
1146 cpu=s390x
1149 tile*-*)
1150 os=${os:-linux-gnu}
1154 # Recognize the canonical CPU types that are allowed with any
1156 case $cpu in
1161 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
1162 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \
1257 echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2
1276 # Decode manufacturer-specific aliases for certain operating systems.
1291 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1300 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1306 # Some version numbers need modification
1322 sco3.2.[4-9]*)
1323 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
1325 sco3.2v[4-9]* | sco5v6*)
1326 # Don't forget version if it is 3.2v4 or newer.
1339 # Each alternative MUST end in a * to match a version number.
1357 | midipix* | mingw32* | mingw64* | linux-gnu* | linux-android* \
1358 | linux-newlib* | linux-musl* | linux-uclibc* \
1362 | storm-chaos* | tops10* | tenex* | tops20* | its* \
1370 # Remember, each alternative MUST END IN *, to match a version number.
1373 case $cpu in
1377 os=nto-$os
1384 nto-qnx*)
1387 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1393 linux-dietlibc)
1394 os=linux-dietlibc
1397 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1409 os=`echo "$os" | sed -e 's|mac|macos|'`
1418 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
1421 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
1448 os=rtmk-nova
1453 # Preserve the version number of sinix5.
1455 os=`echo $os | sed -e 's|sinix|sysv|'`
1484 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
1497 case $cpu in
1512 *-eabi)
1525 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1526 # "-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)
1544 arm*-semi)
1547 c4x-* | tic4x-*)
1550 c8051-*)
1553 clipper-intergraph)
1556 hexagon-*)
1559 tic54x-*)
1562 tic55x-*)
1565 tic6x-*)
1568 # This must come before the *-dec entry.
1569 pdp10-*)
1572 pdp11-*)
1575 *-dec | vax-*)
1578 m68*-apollo)
1581 i386-sun)
1584 m68000-sun)
1587 m68*-cisco)
1590 mep-*)
1593 mips*-cisco)
1596 mips*-*)
1599 or32-*)
1602 *-tti) # must be before sparc entry or we get the wrong os.
1605 sparc-* | *-sun)
1608 pru-*)
1611 *-be)
1614 *-ibm)
1617 *-knuth)
1620 *-wec)
1623 *-winbond)
1626 *-oki)
1629 *-hp)
1632 *-hitachi)
1635 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1638 *-cbm)
1641 *-dg)
1644 *-dolphin)
1647 m68k-ccur)
1650 m88k-omron*)
1653 *-next)
1656 *-sequent)
1659 *-crds)
1662 *-ns)
1665 i370-*)
1668 *-gould)
1671 *-highlevel)
1674 *-encore)
1677 *-sgi)
1680 *-siemens)
1683 *-masscomp)
1686 f30[01]-fujitsu | f700-fujitsu)
1689 *-rom68k)
1692 *-*bug)
1695 *-apple)
1698 *-atari*)
1701 *-wrs)
1710 # Here we handle the case where we know the os, and the CPU type, but not the
1721 cnk*|-aix*)
1775 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
1785 echo "$cpu-$vendor-$os"
1789 # eval: (add-hook 'before-save-hook 'time-stamp)
1790 # time-stamp-start: "timestamp='"
1791 # time-stamp-format: "%:y-%02m-%02d"
1792 # time-stamp-end: "'"