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:
3
Makefile
3
Makefile
@@ -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)/*)")
|
||||||
|
Reference in New Issue
Block a user