]> git.sur5r.net Git - groeck-it87/commitdiff
Makefile: DKMS fix
authorBurt P <pburt0@gmail.com>
Fri, 12 Jan 2018 18:15:12 +0000 (12:15 -0600)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 13 Jan 2018 21:19:57 +0000 (13:19 -0800)
Allow DKMS (or anyone) to specify TARGET in Makefile.

Signed-off-by: Burt P <pburt0@gmail.com>
Makefile
dkms.conf

index 09ccc89f335d6fb2490555bb1697eca70c317fd7..de8e0d42a57f75616f98ad8829414521f56b2d66 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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)/*)")
index 3814a8c6bf7ae0d5cd891a74dd7ac6de729d0537..c5fccfae1312183adf433ad16feb6bfccd8f860e 100644 (file)
--- a/dkms.conf
+++ b/dkms.conf
@@ -1,4 +1,4 @@
-MAKE="make"
+MAKE="make TARGET=${kernelver}"
 CLEAN="make clean"
 PACKAGE_NAME="it87"
 PACKAGE_VERSION="to be filled by make dkms"