add md5sums for binutils & gcc and use the GNU mirror facility
[openwrt.git] / target / linux / generic-2.4 / patches / 209-build_fixes.patch
1 Index: linux-2.4.35.4/Makefile
2 ===================================================================
3 --- linux-2.4.35.4.orig/Makefile
4 +++ linux-2.4.35.4/Makefile
5 @@ -362,7 +362,7 @@ include/linux/compile.h: $(CONFIGURATION
6 @rm -f .ver1
7
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
14 @@ -500,7 +500,7 @@ dep-files: scripts/mkdep archdep include
15 ifdef CONFIG_MODVERSIONS
16 $(MAKE) update-modverfile
17 endif
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
21
22 ifdef CONFIG_MODVERSIONS
23 Index: linux-2.4.35.4/Rules.make
24 ===================================================================
25 --- linux-2.4.35.4.orig/Rules.make
26 +++ linux-2.4.35.4/Rules.make
27 @@ -126,7 +126,7 @@ endif
28 # This make dependencies quickly
29 #
30 fastdep: dummy
31 - $(TOPDIR)/scripts/mkdep $(CFLAGS) $(EXTRA_CFLAGS_nostdinc) -- $(wildcard *.[chS]) > .depend
32 + find . -name '*.[chS]' | xargs $(TOPDIR)/scripts/mkdep $(CFLAGS) $(EXTRA_CFLAGS_nostdinc) -- > .depend
33 ifdef ALL_SUB_DIRS
34 $(MAKE) $(patsubst %,_sfdep_%,$(ALL_SUB_DIRS)) _FASTDEP_ALL_SUB_DIRS="$(ALL_SUB_DIRS)"
35 endif
36 @@ -176,7 +176,14 @@ modules: $(ALL_MOBJS) dummy \
37 _modinst__: dummy
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`; \
48 + done
49 endif
50
51 .PHONY: modules_install
This page took 0.055372 seconds and 5 git commands to generate.