diff --git a/Makefile.inc1 b/Makefile.inc1 index 3ce77042cd68..c03c5922a0e0 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -380,6 +380,10 @@ INSTALLKERNEL= ${_kernel} # Builds all kernels defined by BUILDKERNELS. # buildkernel: +.if empty(BUILDKERNELS) + @echo ">>> ERROR: Missing kernel configuration file(s) (${KERNEL})." + @false +.endif @echo @echo "--------------------------------------------------------------" @echo ">>> Rebuilding kernel(s)"