From: Antonio Quartulli <ordex@autistici.org>
To: The list for a Better Approach To Mobile Ad-hoc Networking
<b.a.t.m.a.n@lists.open-mesh.org>
Cc: "Martin Hundebøll" <martin@hundeboll.net>
Subject: Re: [B.A.T.M.A.N.] [PATCH] batman-adv: Change "make install" path and run depmod
Date: Wed, 2 May 2012 23:16:13 +0200 [thread overview]
Message-ID: <20120502211612.GB2093@ritirata.org> (raw)
In-Reply-To: <1335984651-15385-1-git-send-email-martin@hundeboll.net>
[-- 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 --]
next prev parent reply other threads:[~2012-05-02 21:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120502211612.GB2093@ritirata.org \
--to=ordex@autistici.org \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
--cc=martin@hundeboll.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox