From 1fb7f27af45bc56ba87fd9ad73751fcafb332ee3 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Thu, 14 Mar 2024 12:33:23 -0400 Subject: [PATCH 1/1] hvk: check for .config before compiling --- scripts/hvk-compile.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/hvk-compile.sh b/scripts/hvk-compile.sh index d4105f8..f9076d3 100755 --- a/scripts/hvk-compile.sh +++ b/scripts/hvk-compile.sh @@ -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} -- 2.20.1