summaryrefslogtreecommitdiffstats
path: root/package/linux/kernel-patches/002-Rules_make
diff options
context:
space:
mode:
authorwbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-03-26 10:33:32 +0000
committerwbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-03-26 10:33:32 +0000
commite69d8c0d8fbac180aaba30c8a3cdda0770cd8427 (patch)
treef08d225e1f8931634c82cfeb18fa3ad5fa7e664e /package/linux/kernel-patches/002-Rules_make
parent609fbd1a579f41a8cb6d1029aa5eb86477851d89 (diff)
uncompress patches, requested by Kaloz
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@460 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/linux/kernel-patches/002-Rules_make')
-rw-r--r--package/linux/kernel-patches/002-Rules_make18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/linux/kernel-patches/002-Rules_make b/package/linux/kernel-patches/002-Rules_make
new file mode 100644
index 000000000..485d9a505
--- /dev/null
+++ b/package/linux/kernel-patches/002-Rules_make
@@ -0,0 +1,18 @@
+--- linux-mips-cvs/Rules.make 2003-08-13 17:39:03.000000000 +0200
++++ linux-broadcom/Rules.make 2005-01-31 13:13:14.000000000 +0100
+@@ -176,7 +176,14 @@
+ _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'` \
++ $$f $(MODLIB)/kernel/$(MOD_DESTDIR)$(MOD_TARGET)$$f ; \
++ done
+ endif
+
+ .PHONY: modules_install