From 06229542920085613ecfc1e5f26401f5c65622e5 Mon Sep 17 00:00:00 2001 From: Stanislaw Gruszka Date: Thu, 10 Jul 2008 06:44:28 +0000 Subject: [PATCH] Add KVER make parameter and remove Module{,s}.symvers on clean. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@451 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla_isp/Makefile | 6 +++++- qla_isp/linux-2.6/Makefile | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/qla_isp/Makefile b/qla_isp/Makefile index 3b949dfbf..83f803d25 100644 --- a/qla_isp/Makefile +++ b/qla_isp/Makefile @@ -1,5 +1,9 @@ +ifndef KVER +KVER = $(shell uname -r) +endif + ifndef KDIR -KDIR := /lib/modules/$(shell uname -r)/build +KDIR := /lib/modules/$(KVER)/build endif export KDIR diff --git a/qla_isp/linux-2.6/Makefile b/qla_isp/linux-2.6/Makefile index 5bf337e38..ee0db7a56 100644 --- a/qla_isp/linux-2.6/Makefile +++ b/qla_isp/linux-2.6/Makefile @@ -47,7 +47,7 @@ tgt: links Modules.symvers Module.symvers clean: @$(MAKE) -C ${LINUX} M=${CURDIR}/build clean @$(MAKE) -C build clean_links - @$(RM) tags + @$(RM) tags Modules.symvers Module.symvers extraclean: clean