* [ptxdist] Howto integrate custom kernel module into the kernel_modules*.ipk package
@ 2013-04-05 11:47 Matthias Klein
2013-04-08 9:31 ` Michael Olbrich
0 siblings, 1 reply; 4+ messages in thread
From: Matthias Klein @ 2013-04-05 11:47 UTC (permalink / raw)
To: ptxdist
Hello,
I have a custom kernel module which doesn't came with a nice Makefile
for integration into ptxdist.
I had no problem to create a rule file around the build process for that
module.
But I don't know how to get my finish compiled *.ko file automatically
into the kernel_modules package for depmod etc., as with the
rules/Makefiles from a "src-linux-driver" skeleton.
To which location must I copy the module, and which scripts or commands
do I have to execute in my rule file ?
Thanks for the help!
Best regards,
Matthias
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ptxdist] Howto integrate custom kernel module into the kernel_modules*.ipk package
2013-04-05 11:47 [ptxdist] Howto integrate custom kernel module into the kernel_modules*.ipk package Matthias Klein
@ 2013-04-08 9:31 ` Michael Olbrich
2013-04-08 12:19 ` Matthias Klein
0 siblings, 1 reply; 4+ messages in thread
From: Michael Olbrich @ 2013-04-08 9:31 UTC (permalink / raw)
To: ptxdist
Hi,
On Fri, Apr 05, 2013 at 01:47:33PM +0200, Matthias Klein wrote:
> I have a custom kernel module which doesn't came with a nice
> Makefile for integration into ptxdist.
> I had no problem to create a rule file around the build process for
> that module.
>
> But I don't know how to get my finish compiled *.ko file
> automatically into the kernel_modules package for depmod etc., as
> with the rules/Makefiles from a "src-linux-driver" skeleton.
>
>
> To which location must I copy the module, and which scripts or
> commands do I have to execute in my rule file ?
platform-*/packages/linux-*/lib/modules/*/extra/
Make sure you start with the src-linux-driver template. It adds an extra
dependency to make this work.
Michael
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ptxdist] Howto integrate custom kernel module into the kernel_modules*.ipk package
2013-04-08 9:31 ` Michael Olbrich
@ 2013-04-08 12:19 ` Matthias Klein
2013-04-08 12:34 ` Marc Kleine-Budde
0 siblings, 1 reply; 4+ messages in thread
From: Matthias Klein @ 2013-04-08 12:19 UTC (permalink / raw)
To: ptxdist
Hi Michael,
> platform-*/packages/linux-*/lib/modules/*/extra/
>
> Make sure you start with the src-linux-driver template. It adds an extra
> dependency to make this work.
Thank you for your help ! Now it works fine !
Do you have a tip for getting the module path without the fixed version
?: $(KERNEL_PKGDIR)/lib/modules/3.4.37-rt51/extra/
Best regards,
Matthias
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ptxdist] Howto integrate custom kernel module into the kernel_modules*.ipk package
2013-04-08 12:19 ` Matthias Klein
@ 2013-04-08 12:34 ` Marc Kleine-Budde
0 siblings, 0 replies; 4+ messages in thread
From: Marc Kleine-Budde @ 2013-04-08 12:34 UTC (permalink / raw)
To: ptxdist; +Cc: Matthias Klein
[-- Attachment #1.1: Type: text/plain, Size: 805 bytes --]
On 04/08/2013 02:19 PM, Matthias Klein wrote:
> Hi Michael,
>
>> platform-*/packages/linux-*/lib/modules/*/extra/
>>
>> Make sure you start with the src-linux-driver template. It adds an extra
>> dependency to make this work.
>
> Thank you for your help ! Now it works fine !
>
> Do you have a tip for getting the module path without the fixed version
> ?: $(KERNEL_PKGDIR)/lib/modules/3.4.37-rt51/extra/
Use the src-linux-driver template as Michael suggested. The install
stage will take care of this.
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 263 bytes --]
[-- Attachment #2: Type: text/plain, Size: 48 bytes --]
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-04-08 12:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-05 11:47 [ptxdist] Howto integrate custom kernel module into the kernel_modules*.ipk package Matthias Klein
2013-04-08 9:31 ` Michael Olbrich
2013-04-08 12:19 ` Matthias Klein
2013-04-08 12:34 ` Marc Kleine-Budde
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox