[maemo-developers] Linux kernel module autobuilding

From: Andrew Zabolotny zap at homelink.ru
Date: Tue Aug 19 20:40:44 EEST 2008
From Tue, 19 Aug 2008 07:00:39 +0000 (UTC)
Danny Milosavljevic <danny.milo at scratchpost.org> wrote:

> I'm trying to get my Option HSO Modem driver to autobuild on Diablo 
> builder for some time now. Thanks to everyone who helped me get so
> far :)
If you wait a little, I'll release a linux-headers package which will
make building packages easier. It works now, but I have a couple of
enhancements in mind I would like to do before first release. It will
install a /lib/modules/2.6.21/build directory with everything you need
to build a driver.

Also since kernel-diablo-modules package (which is included in
scratchbox environment by default because it's a dependency of
maemo-core-runtime) will install a /lib/modules/current link which will
point to current /lib/modules/`uname -r`, so you basically can do just
'make -C /lib/modules/current/build ...' and this will build your
driver both for diablo and future kernel versions (I hope). I'm not yet
sure about chinook, but it could work this way as well.

-- 
Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20080819/ecd3e103/attachment.pgp 
More information about the maemo-developers mailing list