Openembedded Core Discussions
 help / color / mirror / Atom feed
* kernel: building target-arch scripts/* to include in kernel-headers package
@ 2012-06-25 23:33 Darren Hart
  2012-06-26  5:19 ` Khem Raj
  0 siblings, 1 reply; 7+ messages in thread
From: Darren Hart @ 2012-06-25 23:33 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

I'm working on a patch series to provide a kernel-headers package which
allows for the compilation of Linux kernel modules on the target. I
currently have something working, but it requires that I first build the
scripts/* binaries on the target, prior to trying to build a module.

	# cd /usr/src/kernel-headers
	# make scripts

Then I can build modules:

	# cd /home/root/hello-mod/files
	# export KERNEL_SRC=/usr/src/kernel-headers
	# make

And test:

	# insmod hello.ko
	# rmmod hello.ko
	# dmesg | tail -n2
	Hello World!
	Goodbye Cruel World!

I would like to package the target-arch scripts binaries with the
kernel-headers package, but I'm not sure how to go about building both
the native and the target binaries as part of the kernel building
process. Does it make sense to build these as part of the do_install()
task after I've moved the files from the linux recipe's workdir and
removed the host-arch binaries from scripts?

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel




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

end of thread, other threads:[~2012-06-26 17:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-25 23:33 kernel: building target-arch scripts/* to include in kernel-headers package Darren Hart
2012-06-26  5:19 ` Khem Raj
2012-06-26  5:53   ` Khem Raj
2012-06-26 16:15     ` Darren Hart
2012-06-26 15:58   ` Darren Hart
2012-06-26 16:27     ` Koen Kooi
2012-06-26 17:12       ` Darren Hart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox