0045dea533
Update copyright years
...
* config.guess: Update copyright years.
* config.sub: Likewise.
* doc/config.guess.1: Regenerate.
* doc/config.sub.1: Likewise.
2021-01-01 08:00:00 +00:00
8e0c6ffd5c
Recognize riscv32be and riscv64be
...
Recently RISC-V community got patches big-endian support for binutils,
and we'd like to accept that, however before accepting that I think it
would be better to upstream config.sub and config.guess change here :)
It's my check result on Ubuntu 18.04:
$ make check
cd testsuite && bash config-guess.sh && rm uname
PASS: config.guess checks (131 tests)
cd testsuite && bash config-sub.sh
PASS: config.sub checks (830 tests)
PASS: config.sub idempotency checks (767 tests)
PASS: config.sub canonicalise each config.guess testcase (131 tests)
* config.guess (riscv32be:Linux:*:*, riscv64be:Linux:*:*): Recognize.
* config.sub (riscv32be, riscv64be): Likewise.
* doc/config.guess.1: Regenerate.
* doc/config.sub.1: Likewise.
* testsuite/config-guess.data: Add test cases for riscv32be, and riscv64be.
* testsuite/config-sub.data (riscv32be, riscv64be): Add test cases.
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org >
2020-12-31 07:27:52 +00:00
c8ddc8472f
Recognize loongarch32, loongarch64, and loongarchx32
...
* config.guess (loongarch32:Linux:*:*, loongarch64:Linux:*:*,
loongarchx32:Linux:*:*): Recognize.
* config.sub (loongarch32, loongarch64, loongarchx32): Likewise.
* doc/config.guess.1: Regenerate.
* doc/config.sub.1: Likewise.
* testsuite/config-guess.data: Add test cases for loongarch32,
loongarch64, and loongarchx32.
* testsuite/config-sub.data (loongarch32, loongarch64, loongarchx32):
Add test cases.
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org >
2020-12-22 08:00:00 +00:00
05734c3b30
testsuite: make config data sorted using "make sort"
...
* Makefile (sort): Add dependencies, sort in C locale using "sort -u".
* testsuite/config-guess.data: Make the data sorted.
* testsuite/config-sub.data: Likewise.
2020-12-22 08:00:00 +00:00
f0f7283240
Generate ChangeLog from git log
...
* ChangeLog: Rename to ChangeLog-old.
* Makefile.am (ChangeLog): New rule.
* .gitignore: New file.
* gitlog-to-changelog: Import from gnulib.
2020-12-22 08:00:00 +00:00
ff53d915ca
doc: regenerate config.guess.1
2020-12-20 08:00:00 +00:00
9bb4e6d7b2
doc: fix typo in config.guess.x
...
Reported-by: "Kyle J. McKay" <mackyle@fastmail.com >
2020-12-20 08:00:00 +00:00
90b8cb42ba
config.sub: recognize thumbv7*
...
* config.sub (thumbv7*): Recognize.
* testsuite/config-sub.data (thumbv7): New test.
Reported-by: Karl Berry <karl@freefriends.org >
Link: https://lists.gnu.org/archive/html/config-patches/2020-12/msg00001.html
2020-12-02 00:10:00 +00:00
888c8e3d5f
Update URLs of the latest version of config.guess and config.sub scripts
...
Prefer cgit URLs over gitweb as the former are usually served faster:
$ time -f %e wget -q 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess '
1.06
$ time -f %e wget -q 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess '
0.73
* config.guess: Prefer cgit URLs over gitweb.
(timestamp): Update.
* config.sub: Likewise.
* doc/config.guess.1: Regenerate.
* doc/config.sub.1: Likewise.
2020-11-19 08:00:00 +00:00
965e90c772
doc: generalize make rules used to generate man pages
...
* doc/config.sub.x: New file.
* Makefile (HELP2MAN): New variable.
(doc/%.1): New rule.
(doc/config.guess.1, doc/config.sub.1): Remove.
2020-11-19 08:00:00 +00:00
f1c1f29968
testsuite: cleanup whitespace issues
...
Fix indentation that uses spaces before tabs, reported by
git diff-index --check --cached 4b825dc642
2020-11-19 08:00:00 +00:00
9aa377c2ed
.gitattributes: specify a custom git merge driver for the ChangeLog file
2020-11-19 08:00:00 +00:00
edcc7bbb5d
config.guess: combine two heuristics to detect musl libc
...
Apparently, this is needed to correctly detect musl libc in different
versions of Alpine Linux.
According to
https://lists.gnu.org/archive/html/config-patches/2020-09/msg00002.html ,
the ldd based check does not work for some old versions of the Alpine Linux,
and, according to
https://lists.gnu.org/archive/html/config-patches/2020-11/msg00002.html ,
the compiler may not be available in a fresh Alpine container.
The ldd based check is essentially the same as the check that was
introduced by commit 3d00f60242
, it is
performed iff the compiler based check could not give a definitive
answer.
Reported-by: Cheng XU <xucheng@me.com >
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org >
2020-11-17 08:00:00 +00:00
77632d92f2
Update timestamps.
2020-11-07 15:46:23 +11:00
95c8d9a294
* config.sub, config.guess: Replace backtick ..
substitutions
...
with POSIX $(..) command substitutions throughout.
* Makefile (shellcheck): Don't exclude message SC2006.
2020-11-07 15:38:19 +11:00
1c43980155
* config.guess (*:NetBSD:*:*): Handle aarch64eb.
...
* testsuite/config-guess.data: Add test cases.
Signed-off-by: Ben Elliston <bje@gnu.org >
2020-10-22 00:05:38 +11:00
664b772118
Fix whitespace problem in config.sub.
2020-10-15 07:24:35 +11:00
74a858549d
* config.sub (i*86-pc-os2-emx): Recognise correctly.
...
* testsuite/config-sub.data: Add OS/2 tests to avoid regressions.
2020-10-13 22:20:55 +11:00
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
4aa554d72b
* config.guess: Don't use 'ldd --version' to determine the presence of
...
musl libc, as this fails on Alpine Linux 3.10.
Signed-off-by: Ben Elliston <bje@gnu.org >
2020-09-20 14:21:00 +10:00
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
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
2593751ef2
* config.guess (arm64:Darwin:*:*): Recognise.
...
* testsuite/config-guess.data: Add a test case.
2020-07-12 18:21:33 +10:00
b2969c6e71
* config.sub (case $cpu): Whitespace fix.
2020-07-10 16:01:38 +10:00
3c20dd431e
* config.sub (arm64-*): Canonicalise to aarch64-*.
...
Signed-off-by: Ben Elliston <bje@gnu.org >
2020-07-10 15:45:29 +10:00
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
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
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
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
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
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
bd1cbeed14
* config.guess (x86_64:Linux:*:*): Detect x32 ABI. This is
...
currently only supported when CC_FOR_BUILD is available, as that
ultimately governs what the native ABI is.
Signed-off-by: Ben Elliston <bje@air.net.au >
2020-06-15 11:48:25 +10:00
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
fb5be05bb0
* config.guess: Instruct the user to send information about their
...
system only if the script they are running has a timestamped year
of less than three years ago.
2020-04-26 13:27:26 +10:00
b97839f3cc
Reported by Peter Eisentraut:
...
* config.sub (case $os): Append asterisk to 'powerunix'.
2020-04-24 21:17:47 +10:00
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
d8d8093d18
Typo fix.
2019-12-21 13:51:39 +11:00
c542caa003
* config.guess (set_cc_for_build): Prevent multiple calls by
...
chechking if $tmp is already set. We can't check CC_FOR_BUILD as
the user may set it externally. Thanks to Torbjörn Granlund for
the bug report.
2019-12-21 13:01:01 +11:00
6f5b719255
* config.guess (alpha:Linux:*:*): Guard against missing
...
/proc/cpuinfo by redirecting standard error to /dev/null.
Signed-off-by: Ben Elliston <bje@gnu.org >
2019-12-21 12:01:43 +11:00
1912ca5041
* testsuite/config-guess.data: Sort.
...
* testsuite/config-sub.data: Likewise.
2019-09-12 20:45:58 +10:00
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
04b07fc6d9
* testsuite/config-sub.data: Add some old Pentium test cases.
2019-08-04 09:38:47 +10:00
afb0b3e1d7
* config.guess (mips:OSF1:*.*): Whitespace cleanup.
2019-07-24 10:16:30 +10:00
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
854aa79378
* config.sub: Recognise os108*.
...
* testsuite/config-sub.data: Add a test case.
2019-06-30 10:02:45 +10:00
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
1854fb9ed1
* testsuite/config-sub.data: Add some missing test cases.
2019-06-26 11:03:58 +10:00
ec599a537a
* config.sub (vsta): Move into alphabetical order.
2019-06-26 10:36:39 +10:00
f83dbaa146
* config.guess (*:OS108:*:*): Recognise new OS.
...
* testsuite/config-guess.data: Add a test case.
2019-06-10 23:36:57 +10:00
6fd2f9bf82
* Makefile (sort): New target.
...
* testsuite/config-guess.data: Sort.
* testsuite/config-sub.data: Likewise.
2019-06-04 09:48:27 +10:00