|  | 
| 1 | 1 | #! /bin/sh | 
| 2 | 2 | # Configuration validation subroutine script. | 
| 3 |  | -#   Copyright 1992-2024 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 |  | -# Patched 2024-02-03 to include support for arm64_32 and iOS/tvOS/watchOS simulators | 
| 8 |  | -timestamp='2024-01-01' | 
|  | 7 | +timestamp='2023-09-19' | 
| 9 | 8 | 
 | 
| 10 | 9 | # This file is free software; you can redistribute it and/or modify it | 
| 11 | 10 | # under the terms of the GNU General Public License as published by | 
|  | 
| 77 | 76 | version="\ | 
| 78 | 77 | GNU config.sub ($timestamp) | 
| 79 | 78 | 
 | 
| 80 |  | -Copyright 1992-2024 Free Software Foundation, Inc. | 
|  | 79 | +Copyright 1992-2023 Free Software Foundation, Inc. | 
| 81 | 80 | 
 | 
| 82 | 81 | This is free software; see the source for copying conditions.  There is NO | 
| 83 | 82 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | 
| @@ -1128,7 +1127,7 @@ case $cpu-$vendor in | 
| 1128 | 1127 | 	xscale-* | xscalee[bl]-*) | 
| 1129 | 1128 | 		cpu=`echo "$cpu" | sed 's/^xscale/arm/'` | 
| 1130 | 1129 | 		;; | 
| 1131 |  | -	arm64-* | aarch64le-* | arm64_32-*) | 
|  | 1130 | +	arm64-* | aarch64le-*) | 
| 1132 | 1131 | 		cpu=aarch64 | 
| 1133 | 1132 | 		;; | 
| 1134 | 1133 | 
 | 
| @@ -1223,7 +1222,6 @@ case $cpu-$vendor in | 
| 1223 | 1222 | 			| moxie \ | 
| 1224 | 1223 | 			| mt \ | 
| 1225 | 1224 | 			| msp430 \ | 
| 1226 |  | -			| nanomips* \ | 
| 1227 | 1225 | 			| nds32 | nds32le | nds32be \ | 
| 1228 | 1226 | 			| nfp \ | 
| 1229 | 1227 | 			| nios | nios2 | nios2eb | nios2el \ | 
| @@ -1255,7 +1253,6 @@ case $cpu-$vendor in | 
| 1255 | 1253 | 			| ubicom32 \ | 
| 1256 | 1254 | 			| v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \ | 
| 1257 | 1255 | 			| vax \ | 
| 1258 |  | -			| vc4 \ | 
| 1259 | 1256 | 			| visium \ | 
| 1260 | 1257 | 			| w65 \ | 
| 1261 | 1258 | 			| wasm32 | wasm64 \ | 
| @@ -1600,7 +1597,7 @@ case $cpu-$vendor in | 
| 1600 | 1597 | 		os= | 
| 1601 | 1598 | 		obj=elf | 
| 1602 | 1599 | 		;; | 
| 1603 |  | -	mips*-*|nanomips*-*) | 
|  | 1600 | +	mips*-*) | 
| 1604 | 1601 | 		os= | 
| 1605 | 1602 | 		obj=elf | 
| 1606 | 1603 | 		;; | 
|  | 
| 1724 | 1721 | 
 | 
| 1725 | 1722 | case $os in | 
| 1726 | 1723 | 	# Sometimes we do "kernel-libc", so those need to count as OSes. | 
| 1727 |  | -	llvm* | musl* | newlib* | relibc* | uclibc*) | 
|  | 1724 | +	musl* | newlib* | relibc* | uclibc*) | 
| 1728 | 1725 | 		;; | 
| 1729 | 1726 | 	# Likewise for "kernel-abi" | 
| 1730 | 1727 | 	eabi* | gnueabi*) | 
| @@ -1769,19 +1766,12 @@ case $os in | 
| 1769 | 1766 | 	     | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ | 
| 1770 | 1767 | 	     | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ | 
| 1771 | 1768 | 	     | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \ | 
| 1772 |  | -	     | fiwix* | mlibc* | cos* | mbr* | ironclad* ) | 
|  | 1769 | +	     | fiwix* | mlibc* | cos* | mbr* ) | 
| 1773 | 1770 | 		;; | 
| 1774 | 1771 | 	# This one is extra strict with allowed versions | 
| 1775 | 1772 | 	sco3.2v2 | sco3.2v[4-9]* | sco5v6*) | 
| 1776 | 1773 | 		# Don't forget version if it is 3.2v4 or newer. | 
| 1777 | 1774 | 		;; | 
| 1778 |  | -	# This refers to builds using the UEFI calling convention | 
| 1779 |  | -	# (which depends on the architecture) and PE file format. | 
| 1780 |  | -	# Note that this is both a different calling convention and | 
| 1781 |  | -	# different file format than that of GNU-EFI | 
| 1782 |  | -	# (x86_64-w64-mingw32). | 
| 1783 |  | -	uefi) | 
| 1784 |  | -		;; | 
| 1785 | 1775 | 	none) | 
| 1786 | 1776 | 		;; | 
| 1787 | 1777 | 	kernel* | msvc* ) | 
| @@ -1828,18 +1818,16 @@ esac | 
| 1828 | 1818 | # As a final step for OS-related things, validate the OS-kernel combination | 
| 1829 | 1819 | # (given a valid OS), if there is a kernel. | 
| 1830 | 1820 | case $kernel-$os-$obj in | 
| 1831 |  | -	linux-gnu*- | linux-android*- | linux-dietlibc*- | linux-llvm*- \ | 
| 1832 |  | -		    | linux-mlibc*- | linux-musl*- | linux-newlib*- \ | 
| 1833 |  | -		    | linux-relibc*- | linux-uclibc*- ) | 
|  | 1821 | +	linux-gnu*- | linux-dietlibc*- | linux-android*- | linux-newlib*- \ | 
|  | 1822 | +		   | linux-musl*- | linux-relibc*- | linux-uclibc*- | linux-mlibc*- ) | 
| 1834 | 1823 | 		;; | 
| 1835 | 1824 | 	uclinux-uclibc*- ) | 
| 1836 | 1825 | 		;; | 
| 1837 | 1826 | 	managarm-mlibc*- | managarm-kernel*- ) | 
| 1838 | 1827 | 		;; | 
| 1839 | 1828 | 	windows*-msvc*-) | 
| 1840 | 1829 | 		;; | 
| 1841 |  | -	-dietlibc*- | -llvm*- | -mlibc*- | -musl*- | -newlib*- | -relibc*- \ | 
| 1842 |  | -		    | -uclibc*- ) | 
|  | 1830 | +	-dietlibc*- | -newlib*- | -musl*- | -relibc*- | -uclibc*- | -mlibc*- ) | 
| 1843 | 1831 | 		# These are just libc implementations, not actual OSes, and thus | 
| 1844 | 1832 | 		# require a kernel. | 
| 1845 | 1833 | 		echo "Invalid configuration '$1': libc '$os' needs explicit kernel." 1>&2 | 
| @@ -1867,8 +1855,6 @@ case $kernel-$os-$obj in | 
| 1867 | 1855 | 		;; | 
| 1868 | 1856 | 	*-eabi*- | *-gnueabi*-) | 
| 1869 | 1857 | 		;; | 
| 1870 |  | -	ios*-simulator- | tvos*-simulator- | watchos*-simulator- ) | 
| 1871 |  | -		;; | 
| 1872 | 1858 | 	none--*) | 
| 1873 | 1859 | 		# None (no kernel, i.e. freestanding / bare metal), | 
| 1874 | 1860 | 		# can be paired with an machine code file format | 
|  | 
0 commit comments