Commit 7ae54460 authored by Linus Torvalds's avatar Linus Torvalds

Merge http://linux-isdn.bkbits.net/linux-2.5.make

into home.transmeta.com:/home/torvalds/v2.5/linux
parents 14c4c69d 66e01461
...@@ -408,6 +408,7 @@ ifdef CONFIG_MODVERSIONS ...@@ -408,6 +408,7 @@ ifdef CONFIG_MODVERSIONS
ifdef KBUILD_MODULES ifdef KBUILD_MODULES
ifeq ($(origin SUBDIRS),file) ifeq ($(origin SUBDIRS),file)
$(Q)rm -rf $(MODVERDIR) $(Q)rm -rf $(MODVERDIR)
$(Q)mkdir $(MODVERDIR)
else else
@echo '*** Warning: Overriding SUBDIRS on the command line can cause' @echo '*** Warning: Overriding SUBDIRS on the command line can cause'
@echo '*** inconsistencies with module symbol versions' @echo '*** inconsistencies with module symbol versions'
......
...@@ -15,8 +15,12 @@ include $(obj)/Makefile ...@@ -15,8 +15,12 @@ include $(obj)/Makefile
include scripts/Makefile.lib include scripts/Makefile.lib
ifdef export-objs
$(warning kbuild: $(obj)/Makefile - Usage of export-objs is obsolete in 2.5. Please fix!)
endif
ifdef O_TARGET ifdef O_TARGET
$(error kbuild: $(obj)/Makefile - Usage of O_TARGET := $(O_TARGET) is obsolete in 2.5. Please fix!) $(warning kbuild: $(obj)/Makefile - Usage of O_TARGET := $(O_TARGET) is obsolete in 2.5. Please fix!)
endif endif
ifdef L_TARGET ifdef L_TARGET
...@@ -47,7 +51,7 @@ endif ...@@ -47,7 +51,7 @@ endif
ifdef CONFIG_MODVERSIONS ifdef CONFIG_MODVERSIONS
modules := $(obj-m) modules := $(obj-m)
touch-module = @mkdir -p $(MODVERDIR)/$(@D); touch $(MODVERDIR)/$(@:.o=.ko) touch-module = @echo $(@:.o=.ko) > .tmp_versions/$(@F:.o=.mod)
else else
modules := $(obj-m:.o=.ko) modules := $(obj-m:.o=.ko)
endif endif
...@@ -90,8 +94,7 @@ define rule_vcc_o_c ...@@ -90,8 +94,7 @@ define rule_vcc_o_c
else \ else \
$(CPP) -D__GENKSYMS__ $(c_flags) $< \ $(CPP) -D__GENKSYMS__ $(c_flags) $< \
| $(GENKSYMS) -k $(VERSION).$(PATCHLEVEL).$(SUBLEVEL) \ | $(GENKSYMS) -k $(VERSION).$(PATCHLEVEL).$(SUBLEVEL) \
| grep __ver \ | sed -n 's/\#define __ver_\(\w*\)\W*\(\w*\)/__crc_\1 = 0x\2 ;/gp' \
| sed 's/\#define __ver_\([^ ]*\)[ ]*\([^ ]*\)/__crc_\1 = 0x\2 ;/g' \
> $(@D)/.tmp_$(@F:.o=.ver); \ > $(@D)/.tmp_$(@F:.o=.ver); \
\ \
$(LD) $(LDFLAGS) -r -o $@ $(@D)/.tmp_$(@F) \ $(LD) $(LDFLAGS) -r -o $@ $(@D)/.tmp_$(@F) \
......
...@@ -9,7 +9,12 @@ include scripts/Makefile.lib ...@@ -9,7 +9,12 @@ include scripts/Makefile.lib
# #
modules := $(patsubst ./%,%,$(shell cd $(MODVERDIR); find . -name \*.ko)) __modules := $(shell cd $(MODVERDIR); cat *.mod)
modules := $(patsubst %.o,%.ko,$(wildcard $(__modules:.ko=.o)))
ifneq ($(filter-out $(modules),$(__modules)),)
$(warning *** Uh-oh, you have stale module entries. You messed with SUBDIRS, don't complain if something goes wrong.)
endif
__modversions: $(modules) __modversions: $(modules)
@: @:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment