[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] config.sub: add Managarm support
From: |
Dennis Bonke |
Subject: |
[PATCH] config.sub: add Managarm support |
Date: |
Thu, 18 Nov 2021 16:39:55 +0100 |
---
Dear maintainers,
I would like to submit a few new targets to config.sub, namely Managarm.
Managarm is a FOSS microkernel with fully asynchronous I/O and runs
on or has ports in progress for x86_64, aarch64 and risc-v. It can be
found on https://github.com/managarm/managarm. This is my first time
submitting any kind of patch to a GNU project so if there is anything I
forgot in the patchset please let me know so I can fix it.
Kind regards,
Dennis Bonke
Managarm package maintainer
https://managarm.org
config.sub | 11 +++++++++--
testsuite/config-sub.data | 9 +++++++++
2 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/config.sub b/config.sub
index d74fb6d..66a2a40 100755
--- a/config.sub
+++ b/config.sub
@@ -145,7 +145,7 @@ 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*)
+ | storm-chaos* | os2-emx* | rtmk-nova* | managarm-*)
basic_machine=$field1
basic_os=$maybe_os
;;
@@ -1336,6 +1336,10 @@ EOF
kernel=linux
os=`echo "$basic_os" | sed -e 's|linux|gnu|'`
;;
+ managarm*)
+ kernel=managarm
+ os=$(echo $basic_os | sed -e 's|managarm|mlibc|')
+ ;;
*)
kernel=
os=$basic_os
@@ -1748,7 +1752,8 @@ case $os in
| skyos* | haiku* | rdos* | toppers* | drops* | es* \
| onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
| midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
- | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr*)
+ | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr*\
+ | kernel* | mlibc*)
;;
# This one is extra strict with allowed versions
sco3.2v2 | sco3.2v[4-9]* | sco5v6*)
@@ -1770,6 +1775,8 @@ case $kernel-$os in
;;
uclinux-uclibc* )
;;
+ managarm-kernel* | managarm-mlibc* )
+ ;;
-dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* )
# These are just libc implementations, not actual OSes, and thus
# require a kernel.
diff --git a/testsuite/config-sub.data b/testsuite/config-sub.data
index d58521b..5c4b208 100644
--- a/testsuite/config-sub.data
+++ b/testsuite/config-sub.data
@@ -16,6 +16,9 @@ aarch64-bme
aarch64-unknown-bme
aarch64-elf aarch64-unknown-elf
aarch64-genode aarch64-unknown-genode
aarch64-linux aarch64-unknown-linux-gnu
+aarch64-managarm aarch64-unknown-managarm-mlibc
+aarch64-managarm-kernel aarch64-unknown-managarm-kernel
+aarch64-managarm-mlibc aarch64-unknown-managarm-mlibc
aarch64-unknown-elf aarch64-unknown-elf
aarch64-unknown-linux aarch64-unknown-linux-gnu
aarch64-wrs-vxworks aarch64-wrs-vxworks
@@ -615,6 +618,9 @@ riscv-company-elf
riscv-company-elf
riscv-company-hcos riscv-company-hcos
riscv-elf riscv-unknown-elf
riscv-linux riscv-unknown-linux-gnu
+riscv-managarm riscv-unknown-managarm-mlibc
+riscv-managarm-kernel riscv-unknown-managarm-kernel
+riscv-managarm-mlibc riscv-unknown-managarm-mlibc
riscv-twizzler riscv-unknown-twizzler
riscv-zephyr riscv-unknown-zephyr
riscv32 riscv32-unknown-none
@@ -842,6 +848,9 @@ x86_64-fuchsia
x86_64-pc-fuchsia
x86_64-genode x86_64-pc-genode
x86_64-glidix x86_64-pc-glidix
x86_64-linux-relibc x86_64-pc-linux-relibc
+x86_64-managarm x86_64-pc-managarm-mlibc
+x86_64-managarm-kernel x86_64-pc-managarm-kernel
+x86_64-managarm-mlibc x86_64-pc-managarm-mlibc
x86_64-nto x86_64-pc-nto-qnx
x86_64-os108 x86_64-pc-os108
x86_64-pc-ptx x86_64-pc-ptx
--
2.33.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] config.sub: add Managarm support,
Dennis Bonke <=