1 diff -urN linux.old/Makefile linux.dev/Makefile
2 --- linux.old/Makefile 2005-08-26 13:41:41.689634168 +0200
3 +++ linux.dev/Makefile 2005-08-26 13:44:34.233403528 +0200
7 include/linux/version.h: ./Makefile
8 - @expr length "$(KERNELRELEASE)" \<= $(uts_len) > /dev/null || \
9 + @-expr length "$(KERNELRELEASE)" \<= $(uts_len) > /dev/null || \
10 (echo KERNELRELEASE \"$(KERNELRELEASE)\" exceeds $(uts_len) characters >&2; false)
11 @echo \#define UTS_RELEASE \"$(KERNELRELEASE)\" > .ver
12 @echo \#define LINUX_VERSION_CODE `expr $(VERSION) \\* 65536 + $(PATCHLEVEL) \\* 256 + $(SUBLEVEL)` >> .ver
14 ifdef CONFIG_MODVERSIONS
15 $(MAKE) update-modverfile
17 - scripts/mkdep -- `find $(FINDHPATH) \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print` > .hdepend
18 + find $(FINDHPATH) \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print | xargs scripts/mkdep -- > .hdepend
19 scripts/mkdep -- init/*.c > .depend
21 ifdef CONFIG_MODVERSIONS
22 --- linux.old/Rules.make 2005-08-31 00:37:34.363109288 +0200
23 +++ linux.dev/Rules.make 2005-08-31 13:59:20.140676296 +0200
25 # This make dependencies quickly
28 - $(TOPDIR)/scripts/mkdep $(CFLAGS) $(EXTRA_CFLAGS_nostdinc) -- $(wildcard *.[chS]) > .depend
29 + find . -name '*.[chS]' | xargs $(TOPDIR)/scripts/mkdep $(CFLAGS) $(EXTRA_CFLAGS_nostdinc) -- > .depend
31 $(MAKE) $(patsubst %,_sfdep_%,$(ALL_SUB_DIRS)) _FASTDEP_ALL_SUB_DIRS="$(ALL_SUB_DIRS)"
35 ifneq "$(strip $(ALL_MOBJS))" ""
36 mkdir -p $(MODLIB)/kernel/$(MOD_DESTDIR)
37 - cp $(sort $(ALL_MOBJS)) $(MODLIB)/kernel/$(MOD_DESTDIR)
38 + #@cp $(sort $(ALL_MOBJS)) $(MODLIB)/kernel/$(MOD_DESTDIR)
39 + for f in $(ALL_MOBJS) ; do \
40 + $(OBJCOPY) -R __ksymtab -R .comment -R .note -x \
41 + `$(NM) $$f | cut -f3- -d' ' | sed -n \
42 + -e 's/__module_parm_\(.*\)/-K \1/p' \
43 + -e 's/__ks..tab_\(.*\)/-K \1/p'` \
44 + $$f $(MODLIB)/kernel/$(MOD_DESTDIR)$(MOD_TARGET)`basename $$f`; \
48 .PHONY: modules_install