Move KVERS and MODULES_DIR to the outern Makefile so they get a value when

no config file exist.
This commit is contained in:
guillemj
2004-08-21 07:16:26 +00:00
parent 1a752ef706
commit 05750ad397

View File

@@ -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`; \