From 7f59901679895232ff8a88c4d8fa15d092c62ac5 Mon Sep 17 00:00:00 2001 From: Burt P Date: Fri, 12 Jan 2018 12:15:12 -0600 Subject: [PATCH] Makefile: DKMS fix Allow DKMS (or anyone) to specify TARGET in Makefile. Signed-off-by: Burt P --- Makefile | 3 +++ dkms.conf | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 09ccc89..de8e0d4 100644 --- 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)/*)") diff --git a/dkms.conf b/dkms.conf index 3814a8c..c5fccfa 100644 --- 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" -- 2.39.5