Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #202 from krichter722/makefile
Browse files Browse the repository at this point in the history
made automatic retrieval of kernel version more flexible and allowing…
  • Loading branch information
jkkm authored Aug 30, 2017
2 parents 722455c + 4754b66 commit 437afbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
COMMIT_REV := $(shell git describe --always --abbrev=12)
KERNEL_TREE ?= /lib/modules/$(shell uname -r)/build
KERNEL_VERSION ?= $(shell uname -r)
KERNEL_TREE ?= /lib/modules/$(KERNEL_VERSION)/build
export COMMIT_REV

# Check for RHEL/CentOS
Expand Down
2 changes: 1 addition & 1 deletion Makefile.dkms
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ boot_conf: utils
if test -d /etc/initramfs-tools/hooks; then \
install -o root -g root src/flashcache.hook /etc/initramfs-tools/hooks/flashcache ; \
install -o root -g root src/utils/flashcache_scan /etc/initramfs-tools/scripts/init-premount/ ; \
update-initramfs -k $(shell uname -r) -u ; \
update-initramfs -k $(KERNEL_VERSION) -u ; \
fi

.PHONY: utils
Expand Down

0 comments on commit 437afbf

Please sign in to comment.