1
1
#! /bin/sh
2
2
# Configuration validation subroutine script.
3
- # Copyright 1992-2022 Free Software Foundation, Inc.
3
+ # Copyright 1992-2023 Free Software Foundation, Inc.
4
4
5
5
# shellcheck disable=SC2006,SC2268 # see below for rationale
6
6
7
- timestamp=' 2022 -01-03 '
7
+ timestamp=' 2023 -01-21 '
8
8
9
9
# This file is free software; you can redistribute it and/or modify it
10
10
# under the terms of the GNU General Public License as published by
@@ -76,7 +76,7 @@ Report bugs and patches to <config-patches@gnu.org>."
76
76
version=" \
77
77
GNU config.sub ($timestamp )
78
78
79
- Copyright 1992-2022 Free Software Foundation, Inc.
79
+ Copyright 1992-2023 Free Software Foundation, Inc.
80
80
81
81
This is free software; see the source for copying conditions. There is NO
82
82
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -145,7 +145,7 @@ case $1 in
145
145
nto-qnx* | linux-* | uclinux-uclibc* \
146
146
| uclinux-gnu* | kfreebsd* -gnu* | knetbsd* -gnu* | netbsd* -gnu* \
147
147
| netbsd* -eabi* | kopensolaris* -gnu* | cloudabi* -eabi* \
148
- | storm-chaos* | os2-emx* | rtmk-nova* )
148
+ | storm-chaos* | os2-emx* | rtmk-nova* | managarm- * )
149
149
basic_machine=$field1
150
150
basic_os=$maybe_os
151
151
;;
@@ -1075,7 +1075,7 @@ case $cpu-$vendor in
1075
1075
pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-* )
1076
1076
cpu=i586
1077
1077
;;
1078
- pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_ * -* )
1078
+ pentiumpro-* | p6-* | 6x86-* | athlon-* | athlon_ * -* )
1079
1079
cpu=i686
1080
1080
;;
1081
1081
pentiumii-* | pentium2-* | pentiumiii-* | pentium3-* )
@@ -1207,7 +1207,7 @@ case $cpu-$vendor in
1207
1207
| k1om \
1208
1208
| le32 | le64 \
1209
1209
| lm32 \
1210
- | loongarch32 | loongarch64 | loongarchx32 \
1210
+ | loongarch32 | loongarch64 \
1211
1211
| m32c | m32r | m32rle \
1212
1212
| m5200 | m68000 | m680[012346]0 | m68360 | m683? 2 | m68k \
1213
1213
| m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \
@@ -1341,6 +1341,10 @@ EOF
1341
1341
kernel=linux
1342
1342
os=` echo " $basic_os " | sed -e ' s|linux|gnu|' `
1343
1343
;;
1344
+ managarm* )
1345
+ kernel=managarm
1346
+ os=` echo " $basic_os " | sed -e ' s|managarm|mlibc|' `
1347
+ ;;
1344
1348
* )
1345
1349
kernel=
1346
1350
os=$basic_os
@@ -1754,14 +1758,17 @@ case $os in
1754
1758
| onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
1755
1759
| midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
1756
1760
| nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \
1757
- | fiwix* )
1761
+ | fiwix* | mlibc * )
1758
1762
;;
1759
1763
# This one is extra strict with allowed versions
1760
1764
sco3.2v2 | sco3.2v[4-9]* | sco5v6* )
1761
1765
# Don't forget version if it is 3.2v4 or newer.
1762
1766
;;
1763
1767
none)
1764
1768
;;
1769
+ kernel* )
1770
+ # Restricted further below
1771
+ ;;
1765
1772
* )
1766
1773
echo Invalid configuration \` " $1 " \' : OS \` " $os " \' not recognized 1>&2
1767
1774
exit 1
@@ -1772,16 +1779,26 @@ esac
1772
1779
# (given a valid OS), if there is a kernel.
1773
1780
case $kernel -$os in
1774
1781
linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* \
1775
- | linux-musl* | linux-relibc* | linux-uclibc* )
1782
+ | linux-musl* | linux-relibc* | linux-uclibc* | linux-mlibc * )
1776
1783
;;
1777
1784
uclinux-uclibc* )
1778
1785
;;
1779
- -dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* )
1786
+ managarm-mlibc* | managarm-kernel* )
1787
+ ;;
1788
+ -dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* | -mlibc* )
1780
1789
# These are just libc implementations, not actual OSes, and thus
1781
1790
# require a kernel.
1782
1791
echo " Invalid configuration \` $1 ': libc \` $os ' needs explicit kernel." 1>&2
1783
1792
exit 1
1784
1793
;;
1794
+ -kernel* )
1795
+ echo " Invalid configuration \` $1 ': \` $os ' needs explicit kernel." 1>&2
1796
+ exit 1
1797
+ ;;
1798
+ * -kernel* )
1799
+ echo " Invalid configuration \` $1 ': \` $kernel ' does not support \` $os '." 1>&2
1800
+ exit 1
1801
+ ;;
1785
1802
kfreebsd* -gnu* | kopensolaris* -gnu* )
1786
1803
;;
1787
1804
vxworks-simlinux | vxworks-simwindows | vxworks-spe)
0 commit comments