From 2b0cca777f590a7e07e8e17dd7e18bcac969412f Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Mon, 20 May 2013 17:19:55 -0500 Subject: [PATCH] oct612x: Fix confusing compile error when kernel source is not present Signed-off-by: Russ Meyerriecks --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 0b90ea9..6fddf5f 100644 --- a/Makefile +++ b/Makefile @@ -123,6 +123,10 @@ firmware-loaders: $(MAKE) -C drivers/dahdi/firmware firmware-loaders oct612x-lib: +ifeq (no,$(HAS_KSRC)) + @echo "You do not appear to have the sources for the $(KVERS) kernel installed." + @exit 1 +endif $(MAKE) -C $(KSRC) M='$(PWD)/drivers/dahdi/oct612x' install-include: