Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Building / installing kernel modules.
@ 2013-10-09 18:37 Sagaert Johan
  2013-10-10  7:02 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Sagaert Johan @ 2013-10-09 18:37 UTC (permalink / raw)
  To: buildroot

 
Dear Thomas

I found this post http://lists.busybox.net/pipermail/buildroot/2011-July/044690.html

Has there been some infrastructure added to aid in building and installing kernel modules ?

I created a generic-package makefile to build and install the kernel module.
So far so good, but I still have to run depmod -a on my target to register the module.

How can I use the post_install hook to have the module registered by buildroot,
so I don't have to do it on my target board ?

Johan

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

* [Buildroot] Building / installing kernel modules.
  2013-10-09 18:37 [Buildroot] Building / installing kernel modules Sagaert Johan
@ 2013-10-10  7:02 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2013-10-10  7:02 UTC (permalink / raw)
  To: buildroot

Dear Sagaert Johan,

On Wed, 9 Oct 2013 20:37:35 +0200, Sagaert Johan wrote:

> I found this post http://lists.busybox.net/pipermail/buildroot/2011-July/044690.html

Note that this post was made by Thomas De Schampheleire, not me. Yeah,
I know, two Thomas, it's confusing :)

> Has there been some infrastructure added to aid in building and installing kernel modules ?

No. In fact I'm not sure there is really a need for that.

> I created a generic-package makefile to build and install the kernel module.
> So far so good, but I still have to run depmod -a on my target to register the module.
> 
> How can I use the post_install hook to have the module registered by buildroot,
> so I don't have to do it on my target board ?

Normally, if you use the modules_install target of the kernel Makefile
to install your own modules, it should call depmod automatically.

See
http://lists.busybox.net/pipermail/buildroot/2011-August/044807.html
for an example that does this (if I remember correctly).

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

end of thread, other threads:[~2013-10-10  7:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-09 18:37 [Buildroot] Building / installing kernel modules Sagaert Johan
2013-10-10  7:02 ` Thomas Petazzoni

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