hvk: check for .config before compiling
authorHugo Villeneuve <hugo@hugovil.com>
Thu, 14 Mar 2024 16:33:23 +0000 (12:33 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Thu, 14 Mar 2024 16:33:23 +0000 (12:33 -0400)
scripts/hvk-compile.sh

index d4105f8..f9076d3 100755 (executable)
@@ -48,6 +48,12 @@ if [ $# -gt 1 ]; then
     exit 1
 fi
 
+if [ ! -f .config ]; then
+    echo "Missing configuration file .config."
+    echo "Configure your kernel by running 'hvk-init.sh'"
+    exit 1
+fi
+
 KMAKE="${KMAKE} ${warnings_opts}"
 
 ${KMAKE}