From 05750ad39726ca17b18c8f2779b5245acfd99985 Mon Sep 17 00:00:00 2001 From: guillemj <> Date: Sat, 21 Aug 2004 07:16:26 +0000 Subject: [PATCH] Move KVERS and MODULES_DIR to the outern Makefile so they get a value when no config file exist. --- Device3Dfx/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Device3Dfx/Makefile b/Device3Dfx/Makefile index 1a430bf..15560c8 100644 --- a/Device3Dfx/Makefile +++ b/Device3Dfx/Makefile @@ -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`; \