[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Add KVX MPPA detection
From: |
Paul Iannetta |
Subject: |
Add KVX MPPA detection |
Date: |
Wed, 19 Jul 2023 17:30:30 +0200 |
User-agent: |
NeoMutt/20171215 |
Hi,
We are planning to upstream our toolchain (binutils-gdb, gcc and
newlib), and would like to be properly detected by the autotools.
Below is patch which adds support for the KVX MPPA.
Best regards,
Paul Iannetta
Kalray
--
>From 65c97880ae234aa5f13a4abc41c53e32a978b4c5 Mon Sep 17 00:00:00 2001
From: Paul Iannetta <piannetta@kalray.eu>
Date: Wed, 19 Jul 2023 13:16:47 +0200
Subject: [PATCH] Add KVX MPPA detection
ChangeLog:
2023-07-19 Paul Iannetta <piannetta@kalray.eu>
* config.guess: Detect kvx-linux, kvx-cos, kvx-mbr, kvx-elf and
variants.
* config.sub: Add kvx to cpu-vendor and; cos, and mbr to the os
list.
testsuite/ChangeLog:
2023-07-19 Paul Iannetta <piannetta@kalray.eu>
* testsuite/config-guess.data: Add tests.
* testsuite/config-sub.data: Likewise.
---
config.guess | 9 +++++++++
config.sub | 3 ++-
testsuite/config-guess.data | 3 +++
testsuite/config-sub.data | 8 ++++++++
4 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/config.guess b/config.guess
index 354a8cc..72d2350 100755
--- a/config.guess
+++ b/config.guess
@@ -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
;;
diff --git a/config.sub b/config.sub
index 9865d6e..9a7a3ed 100755
--- a/config.sub
+++ b/config.sub
@@ -1206,6 +1206,7 @@ case $cpu-$vendor in
| i370 | i*86 | i860 | i960 | ia16 | ia64 \
| ip2k | iq2000 \
| k1om \
+ | kvx \
| le32 | le64 \
| lm32 \
| loongarch32 | loongarch64 \
@@ -1759,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*)
diff --git a/testsuite/config-guess.data b/testsuite/config-guess.data
index f02cde4..424bea1 100644
--- a/testsuite/config-guess.data
+++ b/testsuite/config-guess.data
@@ -92,6 +92,9 @@ i86pc | 5.6 | SunOS | ignored | ignored | i386-pc-solaris2.6
i86xen | 5.0 | AuroraUX | ignored | ignored | i386-pc-auroraux5.0
i86xen | 5.6 | SunOS | ignored | ignored | i386-pc-solaris2.6
k1om | 2.6.38 | Linux | ignored | ignored | k1om-unknown-linux-gnu
+kvx | ignored | Linux | ignored | ignored | kvx-unknown-linux-gnu
+kvx | ignored | cos | ignored | ignored | kvx-unknown-cos
+kvx | ignored | mbr | ignored | ignored | kvx-unknown-mbr
loongarch32 | ignored | Linux | ignored | ignored |
loongarch32-unknown-linux-gnu
loongarch64 | ignored | Linux | ignored | ignored |
loongarch64-unknown-linux-gnu
m68k | 12.1 | AROS | ignored | ignored | m68k-unknown-aros
diff --git a/testsuite/config-sub.data b/testsuite/config-sub.data
index bb19dc2..ef7dbd4 100644
--- a/testsuite/config-sub.data
+++ b/testsuite/config-sub.data
@@ -337,6 +337,14 @@ j90-cray j90-cray-unicos
j90-unicos j90-cray-unicos
k1om k1om-unknown-none
k1om-linux k1om-unknown-linux-gnu
+kvx-cos kvx-unknown-cos
+kvx-elf kvx-unknown-elf
+kvx-linux kvx-unknown-linux-gnu
+kvx-linux-gnu kvx-unknown-linux-gnu
+kvx-linux-musl kvx-unknown-linux-musl
+kvx-linux-newlib kvx-unknown-linux-newlib
+kvx-linux-uclibc kvx-unknown-linux-uclibc
+kvx-mbr kvx-unknown-mbr
le32 le32-unknown-none
le32-nacl le32-unknown-nacl
le64 le64-unknown-none
--
2.35.1.500.gb896f729e2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Add KVX MPPA detection,
Paul Iannetta <=