how to package a kernel module?

Gérard BIGOT gerard.bigot at gmail.com
Wed Apr 14 20:14:18 BST 2010


On Wed, Apr 14, 2010 at 20:12, Christoph Mathys <eraserix at gmail.com> wrote:
> Hello!
>
> Not sure if I picked to correct list for asking about packaging kernel
> modules and handle different kernels, so sorry if this question is OT.
>
> The software in question contains some userland tools and a kernel
> module. It seems pretty straight forward to just compile and pack
> everything together for the system as it is just at the given moment.
>
> However, I'm completely lost when it comes to handling kernel modules in
> a little more elaborate way. I could not find much documenation about
> how to do this, module-assistant being more or less the only specific
> tool for module handling I found.
>
> So, how do I handle different flavours and versions of a kernel? What to
> do if the kernel is upgraded? Do I need to provide a package for every
> kernel that should be supported? Or better create a package which will
> compile itself if the kernel on the system is not supported? But then,
> what to do if a different kernel is booted next time? I hope for some
> pointers on how I could handle this one or which packages do a similar
> thing so I could take a closer look.
>

Look for dkms.

G.



More information about the Ubuntu-motu mailing list