The following commit has been merged in the next branch: commit 515bdd0d7e0913e0d4c5e4e526248465f2ead39c Author: Martin Hundebøll martin@hundeboll.net Date: Thu May 3 10:15:07 2012 +0200
] batman-adv: Change "make install" path and run depmod
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 -a", we make the newly installed module used by kmod.
Signed-off-by: Martin Hundebøll martin@hundeboll.net
diff --git a/Makefile b/Makefile index ac84fba..57530db 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 -a
config: $(PWD)/gen-compat-autoconf.sh $(PWD)/compat-autoconf.h