From 1df455d2f6ddfa01883c26f632ba7d1d6d03d38c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Blizi=C5=84ski?= Date: Thu, 10 Jul 2025 17:47:29 +0100 Subject: [PATCH] When kernel module build fails, stop. Handling a specific error message is easier than wondering why the kernel module is missing: did I miss a step, or did something fail? --- build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 8f14b2b..b80cd6d 100755 --- a/build.sh +++ b/build.sh @@ -7,6 +7,11 @@ #export CC=/usr/bin/clang #export CXX=/usr/bin/clang++ +die() { + echo >&2 "ERROR: $*" + exit 1 +} + TOPDIR=$(pwd) echo "Init git submodules ..." @@ -14,7 +19,7 @@ git submodule update --init --recursive cd 3rdparty/ravenna-alsa-lkm/driver git checkout aes67-daemon -make +make || die "Building the ALSA kernel module failed" cd - cd webui