From 49b5319387b139ff037ff20fc7070da1582256a4 Mon Sep 17 00:00:00 2001 From: Nikita ROUSSEAU Date: Mon, 8 May 2023 11:30:05 +0200 Subject: [PATCH] Support `cosa build` on RISCV64 This is all we need to unblock `cosa build` on RISCV64. Obviously, this is far from complete support for the platform, but it allows developers to experiment with cosa on that arch. --- src/cmdlib.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cmdlib.sh b/src/cmdlib.sh index f3c6acc0df..059c2b65cf 100755 --- a/src/cmdlib.sh +++ b/src/cmdlib.sh @@ -41,6 +41,8 @@ case $arch in "ppc64le") DEFAULT_TERMINAL="hvc0" ;; "aarch64") DEFAULT_TERMINAL="ttyAMA0" ;; "s390x") DEFAULT_TERMINAL="ttysclp0" ;; + # minimal support; the rest of cosa isn't yet riscv64-aware + "riscv64") DEFAULT_TERMINAL="ttyS0" ;; *) fatal "Architecture ${arch} not supported" esac export DEFAULT_TERMINAL