package for kernel module devel?
Our team is developing new kernel modules for our machine. For fast development cycles it would be very helpful to be able to compile the modules at the machine itself.
By installing task-native-sdk & Co. nearly all needed stuff is available but i miss the linux kernel headers and the corresponding link to them (/lib/modules/x.x.x.x/build). :(
Does a package exist for this (or for the complete kernel sources)?
Steffen
Quoted 11 lines · Steffen Sledz
Our team is developing new kernel modules for our machine. For fast development cycles it would be very helpful to be able to compile the modules at the machine itself.
By installing task-native-sdk & Co. nearly all needed stuff is available but i miss the linux kernel headers and the corresponding link to them (
/lib/modules/x.x.x.x/build). :(Does a package exist for this (or for the complete kernel sources)?
Steffen
I am not aware of a package which install /lib/modules/x.x.x.x/build (It may exist)
but there are other possibilities:
With the build on an external build machine:
--------------------------------------------
*build the kernel on a build machine and tftpboot the kernel(if the bootloader permits it) which would boot on a NFS share which would contain the modules
*Variants: simply use a NFS share for the external modules and boot your kernel normally
Make the target machine build the kernel modules(would be slow,could be some ram usage issues depending on your machine speed and ram quantity and usage):
--------------------------------------------------
*according to my distro:
lrwxrwxrwx. 1 root root 21 2009-09-16 19:52 build
-> /usr/src/linux-2.6.31
so that simply points to the entire source of the kernel... So simply add a simlink that point to the sources
(the sources could be on your local storage device or could be an NFS share...)
Denis.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 9 lines · Steffen Sledz
Our team is developing new kernel modules for our machine. For fast development cycles it would be very helpful to be able to compile the modules at the machine itself.
By installing task-native-sdk & Co. nearly all needed stuff is available but i miss the linux kernel headers and the corresponding link to them (
/lib/modules/x.x.x.x/build). :(Does a package exist for this (or for the complete kernel sources)?
The easiest way to do that would be to add something like this to kernel.bbclass:
do_install() {
..
oe_runmake headers_install INSTALL_HDR_PATH=${D}${exec_prefix} ARCH=$ARCH }
And package those up.
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFLZUgFMkyGM64RGpERApq9AKCP3ImgTzjNcM3Z8+R/9UhhbrMnVgCfYW3k tYs4OES4EbonVmi8cuCVpYs=
=Bl/6
-----END PGP SIGNATURE-----