oct612x: Fix confusing compile error when kernel source is not present

Signed-off-by: Russ Meyerriecks <rmeyerriecks@digium.com>
This commit is contained in:
Shaun Ruffell 2013-05-20 17:19:55 -05:00 committed by Russ Meyerriecks
parent 96652d88c6
commit 2b0cca777f
1 changed files with 4 additions and 0 deletions

View File

@ -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: