Permalink
Browse files

Merge pull request #76 from Youscribe/dkms_version

add ability to set version into dkms Makfile
  • Loading branch information...
2 parents c158b49 + c03d744 commit 9a050da0726c1b04a97657bf36874e898baa6133 @mohans mohans committed Aug 22, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 Makefile.dkms
View
@@ -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 9a050da

Please sign in to comment.