From: Kenn H. <ke...@us...> - 2003-08-19 12:56:29
|
Update of /cvsroot/linux-vax/kernel-2.5/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv23575/scripts Modified Files: Makefile.build Log Message: Merge with 2.5.62 Index: Makefile.build =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/scripts/Makefile.build,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- Makefile.build 5 Aug 2003 23:17:56 -0000 1.9 +++ Makefile.build 19 Aug 2003 12:56:24 -0000 1.10 @@ -49,15 +49,12 @@ endif endif -ifdef CONFIG_MODVERSIONS -modules := $(obj-m) -touch-module = @echo $(@:.o=.ko) > .tmp_versions/$(@F:.o=.mod) -else -modules := $(obj-m:.o=.ko) -endif +# We keep a list of all modules in $(MODVERDIR) + +touch-module = @echo $(@:.o=.ko) > $(MODVERDIR)/$(@F:.o=.mod) __build: $(if $(KBUILD_BUILTIN),$(O_TARGET) $(L_TARGET) $(EXTRA_TARGETS)) \ - $(if $(KBUILD_MODULES),$(modules)) \ + $(if $(KBUILD_MODULES),$(obj-m)) \ $(subdir-ym) $(build-targets) @: @@ -158,6 +155,8 @@ quiet_cmd_cc_o_c = CC $(quiet_modtag) $@ cmd_cc_o_c = $(CC) $(c_flags) -c -o $@ $< $(listing_o_c) +# Built-in and composite module parts + %.o: %.c FORCE ifdef CONFIG_MODVERSIONS $(call if_changed_rule,vcc_o_c) @@ -165,13 +164,14 @@ $(call if_changed_dep,cc_o_c) endif -# For modversioning, we need to special case single-part modules -# to mark them in $(MODVERDIR) +# Single-part modules are special since we need to mark them in $(MODVERDIR) -ifdef CONFIG_MODVERSIONS $(single-used-m): %.o: %.c FORCE $(touch-module) +ifdef CONFIG_MODVERSIONS $(call if_changed_rule,vcc_o_c) +else + $(call if_changed_dep,cc_o_c) endif quiet_cmd_cc_lst_c = MKLST $@ @@ -202,7 +202,8 @@ %.o: %.S FORCE $(call if_changed_dep,as_o_S) -targets += $(real-objs-y) $(real-objs-m) $(EXTRA_TARGETS) $(MAKECMDGOALS) +targets += $(real-objs-y) $(real-objs-m) $(EXTRA_TARGETS) $(MAKECMDGOALS) \ + $(build-targets) # Build the compiled-in targets # --------------------------------------------------------------------------- @@ -269,29 +270,6 @@ $(call if_changed,link_multi-m) targets += $(multi-used-y) $(multi-used-m) - -# -# Rule to link modules ( .o -> .ko ) -# - -# With CONFIG_MODVERSIONS, generation of the final .ko is handled -# by scripts/Makefile.modver -ifndef CONFIG_MODVERSIONS - -quiet_cmd_link_module = LD [M] $@ -cmd_link_module = $(LD) $(ld_flags) $(LDFLAGS_MODULE) -o $@ $< init/vermagic.o - -# Don't rebuilt vermagic.o unless we actually are in the init/ dir -ifneq ($(obj),init) -init/vermagic.o: ; -endif - -$(single-used-m:.o=.ko) $(multi-used-m:.o=.ko): %.ko: %.o init/vermagic.o FORCE - $(call if_changed,link_module) - -targets += $(single-used-m:.o=.ko) $(multi-used-m:.o=.ko) - -endif # Compile programs on the host # =========================================================================== |