Re: [B.A.T.M.A.N.] [PATCH] batman-adv: Change "make install" path and run depmod

Antonio Quartulli
2012-05-02T21:16:13Z

[-- Attachment #1: Type: text/plain, Size: 1285 bytes --]

On Wed, May 02, 2012 at 08:50:51 +0200, Martin Hundebøll wrote:
> 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

would it be cleaner to run depmod -e $(uname -r) instead of using -a ?

Cheers,

>
> config:
> $(PWD)/gen-compat-autoconf.sh $(PWD)/compat-autoconf.h
> --
> 1.7.10

--
Antonio Quartulli

..each of us alone is worth nothing..
Ernesto "Che" Guevara

[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]