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
signature.asc
Description: PGP signature
_______________________________________________ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers