From: Kenn H. <ke...@us...> - 2002-12-14 23:06:10
|
Update of /cvsroot/linux-vax/kernel-2.5 In directory sc8-pr-cvs1:/tmp/cvs-serv8501 Modified Files: Makefile Rules.make Log Message: Merge with 2.5.11 Index: Makefile =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/Makefile,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- Makefile 14 Dec 2002 22:12:27 -0000 1.14 +++ Makefile 14 Dec 2002 23:06:05 -0000 1.15 @@ -1,6 +1,6 @@ VERSION = 2 PATCHLEVEL = 5 -SUBLEVEL = 10 +SUBLEVEL = 11 EXTRAVERSION = KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) Index: Rules.make =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/Rules.make,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- Rules.make 13 Dec 2002 01:42:42 -0000 1.6 +++ Rules.make 14 Dec 2002 23:06:05 -0000 1.7 @@ -19,7 +19,6 @@ unexport ALL_SUB_DIRS unexport MOD_SUB_DIRS unexport O_TARGET -unexport ALL_MOBJS unexport obj-y unexport obj-m @@ -34,6 +33,12 @@ comma := , # +# When an object is listed to be built compiled-in and modular, +# only build the compiled-in version +# +obj-m := $(filter-out $(obj-y),$(obj-m)) + +# # Get things started. # first_rule: sub_dirs @@ -182,8 +187,7 @@ # # A rule to make modules # -ALL_MOBJS = $(filter-out $(obj-y), $(obj-m)) -ifneq "$(strip $(ALL_MOBJS))" "" +ifneq "$(strip $(obj-m))" "" MOD_DESTDIR := $(shell $(CONFIG_SHELL) $(TOPDIR)/scripts/pathdown.sh) endif @@ -200,14 +204,14 @@ endif .PHONY: modules -modules: $(ALL_MOBJS) dummy \ +modules: $(obj-m) dummy \ $(patsubst %,_modsubdir_%,$(MOD_DIRS)) .PHONY: _modinst__ _modinst__: dummy -ifneq "$(strip $(ALL_MOBJS))" "" +ifneq "$(strip $(obj-m))" "" mkdir -p $(MODLIB)/kernel/$(MOD_DESTDIR) - cp $(ALL_MOBJS) $(MODLIB)/kernel/$(MOD_DESTDIR)$(MOD_TARGET) + cp $(obj-m) $(MODLIB)/kernel/$(MOD_DESTDIR) endif .PHONY: modules_install @@ -304,7 +308,8 @@ endif # CONFIG_MODVERSIONS ifneq "$(strip $(export-objs))" "" -$(export-objs): $(export-objs:.o=.c) $(TOPDIR)/include/linux/modversions.h +$(export-objs): $(TOPDIR)/include/linux/modversions.h +$(export-objs): %.o: %.c $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) $(CFLAGS_$@) -DEXPORT_SYMTAB -c $(@:.o=.c) @ ( \ echo 'ifeq ($(strip $(subst $(comma),:,$(CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$@) -DEXPORT_SYMTAB)),$$(strip $$(subst $$(comma),:,$$(CFLAGS) $$(EXTRA_CFLAGS) $$(CFLAGS_$@) -DEXPORT_SYMTAB)))' ; \ |