|
1 | 1 | #! /bin/sh |
2 | 2 | # Configuration validation subroutine script. |
3 | | -# Copyright 1992-2023 Free Software Foundation, Inc. |
| 3 | +# Copyright 1992-2024 Free Software Foundation, Inc. |
4 | 4 |
|
5 | 5 | # shellcheck disable=SC2006,SC2268 # see below for rationale |
6 | 6 |
|
7 | | -timestamp='2023-09-19' |
| 7 | +timestamp='2024-01-01' |
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 | 76 | version="\ |
77 | 77 | GNU config.sub ($timestamp) |
78 | 78 |
|
79 | | -Copyright 1992-2023 Free Software Foundation, Inc. |
| 79 | +Copyright 1992-2024 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." |
@@ -1222,6 +1222,7 @@ case $cpu-$vendor in |
1222 | 1222 | | moxie \ |
1223 | 1223 | | mt \ |
1224 | 1224 | | msp430 \ |
| 1225 | + | nanomips* \ |
1225 | 1226 | | nds32 | nds32le | nds32be \ |
1226 | 1227 | | nfp \ |
1227 | 1228 | | nios | nios2 | nios2eb | nios2el \ |
@@ -1253,6 +1254,7 @@ case $cpu-$vendor in |
1253 | 1254 | | ubicom32 \ |
1254 | 1255 | | v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \ |
1255 | 1256 | | vax \ |
| 1257 | + | vc4 \ |
1256 | 1258 | | visium \ |
1257 | 1259 | | w65 \ |
1258 | 1260 | | wasm32 | wasm64 \ |
@@ -1597,7 +1599,7 @@ case $cpu-$vendor in |
1597 | 1599 | os= |
1598 | 1600 | obj=elf |
1599 | 1601 | ;; |
1600 | | - mips*-*) |
| 1602 | + mips*-*|nanomips*-*) |
1601 | 1603 | os= |
1602 | 1604 | obj=elf |
1603 | 1605 | ;; |
|
1721 | 1723 |
|
1722 | 1724 | case $os in |
1723 | 1725 | # Sometimes we do "kernel-libc", so those need to count as OSes. |
1724 | | - musl* | newlib* | relibc* | uclibc*) |
| 1726 | + llvm* | musl* | newlib* | relibc* | uclibc*) |
1725 | 1727 | ;; |
1726 | 1728 | # Likewise for "kernel-abi" |
1727 | 1729 | eabi* | gnueabi*) |
@@ -1766,12 +1768,19 @@ case $os in |
1766 | 1768 | | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ |
1767 | 1769 | | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ |
1768 | 1770 | | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \ |
1769 | | - | fiwix* | mlibc* | cos* | mbr* ) |
| 1771 | + | fiwix* | mlibc* | cos* | mbr* | ironclad* ) |
1770 | 1772 | ;; |
1771 | 1773 | # This one is extra strict with allowed versions |
1772 | 1774 | sco3.2v2 | sco3.2v[4-9]* | sco5v6*) |
1773 | 1775 | # Don't forget version if it is 3.2v4 or newer. |
1774 | 1776 | ;; |
| 1777 | + # This refers to builds using the UEFI calling convention |
| 1778 | + # (which depends on the architecture) and PE file format. |
| 1779 | + # Note that this is both a different calling convention and |
| 1780 | + # different file format than that of GNU-EFI |
| 1781 | + # (x86_64-w64-mingw32). |
| 1782 | + uefi) |
| 1783 | + ;; |
1775 | 1784 | none) |
1776 | 1785 | ;; |
1777 | 1786 | kernel* | msvc* ) |
@@ -1818,16 +1827,18 @@ esac |
1818 | 1827 | # As a final step for OS-related things, validate the OS-kernel combination |
1819 | 1828 | # (given a valid OS), if there is a kernel. |
1820 | 1829 | case $kernel-$os-$obj in |
1821 | | - linux-gnu*- | linux-dietlibc*- | linux-android*- | linux-newlib*- \ |
1822 | | - | linux-musl*- | linux-relibc*- | linux-uclibc*- | linux-mlibc*- ) |
| 1830 | + linux-gnu*- | linux-android*- | linux-dietlibc*- | linux-llvm*- \ |
| 1831 | + | linux-mlibc*- | linux-musl*- | linux-newlib*- \ |
| 1832 | + | linux-relibc*- | linux-uclibc*- ) |
1823 | 1833 | ;; |
1824 | 1834 | uclinux-uclibc*- ) |
1825 | 1835 | ;; |
1826 | 1836 | managarm-mlibc*- | managarm-kernel*- ) |
1827 | 1837 | ;; |
1828 | 1838 | windows*-msvc*-) |
1829 | 1839 | ;; |
1830 | | - -dietlibc*- | -newlib*- | -musl*- | -relibc*- | -uclibc*- | -mlibc*- ) |
| 1840 | + -dietlibc*- | -llvm*- | -mlibc*- | -musl*- | -newlib*- | -relibc*- \ |
| 1841 | + | -uclibc*- ) |
1831 | 1842 | # These are just libc implementations, not actual OSes, and thus |
1832 | 1843 | # require a kernel. |
1833 | 1844 | echo "Invalid configuration '$1': libc '$os' needs explicit kernel." 1>&2 |
|
0 commit comments