hvk: check for .config before compiling
[hvutilities.git] / 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}