1 Index: linux-2.4.35.4/Makefile
2 ===================================================================
3 --- linux-2.4.35.4.orig/Makefile 2007-12-15 05:19:51.427351715 +0100
4 +++ linux-2.4.35.4/Makefile 2007-12-15 05:20:00.315858242 +0100
8 include/linux/version.h: ./Makefile
9 - @expr length "$(KERNELRELEASE)" \<= $(uts_len) > /dev/null || \
10 + @-expr length "$(KERNELRELEASE)" \<= $(uts_len) > /dev/null || \
11 (echo KERNELRELEASE \"$(KERNELRELEASE)\" exceeds $(uts_len) characters >&2; false)
12 @echo \#define UTS_RELEASE \"$(KERNELRELEASE)\" > .ver
13 @echo \#define LINUX_VERSION_CODE `expr $(VERSION) \\* 65536 + $(PATCHLEVEL) \\* 256 + $(SUBLEVEL)` >> .ver
15 ifdef CONFIG_MODVERSIONS
16 $(MAKE) update-modverfile
18 - scripts/mkdep -- `find $(FINDHPATH) \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print` > .hdepend
19 + find $(FINDHPATH) \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print | xargs scripts/mkdep -- > .hdepend
20 scripts/mkdep -- init/*.c > .depend
22 ifdef CONFIG_MODVERSIONS
23 Index: linux-2.4.35.4/Rules.make
24 ===================================================================
25 --- linux-2.4.35.4.orig/Rules.make 2007-12-15 05:19:39.078648003 +0100
26 +++ linux-2.4.35.4/Rules.make 2007-12-15 05:20:00.315858242 +0100
28 # This make dependencies quickly
31 - $(TOPDIR)/scripts/mkdep $(CFLAGS) $(EXTRA_CFLAGS_nostdinc) -- $(wildcard *.[chS]) > .depend
32 + find . -name '*.[chS]' | xargs $(TOPDIR)/scripts/mkdep $(CFLAGS) $(EXTRA_CFLAGS_nostdinc) -- > .depend
34 $(MAKE) $(patsubst %,_sfdep_%,$(ALL_SUB_DIRS)) _FASTDEP_ALL_SUB_DIRS="$(ALL_SUB_DIRS)"
38 ifneq "$(strip $(ALL_MOBJS))" ""
39 mkdir -p $(MODLIB)/kernel/$(MOD_DESTDIR)
40 - cp $(sort $(ALL_MOBJS)) $(MODLIB)/kernel/$(MOD_DESTDIR)
41 + #@cp $(sort $(ALL_MOBJS)) $(MODLIB)/kernel/$(MOD_DESTDIR)
42 + for f in $(ALL_MOBJS) ; do \
43 + $(OBJCOPY) -R __ksymtab -R .comment -R .note -x \
44 + `$(NM) $$f | cut -f3- -d' ' | sed -n \
45 + -e 's/__module_parm_\(.*\)/-K \1/p' \
46 + -e 's/__ks..tab_\(.*\)/-K \1/p'` \
47 + $$f $(MODLIB)/kernel/$(MOD_DESTDIR)$(MOD_TARGET)`basename $$f`; \
51 .PHONY: modules_install