[maemo-developers] Determining target kernel version in scratchbox
From: Andrew Zabolotny zap at homelink.ruDate: Tue Aug 12 11:42:07 EEST 2008
- Previous message: portaudio
- Next message: Determining target kernel version in scratchbox
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello! I'm implementing a kernel-dev package which should contain just the important headers and kernel makefile system, which can be used to easily build out-of-tree modules for ITOS. The idea is that a kernel module source package will Build-Depend: on the kernel-dev package, and then do something like: make -C /lib/modules/$(KVER)/build M=$(CURDIR)/my_driver and voila! you get a .ko file in my_driver/. However, I don't know yet how to determine the value for KVER. In Diablo and Chinook this is 2.6.21-omap1. Usually this is computed as `uname -r`, but in scratchbox this won't work (will return the kernel release for the host OS, not for Diablo). Is there any easy way to determine the kernel version for target OS in scratchbox? Also a related question: what packages are installed in autobuilder besides maemo-sdk-rootstrap? I see that the rootstrap does not contain the gtk/hildon stuff, so some more packages are somehow installed by default... Why I ask this - I found that somehow I got the kernel-diablo-modules package installed in my scratchbox environment, and it contains a link /lib/modules/current which contains a link to /lib/modules/$(KVER), so you could do just 'make -C /lib/modules/current/build' instead. -- 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/20080812/d718956e/attachment.pgp
- Previous message: portaudio
- Next message: Determining target kernel version in scratchbox
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]