Hello! This patch add support for recognizing Twizzler as a valid system in config.sub and config.guess.
These files currently require manual patching to get software for Twizzler to compile. I'm planning to release the initial version of Twizzler (https://www.ssrc.ucsc.edu/proj/osnvm.html) in the next 6 months, and since it takes a while for downstream packages to pick up changes here, I figured I should get this patch in asap. I've made modifications to the files based on the way other projects have added support, such that config.guess should return an appropriate system configuration and config.sub will recognize Twizzler correctly during compilation (I have tested this in my porting tree for existing software). Let me know if I need to change / add anything. -Daniel --- ChangeLog | 5 +++++ config.guess | 5 ++++- config.sub | 2 +- testsuite/config-guess.data | 2 ++ testsuite/config-sub.data | 2 ++ 5 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 050dda3..a26eff1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-09-10 Daniel Bittman <danielbittm...@gmail.com> + + * config.guess (*:Twizzler:*:*): New. + * config.sub (-twizzler*): New. + 2019-08-04 Ben Elliston <b...@gnu.org> * testsuite/config-sub.data: Add some old Pentium test cases. diff --git a/config.guess b/config.guess index 97ad073..7f9ebbe 100755 --- a/config.guess +++ b/config.guess @@ -2,7 +2,7 @@ # Attempt to guess a canonical system name. # Copyright 1992-2019 Free Software Foundation, Inc. -timestamp='2019-07-24' +timestamp='2019-09-10' # 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 @@ -274,6 +274,9 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in *:Sortix:*:*) echo "$UNAME_MACHINE"-unknown-sortix exit ;; + *:Twizzler:*:*) + echo "$UNAME_MACHINE"-unknown-twizzler + exit ;; *:Redox:*:*) echo "$UNAME_MACHINE"-unknown-redox exit ;; diff --git a/config.sub b/config.sub index a318a46..0f2234c 100755 --- a/config.sub +++ b/config.sub @@ -1343,7 +1343,7 @@ case $os in | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ | sym* | kopensolaris* | plan9* \ | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \ - | aos* | aros* | cloudabi* | sortix* \ + | aos* | aros* | cloudabi* | sortix* | twizzler* \ | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \ | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \ | knetbsd* | mirbsd* | netbsd* \ diff --git a/testsuite/config-guess.data b/testsuite/config-guess.data index 8d5796a..410f786 100644 --- a/testsuite/config-guess.data +++ b/testsuite/config-guess.data @@ -90,6 +90,7 @@ ppc64 | 2.6.9-22 | Linux | ignored | ignored | powerpc64-unknown-linux-gnu ppc64le | 3.1.0 | Linux | ignored | ignored | powerpc64le-unknown-linux-gnu riscv32 | ignored | Linux | ignored | ignored | riscv32-unknown-linux-gnu riscv64 | ignored | Linux | ignored | ignored | riscv64-unknown-linux-gnu +riscv | 1.0 | Twizzler | ignored | ignored | riscv-unknown-twizzler 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 @@ -111,6 +112,7 @@ x86_64 | 1.0 | MINGW64 | ignored | ignored | x86_64-pc-mingw64 x86_64 | 1.0 | MINGW | ignored | ignored | x86_64-pc-mingw32 x86_64 | 1.0 | Redox | ignored | ignored | x86_64-unknown-redox x86_64 | 1.0 | Sortix | ignored | ignored | x86_64-unknown-sortix +x86_64 | 1.0 | Twizzler | ignored | ignored | x86_64-unknown-twizzler x86_64 | 14.0 | Darwin | ignored | i386 | x86_64-apple-darwin14.0 x86_64 | 1.5.18(0.132/4/2) | CYGWIN_NT-5.2 | ignored | ignored | x86_64-pc-cygwin x86_64 | 2.0.0(0.271/5/3) | MSYS_NT-6.1 | ignored | ignored | x86_64-pc-msys diff --git a/testsuite/config-sub.data b/testsuite/config-sub.data index 5736629..7b7a318 100644 --- a/testsuite/config-sub.data +++ b/testsuite/config-sub.data @@ -568,6 +568,7 @@ riscv-company-elf riscv-company-elf riscv-company-hcos riscv-company-hcos riscv-elf riscv-unknown-elf riscv-linux riscv-unknown-linux-gnu +riscv-twizzler riscv-unknown-twizzler riscv riscv-unknown-none rl78-linux rl78-unknown-linux-gnu rl78 rl78-unknown-none @@ -765,6 +766,7 @@ x86_64-pc-ptx x86_64-pc-ptx x86_64-ptx x86_64-pc-ptx x86_64-redox x86_64-pc-redox x86_64-sortix x86_64-pc-sortix +x86_64-twizzler x86_64-pc-twizzler x86_64-unknown-ptx x86_64-sequent-ptx x86_64-windows x86_64-pc-windows x86 x86-unknown-none -- 2.23.0 _______________________________________________ config-patches mailing list config-patches@gnu.org https://lists.gnu.org/mailman/listinfo/config-patches