Skip to content

Commit

Permalink
add ability to set version into dkms Makfile
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhem committed Aug 22, 2012
1 parent c158b49 commit c03d744
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile.dkms
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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:
Expand Down

0 comments on commit c03d744

Please sign in to comment.