Move KVERS and MODULES_DIR to the outern Makefile so they get a value when
no config file exist.
This commit is contained in:
@@ -17,6 +17,8 @@ endif
|
||||
|
||||
KSRC ?= /usr/src/linux
|
||||
KHEADERS ?= $(KSRC)/include
|
||||
KVERS ?= $(shell ./kinfo --UTS)
|
||||
MODULES_DIR = $(DESTDIR)/lib/modules/$(KVERS)
|
||||
|
||||
ALL_CFLAGS := -DMODULE -D__KERNEL__ \
|
||||
-I$(KHEADERS) -I$(KHEADERS)/asm/mach-default \
|
||||
@@ -59,9 +61,6 @@ module_type = module_$(BUILD_TYPE)
|
||||
|
||||
else
|
||||
|
||||
KVERS ?= $(shell ./kinfo --UTS)
|
||||
MODULES_DIR = $(DESTDIR)/lib/modules/$(KVERS)
|
||||
|
||||
config: sanity kinfo
|
||||
@( \
|
||||
KVER_MAJOR=`echo $(KVERS) | cut -d. -f1`; \
|
||||
|
||||
Reference in New Issue
Block a user