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
This commit is contained in:
Stanislaw Gruszka
2008-07-10 06:44:28 +00:00
parent 0019c43728
commit 0622954292
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -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
+1 -1
View File
@@ -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