~ilya-yanok/ubuntu/precise/grub2/fix-for-948716

« back to all changes in this revision

Viewing changes to config.sub

  • Committer: Bazaar Package Importer
  • Author(s): Robert Millan
  • Date: 2009-07-25 19:00:53 UTC
  • mfrom: (1.6.3 upstream)
  • mto: (17.4.13 sid)
  • mto: This revision was merged to the branch mainline in revision 53.
  • Revision ID: james.westby@ubuntu.com-20090725190053-uv3lm6ya3zxs77ep
ImportĀ upstreamĀ versionĀ 1.96+20090725

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Configuration validation subroutine script.
3
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
 
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
 
4
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5
5
#   Free Software Foundation, Inc.
6
6
 
7
 
timestamp='2009-10-07'
 
7
timestamp='2009-01-19'
8
8
 
9
9
# This file is (in principle) common to ALL GNU software.
10
10
# The presence of a machine in this file suggests that SOME GNU software
32
32
 
33
33
 
34
34
# Please send patches to <config-patches@gnu.org>.  Submit a context
35
 
# diff and a properly formatted GNU ChangeLog entry.
 
35
# diff and a properly formatted ChangeLog entry.
36
36
#
37
37
# Configuration subroutine to validate and canonicalize a configuration type.
38
38
# Supply the specified configuration type as an argument.
39
39
# If it is invalid, we print an error message on stderr and exit with code 1.
40
40
# Otherwise, we print the canonical config type on stdout and succeed.
41
41
 
42
 
# You can get the latest version of this script from:
43
 
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
44
 
 
45
42
# This file is supposed to be the same for all GNU packages
46
43
# and recognize all the CPU types, system types and aliases
47
44
# that are meaningful with *any* GNU software.
152
149
        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
153
150
        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
154
151
        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
155
 
        -apple | -axis | -knuth | -cray | -microblaze)
 
152
        -apple | -axis | -knuth | -cray)
156
153
                os=
157
154
                basic_machine=$1
158
155
                ;;
159
 
        -bluegene*)
160
 
                os=-cnk
161
 
                ;;
162
156
        -sim | -cisco | -oki | -wec | -winbond)
163
157
                os=
164
158
                basic_machine=$1
278
272
        | mipsisa64sr71k | mipsisa64sr71kel \
279
273
        | mipstx39 | mipstx39el \
280
274
        | mn10200 | mn10300 \
281
 
        | moxie \
282
275
        | mt \
283
276
        | msp430 \
284
277
        | nios | nios2 \
287
280
        | pdp10 | pdp11 | pj | pjl \
288
281
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
289
282
        | pyramid \
290
 
        | rx \
291
283
        | score \
292
284
        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
293
285
        | sh64 | sh64le \
301
293
        | z8k | z80)
302
294
                basic_machine=$basic_machine-unknown
303
295
                ;;
304
 
        m6811 | m68hc11 | m6812 | m68hc12 | picochip)
 
296
        m6811 | m68hc11 | m6812 | m68hc12)
305
297
                # Motorola 68HC11/12.
306
298
                basic_machine=$basic_machine-unknown
307
299
                os=-none
344
336
        | lm32-* \
345
337
        | m32c-* | m32r-* | m32rle-* \
346
338
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
347
 
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
 
339
        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
348
340
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
349
341
        | mips16-* \
350
342
        | mips64-* | mips64el-* \
372
364
        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
373
365
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
374
366
        | pyramid-* \
375
 
        | romp-* | rs6000-* | rx-* \
 
367
        | romp-* | rs6000-* \
376
368
        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
377
369
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
378
370
        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
454
446
                basic_machine=m68k-apollo
455
447
                os=-bsd
456
448
                ;;
457
 
        aros)
458
 
                basic_machine=i386-pc
459
 
                os=-aros
460
 
                ;;
461
449
        aux)
462
450
                basic_machine=m68k-apple
463
451
                os=-aux
474
462
                basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
475
463
                os=-linux
476
464
                ;;
477
 
        bluegene*)
478
 
                basic_machine=powerpc-ibm
479
 
                os=-cnk
480
 
                ;;
481
465
        c90)
482
466
                basic_machine=c90-cray
483
467
                os=-unicos
730
714
                basic_machine=ns32k-utek
731
715
                os=-sysv
732
716
                ;;
733
 
        microblaze)
734
 
                basic_machine=microblaze-xilinx
735
 
                ;;
736
717
        mingw32)
737
718
                basic_machine=i386-pc
738
719
                os=-mingw32
1274
1255
        # Each alternative MUST END IN A *, to match a version number.
1275
1256
        # -sysv* is not here because it comes later, after sysvr4.
1276
1257
        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1277
 
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
 
1258
              | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1278
1259
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1279
1260
              | -kopensolaris* \
1280
1261
              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1281
 
              | -aos* | -aros* \
 
1262
              | -aos* \
1282
1263
              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1283
1264
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1284
1265
              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1297
1278
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1298
1279
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1299
1280
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1300
 
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
 
1281
              | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1301
1282
        # Remember, each alternative MUST END IN *, to match a version number.
1302
1283
                ;;
1303
1284
        -qnx*)
1627
1608
                        -sunos*)
1628
1609
                                vendor=sun
1629
1610
                                ;;
1630
 
                        -cnk*|-aix*)
 
1611
                        -aix*)
1631
1612
                                vendor=ibm
1632
1613
                                ;;
1633
1614
                        -beos*)