ifeq ($(CONFIG_MODVERSIONS),y)
-MODFLAGS += -DMODVERSIONS -include $(MODVERSIONS_H_PATH)
+MODFLAGS += -DMODVERSIONS -include $(LINUXDIR)/include/linux/modversions.h
endif
modules: $(patsubst %, _mod_%, $(SUBDIRS))
$(patsubst %, _mod_%, $(SUBDIRS)) : dummy
- $(MAKE) -C $(patsubst _mod_%, %, $@) CFLAGS="$(CFLAGS) $(MODFLAGS)" MAKING_MODULES=1 modules
+ $(MAKE) -C $(patsubst _mod_%, %, $@) CFLAGS="$(CFLAGS)" MAKING_MODULES=1 modules
include/version.h: Makefile
@echo \#define $(PROJECT)_RELEASE \"$(PROJECTRELEASE)\" >.ver
.PHONY: flags
flags:
echo LINUXDIR=$(LINUXDIR) >$(obj)/flags
- echo MODVERSIONS_H_PATH=$(LINUXDIR)/include/config/modversions.h >>$(obj)/flags
echo ARCH=$(ARCH) >>$(obj)/flags
echo AFLAGS="$(AFLAGS)" | sed 's_Iinclude_I"$(LINUXDIR)/include"_g'>>$(obj)/flags
echo LDFLAGS= >>$(obj)/flags
modules:
echo LINUXDIR=$(LINUXDIR) >flags
- echo MODVERSIONS_H_PATH=$(LINUXDIR)/include/linux/modversions.h >>flags
echo ARCH=$(ARCH) >>flags
echo AFLAGS="$(AFLAGS)" >>flags
echo LDFLAGS="$(LDFLAGS)" >>flags