bcm4710: port a missing part of the cache fixes to linux 2.6
[openwrt.git] / target / linux / generic-2.4 / patches / 209-build_fixes.patch
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
4 @@ -354,7 +354,7 @@
5 @rm -f .ver1
6
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
13 @@ -509,7 +509,7 @@
14 ifdef CONFIG_MODVERSIONS
15 $(MAKE) update-modverfile
16 endif
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
20
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
24 @@ -126,7 +126,7 @@
25 # This make dependencies quickly
26 #
27 fastdep: dummy
28 - $(TOPDIR)/scripts/mkdep $(CFLAGS) $(EXTRA_CFLAGS_nostdinc) -- $(wildcard *.[chS]) > .depend
29 + find -name '*.[chS]' | xargs $(TOPDIR)/scripts/mkdep $(CFLAGS) $(EXTRA_CFLAGS_nostdinc) -- > .depend
30 ifdef ALL_SUB_DIRS
31 $(MAKE) $(patsubst %,_sfdep_%,$(ALL_SUB_DIRS)) _FASTDEP_ALL_SUB_DIRS="$(ALL_SUB_DIRS)"
32 endif
33 @@ -176,7 +176,14 @@
34 _modinst__: dummy
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`; \
45 + done
46 endif
47
48 .PHONY: modules_install
This page took 0.043892 seconds and 5 git commands to generate.