Makefile: DKMS fix

Allow DKMS (or anyone) to specify TARGET in Makefile.

Signed-off-by: Burt P <pburt0@gmail.com>
This commit is contained in:
Burt P
2018-01-12 12:15:12 -06:00
committed by Guenter Roeck
parent 5edd7bb6f9
commit 7f59901679
2 changed files with 4 additions and 1 deletions

View File

@@ -1,7 +1,10 @@
# For building for the current running version of Linux # For building for the current running version of Linux
ifndef TARGET
TARGET := $(shell uname -r) TARGET := $(shell uname -r)
endif
# Or specific version # Or specific version
#TARGET := 2.6.33.5 #TARGET := 2.6.33.5
KERNEL_MODULES := /lib/modules/$(TARGET) KERNEL_MODULES := /lib/modules/$(TARGET)
ifneq ("","$(wildcard /usr/src/linux-headers-$(TARGET)/*)") ifneq ("","$(wildcard /usr/src/linux-headers-$(TARGET)/*)")

View File

@@ -1,4 +1,4 @@
MAKE="make" MAKE="make TARGET=${kernelver}"
CLEAN="make clean" CLEAN="make clean"
PACKAGE_NAME="it87" PACKAGE_NAME="it87"
PACKAGE_VERSION="to be filled by make dkms" PACKAGE_VERSION="to be filled by make dkms"