]> git.neil.brown.name Git - history.git/commitdiff
kbuild: Fix build with modversions
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Fri, 4 Oct 2002 09:26:11 +0000 (04:26 -0500)
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Fri, 4 Oct 2002 09:26:11 +0000 (04:26 -0500)
Sam Ravnborg missed a place I missed converting, and I found another one,
too.

Rules.make

index 1030106b2d867222dab09f3dc7aa25214037e739..0638f3b41a0ddf6a193510ee2c241c195bd2d2ac 100644 (file)
@@ -161,7 +161,7 @@ else
 # This sets version suffixes on exported symbols
 # ---------------------------------------------------------------------------
 
-MODVERDIR := include/linux/modules/$(obj)
+MODVERDIR := include/linux/modules/
 
 #
 # Added the SMP separator to stop module accidents between uniprocessor
@@ -176,7 +176,7 @@ endif
 
 #      Don't include modversions.h, we're just about to generate it here.
 
-CFLAGS_MODULE := $(filter-out -include $(HPATH)/linux/modversions.h,$(CFLAGS_MODULE))
+CFLAGS_MODULE := $(filter-out -include linux/modversions.h,$(CFLAGS_MODULE))
 
 $(addprefix $(MODVERDIR)/,$(real-objs-y:.o=.ver)): modkern_cflags := $(CFLAGS_KERNEL)
 $(addprefix $(MODVERDIR)/,$(real-objs-m:.o=.ver)): modkern_cflags := $(CFLAGS_MODULE)
@@ -191,7 +191,7 @@ c_flags = -Wp,-MD,$(depfile) $(CFLAGS) $(NOSTDINC_FLAGS) \
 # files (fix-dep filters them), so touch modversions.h if any of the .ver
 # files changes
 
-quiet_cmd_cc_ver_c = MKVER   include/linux/modules/$(obj)/$*.ver
+quiet_cmd_cc_ver_c = MKVER   include/linux/modules/$*.ver
 cmd_cc_ver_c = $(CPP) $(c_flags) $< | $(GENKSYMS) $(genksyms_smp_prefix) \
                 -k $(VERSION).$(PATCHLEVEL).$(SUBLEVEL) > $@.tmp