All of lore.kernel.org
 help / color / mirror / Atom feed
* package for kernel module devel?
@ 2010-01-22 11:03 Steffen Sledz
  2010-01-30 22:40 ` GNUtoo
  2010-01-31  9:06 ` Koen Kooi
  0 siblings, 2 replies; 3+ messages in thread
From: Steffen Sledz @ 2010-01-22 11:03 UTC (permalink / raw)
  To: openembedded-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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: package for kernel module devel?
  2010-01-22 11:03 package for kernel module devel? Steffen Sledz
@ 2010-01-30 22:40 ` GNUtoo
  2010-01-31  9:06 ` Koen Kooi
  1 sibling, 0 replies; 3+ messages in thread
From: GNUtoo @ 2010-01-30 22:40 UTC (permalink / raw)
  To: openembedded-devel

On Fri, 2010-01-22 at 12:03 +0100, Steffen Sledz wrote:
> 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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: package for kernel module devel?
  2010-01-22 11:03 package for kernel module devel? Steffen Sledz
  2010-01-30 22:40 ` GNUtoo
@ 2010-01-31  9:06 ` Koen Kooi
  1 sibling, 0 replies; 3+ messages in thread
From: Koen Kooi @ 2010-01-31  9:06 UTC (permalink / raw)
  To: openembedded-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 22-01-10 12:03, Steffen Sledz wrote:
> 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-----




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-01-31  9:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-22 11:03 package for kernel module devel? Steffen Sledz
2010-01-30 22:40 ` GNUtoo
2010-01-31  9:06 ` Koen Kooi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.