public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH] batman-adv: Change "make install" path and run depmod
@ 2012-05-02 18:50 Martin Hundebøll
  2012-05-02 21:16 ` Antonio Quartulli
  2012-05-03  8:15 ` [B.A.T.M.A.N.] [[PATCHv2]] " Martin Hundebøll
  0 siblings, 2 replies; 8+ messages in thread
From: Martin Hundebøll @ 2012-05-02 18:50 UTC (permalink / raw)
  To: b.a.t.m.a.n; +Cc: Martin Hundebøll

Currently, when installing the out-of-tree module on distributions that
use gzipped modules, batman-adv.ko will be installed next to
batman-adv.ko.gz, which is selected by kmod.

By changing the install path to
/lib/modules/`uname -r`/updates/net/batman-adv/
and running "depmod -ae", we make the newly installed module used by
kmod.

Signed-off-by: Martin Hundebøll <martin@hundeboll.net>
---
 Makefile |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index ac84fba..c68937d 100644
--- a/Makefile
+++ b/Makefile
@@ -55,7 +55,8 @@ clean:
 	$(MAKE) -C $(KERNELPATH) M=$(PWD) PWD=$(PWD) clean
 
 install: config
-	$(MAKE) -C $(KERNELPATH) M=$(PWD) PWD=$(PWD) INSTALL_MOD_DIR=kernel/net/batman-adv/ modules_install
+	$(MAKE) -C $(KERNELPATH) M=$(PWD) PWD=$(PWD) INSTALL_MOD_DIR=updates/net/batman-adv/ modules_install
+	depmod -ae
 
 config:
 	$(PWD)/gen-compat-autoconf.sh $(PWD)/compat-autoconf.h
-- 
1.7.10


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-05-06 12:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-02 18:50 [B.A.T.M.A.N.] [PATCH] batman-adv: Change "make install" path and run depmod Martin Hundebøll
2012-05-02 21:16 ` Antonio Quartulli
2012-05-03  6:26   ` Sven Eckelmann
2012-05-03  6:40     ` Antonio Quartulli
2012-05-03  6:45       ` Sven Eckelmann
2012-05-03  7:11         ` Antonio Quartulli
2012-05-03  8:15 ` [B.A.T.M.A.N.] [[PATCHv2]] " Martin Hundebøll
2012-05-06 12:22   ` Marek Lindner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox