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

Commit

Permalink
Makefile: DKMS fix
Browse files Browse the repository at this point in the history
Allow DKMS (or anyone) to specify TARGET in Makefile.

Signed-off-by: Burt P <pburt0@gmail.com>
  • Loading branch information
bp0 authored and groeck committed Jan 13, 2018
1 parent 5edd7bb commit 7f59901
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# For building for the current running version of Linux
ifndef TARGET
TARGET := $(shell uname -r)
endif
# Or specific version
#TARGET := 2.6.33.5

KERNEL_MODULES := /lib/modules/$(TARGET)

ifneq ("","$(wildcard /usr/src/linux-headers-$(TARGET)/*)")
Expand Down
2 changes: 1 addition & 1 deletion dkms.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MAKE="make"
MAKE="make TARGET=${kernelver}"
CLEAN="make clean"
PACKAGE_NAME="it87"
PACKAGE_VERSION="to be filled by make dkms"
Expand Down

0 comments on commit 7f59901

Please sign in to comment.