Recently RISC-V community got patches big-endian support for binutils, and we'd like to accept that, however before accept 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. --- config.guess | 4 ++-- config.sub | 4 ++-- doc/config.guess.1 | 2 +- doc/config.sub.1 | 2 +- testsuite/config-guess.data | 2 ++ testsuite/config-sub.data | 11 +++++++++++ 6 files changed, 19 insertions(+), 6 deletions(-) diff --git a/config.guess b/config.guess index 7f74817..0a54737 100755 --- a/config.guess +++ b/config.guess @@ -2,7 +2,7 @@ # Attempt to guess a canonical system name. # Copyright 1992-2020 Free Software Foundation, Inc. -timestamp='2020-12-22' +timestamp='2020-12-31' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -1087,7 +1087,7 @@ EOF ppcle:Linux:*:*) echo powerpcle-unknown-linux-"$LIBC" exit ;; - riscv32:Linux:*:* | riscv64:Linux:*:*) + riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; s390:Linux:*:* | s390x:Linux:*:*) diff --git a/config.sub b/config.sub index 90bb8ae..4a91594 100755 --- a/config.sub +++ b/config.sub @@ -2,7 +2,7 @@ # Configuration validation subroutine script. # Copyright 1992-2020 Free Software Foundation, Inc. -timestamp='2020-12-22' +timestamp='2020-12-31' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -1230,7 +1230,7 @@ case $cpu-$vendor in | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \ | pru \ | pyramid \ - | riscv | riscv32 | riscv64 \ + | riscv | riscv32 | riscv32be | riscv64 | riscv64be \ | rl78 | romp | rs6000 | rx \ | s390 | s390x \ | score \ diff --git a/doc/config.guess.1 b/doc/config.guess.1 index cefa32b..d859714 100644 --- a/doc/config.guess.1 +++ b/doc/config.guess.1 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16. -.TH CONFIG.GUESS "1" "December 2020" "GNU config.guess (2020-12-22)" "User Commands" +.TH CONFIG.GUESS "1" "December 2020" "GNU config.guess (2020-12-31)" "User Commands" .SH NAME config.guess \- guess the build system triplet .SH SYNOPSIS diff --git a/doc/config.sub.1 b/doc/config.sub.1 index 6727b93..b559c34 100644 --- a/doc/config.sub.1 +++ b/doc/config.sub.1 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16. -.TH CONFIG.SUB "1" "December 2020" "GNU config.sub (2020-12-22)" "User Commands" +.TH CONFIG.SUB "1" "December 2020" "GNU config.sub (2020-12-31)" "User Commands" .SH NAME config.sub \- validate and canonicalize a configuration triplet .SH SYNOPSIS diff --git a/testsuite/config-guess.data b/testsuite/config-guess.data index 7ea8766..155e9ce 100644 --- a/testsuite/config-guess.data +++ b/testsuite/config-guess.data @@ -104,6 +104,8 @@ ppc64le | 3.1.0 | Linux | ignored | ignored | powerpc64le-unknown-linux-gnu riscv | 1.0 | Twizzler | ignored | ignored | riscv-unknown-twizzler riscv32 | ignored | Linux | ignored | ignored | riscv32-unknown-linux-gnu riscv64 | ignored | Linux | ignored | ignored | riscv64-unknown-linux-gnu +riscv32be | ignored | Linux | ignored | ignored | riscv32be-unknown-linux-gnu +riscv64be | ignored | Linux | ignored | ignored | riscv64be-unknown-linux-gnu s390x | 5.6 | SunOS | ignored | ignored | s390x-ibm-solaris2.6 sun3 | 4.0 | SunOS | ignored | ignored | m68k-sun-sunos4.0 sun4 | 5.6 | SunOS | ignored | ignored | sparc-sun-solaris2.6 diff --git a/testsuite/config-sub.data b/testsuite/config-sub.data index 5dd9b8e..a6fd557 100644 --- a/testsuite/config-sub.data +++ b/testsuite/config-sub.data @@ -588,6 +588,17 @@ riscv64-company-elf riscv64-company-elf riscv64-elf riscv64-unknown-elf riscv64-hcos riscv64-unknown-hcos riscv64-linux riscv64-unknown-linux-gnu +riscv32be riscv32be-unknown-none +riscv32be-company-elf riscv32be-company-elf +riscv32be-company-hcos riscv32be-company-hcos +riscv32be-elf riscv32be-unknown-elf +riscv32be-linux riscv32be-unknown-linux-gnu +riscv64be riscv64be-unknown-none +riscv64be-company-elf riscv64be-company-elf +riscv64be-elf riscv64be-unknown-elf +riscv64be-hcos riscv64be-unknown-hcos +riscv64be-linux riscv64be-unknown-linux-gnu +riscv64be-company-linux riscv64be-company-linux-gnu rl78 rl78-unknown-none rl78-linux rl78-unknown-linux-gnu roadrunner i386-sun-sunos4.0.2 -- 2.29.2