2008-01-07 03:28:07 +08:00
|
|
|
Index: linux-2.4.35.4/Makefile
|
|
|
|
===================================================================
|
2008-05-19 21:44:11 +08:00
|
|
|
--- linux-2.4.35.4.orig/Makefile
|
|
|
|
+++ linux-2.4.35.4/Makefile
|
|
|
|
@@ -362,7 +362,7 @@ include/linux/compile.h: $(CONFIGURATION
|
2005-11-12 05:56:15 +08:00
|
|
|
@rm -f .ver1
|
|
|
|
|
|
|
|
include/linux/version.h: ./Makefile
|
|
|
|
- @expr length "$(KERNELRELEASE)" \<= $(uts_len) > /dev/null || \
|
|
|
|
+ @-expr length "$(KERNELRELEASE)" \<= $(uts_len) > /dev/null || \
|
|
|
|
(echo KERNELRELEASE \"$(KERNELRELEASE)\" exceeds $(uts_len) characters >&2; false)
|
|
|
|
@echo \#define UTS_RELEASE \"$(KERNELRELEASE)\" > .ver
|
|
|
|
@echo \#define LINUX_VERSION_CODE `expr $(VERSION) \\* 65536 + $(PATCHLEVEL) \\* 256 + $(SUBLEVEL)` >> .ver
|
2008-05-19 21:44:11 +08:00
|
|
|
@@ -500,7 +500,7 @@ dep-files: scripts/mkdep archdep include
|
2005-11-12 05:56:15 +08:00
|
|
|
ifdef CONFIG_MODVERSIONS
|
|
|
|
$(MAKE) update-modverfile
|
|
|
|
endif
|
|
|
|
- scripts/mkdep -- `find $(FINDHPATH) \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print` > .hdepend
|
|
|
|
+ find $(FINDHPATH) \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print | xargs scripts/mkdep -- > .hdepend
|
|
|
|
scripts/mkdep -- init/*.c > .depend
|
|
|
|
|
|
|
|
ifdef CONFIG_MODVERSIONS
|
2008-01-07 03:28:07 +08:00
|
|
|
Index: linux-2.4.35.4/Rules.make
|
|
|
|
===================================================================
|
2008-05-19 21:44:11 +08:00
|
|
|
--- linux-2.4.35.4.orig/Rules.make
|
|
|
|
+++ linux-2.4.35.4/Rules.make
|
|
|
|
@@ -126,7 +126,7 @@ endif
|
2005-11-12 05:56:15 +08:00
|
|
|
# This make dependencies quickly
|
|
|
|
#
|
|
|
|
fastdep: dummy
|
|
|
|
- $(TOPDIR)/scripts/mkdep $(CFLAGS) $(EXTRA_CFLAGS_nostdinc) -- $(wildcard *.[chS]) > .depend
|
2006-11-28 11:52:51 +08:00
|
|
|
+ find . -name '*.[chS]' | xargs $(TOPDIR)/scripts/mkdep $(CFLAGS) $(EXTRA_CFLAGS_nostdinc) -- > .depend
|
2005-11-12 05:56:15 +08:00
|
|
|
ifdef ALL_SUB_DIRS
|
|
|
|
$(MAKE) $(patsubst %,_sfdep_%,$(ALL_SUB_DIRS)) _FASTDEP_ALL_SUB_DIRS="$(ALL_SUB_DIRS)"
|
|
|
|
endif
|
2008-05-19 21:44:11 +08:00
|
|
|
@@ -176,7 +176,14 @@ modules: $(ALL_MOBJS) dummy \
|
2005-11-12 05:56:15 +08:00
|
|
|
_modinst__: dummy
|
|
|
|
ifneq "$(strip $(ALL_MOBJS))" ""
|
|
|
|
mkdir -p $(MODLIB)/kernel/$(MOD_DESTDIR)
|
|
|
|
- cp $(sort $(ALL_MOBJS)) $(MODLIB)/kernel/$(MOD_DESTDIR)
|
|
|
|
+ #@cp $(sort $(ALL_MOBJS)) $(MODLIB)/kernel/$(MOD_DESTDIR)
|
|
|
|
+ for f in $(ALL_MOBJS) ; do \
|
|
|
|
+ $(OBJCOPY) -R __ksymtab -R .comment -R .note -x \
|
|
|
|
+ `$(NM) $$f | cut -f3- -d' ' | sed -n \
|
|
|
|
+ -e 's/__module_parm_\(.*\)/-K \1/p' \
|
|
|
|
+ -e 's/__ks..tab_\(.*\)/-K \1/p'` \
|
2005-11-12 06:53:18 +08:00
|
|
|
+ $$f $(MODLIB)/kernel/$(MOD_DESTDIR)$(MOD_TARGET)`basename $$f`; \
|
2005-11-12 05:56:15 +08:00
|
|
|
+ done
|
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: modules_install
|