mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-25 20:02:27 +02:00
19 lines
674 B
Plaintext
19 lines
674 B
Plaintext
|
--- 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
|