Makefile: Make sure that $(KVER) and $(KDIR) are set

These variables are needed for building Debian packages.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9496 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2021-08-27 17:58:27 +00:00
parent 27a74601a5
commit d5cee6ebf4

View File

@@ -35,6 +35,11 @@ ifdef KDIR
cat $(KDIR)/include/config/kernel.release 2>/dev/null || \
make -s -C $(KDIR) kernelversion))
endif
else
ifndef KVER
KVER=$(strip $(shell uname -r))
endif
KDIR=/lib/modules/$(KVER)/build
endif
ifeq ($(QLA_32GBIT),no)