Permalink
Browse files

add ability to set version into dkms Makfile

  • Loading branch information...
1 parent c158b49 commit c03d744442f782c06b41cbf6a571658271b9205a @guilhem guilhem committed Aug 22, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 Makefile.dkms
View
5 Makefile.dkms
@@ -1,5 +1,6 @@
COMMIT_REV := $(shell git describe --always --abbrev=12)
DKMS_DEST ?= /var/lib/dkms/flashcache/$(COMMIT_REV)/source
+KERNEL_VERSION ?= $(shell uname -r)
# statically link for inclusion in initramfs
CFLAGS += -static
export COMMIT_REV CFLAGS
@@ -11,11 +12,11 @@ all: install
.PHONY: install
install: build utils
- dkms install -m flashcache -v $(COMMIT_REV)
+ dkms install -m flashcache -v $(COMMIT_REV) -k $(KERNEL_VERSION)
.PHONY: build
build: src_install
- dkms build -m flashcache -v $(COMMIT_REV)
+ dkms build -m flashcache -v $(COMMIT_REV) -k $(KERNEL_VERSION)
.PHONY: src_install
src_install:

0 comments on commit c03d744

Please sign in to comment.