[7/7] kvx: Add toplevel files.
Checks
Commit Message
ChangeLog:
2023-07-20 Paul Iannetta <piannetta@kalrayinc.com>
* config.guess: Add kvx support.
* config.sub: Likewise.
* configure: Likewise.
* configure.ac: Likewise.
---
config.guess | 9 +++++++++
config.sub | 16 ++++++++++++----
configure | 12 ++++++++++++
configure.ac | 12 ++++++++++++
4 files changed, 45 insertions(+), 4 deletions(-)
@@ -1042,6 +1042,15 @@ EOF
k1om:Linux:*:*)
GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
;;
+ kvx:Linux:*:*)
+ GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
+ ;;
+ kvx:cos:*:*)
+ GUESS=$UNAME_MACHINE-unknown-cos
+ ;;
+ kvx:mbr:*:*)
+ GUESS=$UNAME_MACHINE-unknown-mbr
+ ;;
loongarch32:Linux:*:* | loongarch64:Linux:*:*)
GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
;;
@@ -4,7 +4,7 @@
# shellcheck disable=SC2006,SC2268 # see below for rationale
-timestamp='2023-06-23'
+timestamp='2023-06-26'
# 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
@@ -145,7 +145,8 @@ case $1 in
nto-qnx* | linux-* | uclinux-uclibc* \
| uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
| netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
- | storm-chaos* | os2-emx* | rtmk-nova* | managarm-*)
+ | storm-chaos* | os2-emx* | rtmk-nova* | managarm-* \
+ | windows-* )
basic_machine=$field1
basic_os=$maybe_os
;;
@@ -1205,6 +1206,7 @@ case $cpu-$vendor in
| i370 | i*86 | i860 | i960 | ia16 | ia64 \
| ip2k | iq2000 \
| k1om \
+ | kvx \
| le32 | le64 \
| lm32 \
| loongarch32 | loongarch64 \
@@ -1758,7 +1760,7 @@ case $os in
| onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
| midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
| nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \
- | fiwix* | mlibc* )
+ | fiwix* | mlibc* | cos* | mbr* )
;;
# This one is extra strict with allowed versions
sco3.2v2 | sco3.2v[4-9]* | sco5v6*)
@@ -1766,7 +1768,7 @@ case $os in
;;
none)
;;
- kernel* )
+ kernel* | msvc* )
# Restricted further below
;;
*)
@@ -1785,6 +1787,8 @@ case $kernel-$os in
;;
managarm-mlibc* | managarm-kernel* )
;;
+ windows*-gnu* | windows*-msvc*)
+ ;;
-dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* | -mlibc* )
# These are just libc implementations, not actual OSes, and thus
# require a kernel.
@@ -1799,6 +1803,10 @@ case $kernel-$os in
echo "Invalid configuration '$1': '$kernel' does not support '$os'." 1>&2
exit 1
;;
+ *-msvc* )
+ echo "Invalid configuration '$1': '$os' needs 'windows'." 1>&2
+ exit 1
+ ;;
kfreebsd*-gnu* | kopensolaris*-gnu*)
;;
vxworks-simlinux | vxworks-simwindows | vxworks-spe)
@@ -3702,6 +3702,15 @@ case "${target}" in
cris-*-* | crisv32-*-*)
libgloss_dir=cris
;;
+ kvx-*-elf)
+ libgloss_dir=kvx-elf
+ ;;
+ kvx-*-mbr)
+ libgloss_dir=kvx-mbr
+ ;;
+ kvx-*-cos)
+ libgloss_dir=kvx-cos
+ ;;
hppa*-*-*)
libgloss_dir=pa
;;
@@ -3996,6 +4005,9 @@ case "${target}" in
i[3456789]86-*-rdos*)
noconfigdirs="$noconfigdirs gdb"
;;
+ kvx-*-*)
+ noconfigdirs="$noconfigdirs gdb sim"
+ ;;
mmix-*-*)
noconfigdirs="$noconfigdirs gdb"
;;
@@ -935,6 +935,15 @@ case "${target}" in
cris-*-* | crisv32-*-*)
libgloss_dir=cris
;;
+ kvx-*-elf)
+ libgloss_dir=kvx-elf
+ ;;
+ kvx-*-mbr)
+ libgloss_dir=kvx-mbr
+ ;;
+ kvx-*-cos)
+ libgloss_dir=kvx-cos
+ ;;
hppa*-*-*)
libgloss_dir=pa
;;
@@ -1229,6 +1238,9 @@ case "${target}" in
i[[3456789]]86-*-rdos*)
noconfigdirs="$noconfigdirs gdb"
;;
+ kvx-*-*)
+ noconfigdirs="$noconfigdirs gdb sim"
+ ;;
mmix-*-*)
noconfigdirs="$noconfigdirs gdb"
;;