Fabrice Fontaine
d7a4dee7cc
* config.sub (uclinux-uclibc*): Fix detection.
...
* testsuite/config-sub.data: Add a test case to avoid regression.
Signed-off-by: Ben Elliston <bje@gnu.org>
2020-09-27 10:41:38 +10:00
Elad Lahav
e072cc210e
* config.sub: Fix regression in QNX recognition.
...
* testsuite/config-sub.data: Add some test cases.
Signed-off-by: Ben Elliston <bje@gnu.org>
2020-09-08 09:26:26 +10:00
Issam E. Maghni
0b5188819b
* config.guess: Replace "if [ EXPR ]" with "if test EXPR".
...
* config.sub: Likewise.
* testsuite/config-guess.sh: Likewise.
* testsuite/config-sub.sh: Likewise.
Signed-off-by: Ben Elliston <bje@gnu.org>
2020-08-17 13:36:41 +10:00
Ben Elliston
b2969c6e71
* config.sub (case $cpu): Whitespace fix.
2020-07-10 16:01:38 +10:00
Keno Fischer
3c20dd431e
* config.sub (arm64-*): Canonicalise to aarch64-*.
...
Signed-off-by: Ben Elliston <bje@gnu.org>
2020-07-10 15:45:29 +10:00
John Ericson
5e531d3918
* config.sub: Properly parse the KERNEL-OS case.
...
I previously refactored config.sub to parse 'basic_machine' into
separate 'cpu' and 'vendor' variables. This is a kindred refactor
where 'basic_os' (a rename of 'os' when used early on) is now parsed
into 'kernel' and 'os'.
Like the previous refactoring, this does make things a bit longer. I
think the change makes the code easier to understand and more robust,
so it is worth the cost of a longer script.
Signed-off-by: Ben Elliston <bje@gnu.org>
2020-06-28 15:32:14 +10:00
John Ericson
62db2b6bd6
* config.sub (s390, s390x): Use 'ibm' vendor default, but allow
...
overrides.
Previously, 'ibm' was forced, which caused problems when someone
wanted to use 'busybox' as a vendor and cross-compile with a slightly
different toolchain. The fix changed behaviour such that without any
vendor, it would use to 'unknown' rather than 'ibm' as before.
This patch aims to compromise between the old and new behaviour by
making 'ibm' a default for those CPUs when no vendor is specified, but
if the user explicitly provides a vendor that is used instead. This
sort of "vendor defaulting" has plenty of precedent in config.sub, so
it seemed like a good approach.
Signed-off-by: Ben Elliston <bje@gnu.org>
2020-06-28 11:28:40 +10:00
John Ericson
2b81440a51
* config.sub: Allow CPU to influence vendor defaulting too.
...
Signed-off-by: Ben Elliston <bje@gnu.org>
2020-06-28 11:21:57 +10:00
John Ericson
60a43fe6f0
* config.sub: Move OS whitelist to the bottom of the case as
...
preparation for future work.
Signed-off-by: Ben Elliston <bje@gnu.org>
2020-06-26 22:26:12 +10:00
Alexander Egorenkov
696cd4a4ea
* config.sub (s390, s390x): Don't set manufacturer.
...
* testsuite/config-sub.data: Add test cases.
Signed-off-by: Ben Elliston <bje@gnu.org>
2020-06-21 10:51:01 +10:00
Carsten Teibes
5c38fa7c66
* config.sub (psp): Recognize.
...
* testsuite/config-sub.data: Add test case.
Signed-off-by: Ben Elliston <bje@air.net.au>
2020-06-18 16:50:55 +10:00
Emery Hemingway
e78c96e528
* config.sub (-genode*): New.
...
* testsuite/config-sub.data: Add test cases.
Signed-off-by: Ben Elliston <bje@air.net.au>
2020-05-04 23:40:51 +10:00
Ben Elliston
b97839f3cc
Reported by Peter Eisentraut:
...
* config.sub (case $os): Append asterisk to 'powerunix'.
2020-04-24 21:17:47 +10:00
Ben Elliston
5256817ace
* config.guess: Update copyright years.
...
* config.sub: Likewise.
* doc/config.guess.1: Regenerate.
* doc/config.sub.1: Likewise.
2020-01-01 19:36:58 +11:00
Daniel Bittman
fadac5a0ed
* config.guess (*:Twizzler:*:*): New.
...
* config.sub (-twizzler*): New.
* testsuite/config-guess.data: Add test cases.
* testsuite/config-sub.data: Ditto.
Signed-off-by: Ben Elliston <bje@gnu.org>
2019-09-12 09:56:40 +10:00
Ben Elliston
d3bfe62ac8
This change introduces a new test to config-sub.sh which runs every
...
config.guess expected triplet through config.sub so that we can check
that it is properly recognised. Sometimes, new triplets have been
added to config.guess without updating config.sub accordingly (eg,
Harris NightHawk machines running PowerUnix from the mid-1990s!)
* config.sub (case $os): Match nsk* and powerunix. Don't later
match nsk* and set os=nsk which removes the OS version number.
* testsuite/config-guess.data: Tweak Unleashed test case.
* testsuite/config-sub.sh (run_config_sub_with_guess_triplets):
New test.
2019-06-30 16:39:33 +10:00
Ben Elliston
854aa79378
* config.sub: Recognise os108*.
...
* testsuite/config-sub.data: Add a test case.
2019-06-30 10:02:45 +10:00
Ben Elliston
717418e698
* testsuite/config-sub.data: Many more missing test cases.
...
* config.sub (hp300): Set $os to hpux.
nb: The config.sub bug was found after writing hp300 test cases.
2019-06-26 13:29:37 +10:00
Ben Elliston
ec599a537a
* config.sub (vsta): Move into alphabetical order.
2019-06-26 10:36:39 +10:00
Jose E. Marchesi
55eaf3e779
* config.sub (bpf): Recognise.
...
* testsuite/config-sub.data: Add test cases.
Signed-off-by: Ben Elliston <bje@gnu.org>
2019-05-23 11:27:51 +10:00
John Ericson
a8d79c3130
* config.sub (wasm64, wasi): Recognise.
...
* testsuite/config-sub.data: Add test cases for wasm (Web Assembly) and
wasi (Web Assembly System Interface).
Signed-off-by: Ben Elliston <bje@gnu.org>
2019-04-15 08:57:26 +10:00
Urs Janßen
d495b0fc6b
* config.sub: Recognize m68k-next-openstep* as openstep*, not
...
nextstep3.
* testsuite/config-sub.data: Add test cases.
Signed-off-by: Ben Elliston <bje@gnu.org>
2019-03-29 08:31:13 +11:00
Ben Elliston
b0cc4c6f78
* config.sub (shl): Recognise.
...
* testsuite/config-sub.data: Add a test case.
2019-01-05 00:19:05 +11:00
Ben Elliston
da03f82a82
* config.sub: Move v70, w65 and others into sort order.
2019-01-05 00:18:03 +11:00
Ben Elliston
210e50d643
* config.sub (mips64eb): Recognise.
...
* testsuite/config-sub.data: Add a test case for mips64eb.
2019-01-04 17:21:13 +11:00
Ben Elliston
c9fa258d05
Fix space before tab.
2019-01-04 06:38:07 +11:00
Ben Elliston
a2e10dfcf0
Disable Shellcheck warning SC2162 ("read without -r with mangle
...
backslashes") in two places. We can't easily resolve these.
2019-01-03 12:02:57 +11:00
Ben Elliston
c701dfb820
* config.guess: Update copyright years.
...
* config.sub: Likewise.
* doc/config.guess.1: Regenerate.
* doc/config.sub.1: Likewise.
2019-01-01 08:15:34 +11:00
Keno Fischer
b3914f8d55
* config.sub (*-emscripten): Recognise.
...
* testsute/config-sub.data: Add test cases.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-12-31 14:18:43 +11:00
Ben Elliston
9764df548d
Revert 2018-05-05 change.
...
* config.sub: Don't pass the -r option to 'read'. Solaris 10 sh
does not support -r.
2018-12-16 22:42:25 +11:00
Ben Elliston
058639be22
Bump timestamps.
2018-11-28 20:38:51 +11:00
Lauri Tirkkonen
dbd9d383bd
* config.guess (*:Unleashed:*:*): New.
...
* config.sub (unleashed*): New.
* testsuite/config-sub.data: Add a test case.
* testsuite/config-guess.data: Likewise.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-11-26 22:04:32 +11:00
Andrew Stubbs
7e97ab3987
* config.sub (amdgnu-amdhsa): Recognise.
...
* testsuite/config-sub.data: Test amdgcn-amdhsa.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-11-20 09:18:57 +11:00
Peter Kokot
653fbad91c
* config.sub: Direct diagnostic output to standard error.
...
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-10-20 20:34:28 +11:00
Urs Janßen
1c9a125dd0
* config.sub: Fix comment typos.
...
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-10-17 10:38:21 +11:00
Ben Elliston
ceeb0d9e0f
Bump timestamp.
2018-08-29 14:41:46 +10:00
John Ericson
d300aa0a31
* config.sub: Parse basic_machine into cpu and vendor. This adds
...
more lines, but makes a bunch of code simpler and easier to read.
sed(1) is used a lot less, for example.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-28 10:06:03 +10:00
John Ericson
a6387dca6b
* config.sub: More deduplication and organize more basic machines.
...
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-28 10:04:02 +10:00
John Ericson
fc14426403
* config.sub: Deduplicate and organize more basic machines.
...
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-28 09:59:08 +10:00
John Ericson
5948bb17e1
* config.sub: Remove redundant patterns from second `case
...
$basic_machine in`. The second case only needs to handle patterns
of the form *-*. We can drop some patterns without a change in
functionality.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-28 09:46:35 +10:00
John Ericson
fc12b1e453
* config.sub: Remove duplicates in the huge `case basic_machine
...
in` arms. These patterns whitelist canonical CPU types that are
allowed with any vendor. The former arm accepts a provided vendor,
and the latter arm defaults a vendor when none is provided. Split
`case $basic_machine in` in to two, and then pre-default the
missing vendor so that only the explicit-vendor rules are needed.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-28 09:42:04 +10:00
Ben Elliston
b8ee5f7994
From Justin Hibbits:
...
* config.sub (powerpcspe, powerpcspe-*): New.
* testsuite/config-sub.data: Add test cases.
2018-08-24 20:54:40 +10:00
John Ericson
8ecdc3a878
* config.sub: Consolidate *-pc handling.
...
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-24 20:41:12 +10:00
John Ericson
478579434f
* config.sub (cr16-*): Do not clobber vendor.
...
* testsuite/config-sub.data (cr16-random-elf): Adjust test case.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-24 20:36:55 +10:00
John Ericson
ddf4d5ca18
* config.sub: Consolidate some *-* patterns above big patterns.
...
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-24 20:32:50 +10:00
John Ericson
ebd65bf58a
* config.sub: Finish moving big patterns to the bottom.
...
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-23 18:35:40 +10:00
John Ericson
890df4376b
* config.sub: Move the big patterns to the bottom in preparation
...
for de-duplication. It causes Shellcheck to see more overlapping
patterns. Fix miscellaneous problems identified by Shellcheck.
* testsuite/config-sub.data: Adjust tests.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-20 17:36:53 +10:00
John Ericson
588e779320
* config.sub (sequent): Make this a one-component alias.
...
* testsuite/config-sub.data (sequent-ptx): Adjust test case.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-14 10:11:14 +10:00
John Ericson
7397e860d9
* config.sub: Move some erroneous foo-* aliases to be single
...
component aliases.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-14 10:07:33 +10:00
John Ericson
b06a862db4
* config.sub: Make a few basic_machines short-hands only.
...
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-13 14:28:54 +10:00