From 83a953febd1961dc8f09b405c69f24abbc37825d Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Tue, 13 Sep 2022 07:27:46 +0200 Subject: [PATCH] add riscv64 check --- usr/lib/archboot/common.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/usr/lib/archboot/common.sh b/usr/lib/archboot/common.sh index 44a74b7e4..890ea8ec2 100644 --- a/usr/lib/archboot/common.sh +++ b/usr/lib/archboot/common.sh @@ -37,6 +37,14 @@ _aarch64_check() { fi } +### check for aarch64 +_riscv64_check() { + if ! [[ "${_RUNNING_ARCH}" == "riscv64" ]]; then + echo "ERROR: Please run on riscv64 hardware." + exit 1 + fi +} + ### check for tpowa's build server _buildserver_check() { if [[ ! "$(cat /etc/hostname)" == "T-POWA-LX" ]]; then