All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/3] kmod: allow to build a host variant
Date: Wed, 21 Aug 2013 22:07:19 +0200	[thread overview]
Message-ID: <52151DF7.2050006@mind.be> (raw)
In-Reply-To: <1376996742-4638-2-git-send-email-thomas.petazzoni@free-electrons.com>

On 20/08/13 13:05, Thomas Petazzoni wrote:
> Since module-init-tools is deprecated, we now want to use kmod instead
> for the installation of modules during the kernel build process. In
> order to do this, we need to be able to build a host variant of kmod,
> which is want this patch allows to do.
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
>   package/kmod/kmod.mk | 9 +++++++++
>   1 file changed, 9 insertions(+)
>
> diff --git a/package/kmod/kmod.mk b/package/kmod/kmod.mk
> index 72a24af..8951a56 100644
> --- a/package/kmod/kmod.mk
> +++ b/package/kmod/kmod.mk
> @@ -53,4 +53,13 @@ else
>   KMOD_CONF_OPT += --disable-tools
>   endif
>
> +define HOST_KMOD_INSTALL_TOOLS
> +	mkdir -p $(HOST_DIR)/sbin/
> +	for i in depmod insmod lsmod modinfo modprobe rmmod; \
> +	do ln -sf ../usr/bin/kmod $(HOST_DIR)/sbin/$$i; done

  Even though this is cut&paste of the above, I would indent it properly 
here (and maybe also above).

  Maybe for the host tools, only include depmod. The others _really_ 
shouldn't be used.

  Regards,
  Arnout

> +endef
> +
> +HOST_KMOD_POST_INSTALL_HOOKS += HOST_KMOD_INSTALL_TOOLS
> +
>   $(eval $(autotools-package))
> +$(eval $(host-autotools-package))
>


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

  reply	other threads:[~2013-08-21 20:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-20 11:05 [Buildroot] [PATCH 0/3] Replace module-init-tools by kmod Thomas Petazzoni
2013-08-20 11:05 ` [Buildroot] [PATCH 1/3] kmod: allow to build a host variant Thomas Petazzoni
2013-08-21 20:07   ` Arnout Vandecappelle [this message]
2013-08-20 11:05 ` [Buildroot] [PATCH 2/3] linux: use kmod instead of module-init-tools Thomas Petazzoni
2013-08-20 11:05 ` [Buildroot] [PATCH 3/3] module-init-tools: remove package Thomas Petazzoni
2013-08-21 20:51   ` Arnout Vandecappelle

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=52151DF7.2050006@mind.be \
    --to=arnout@mind.be \
    --cc=buildroot@busybox.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.