Am Dienstag, den 22.01.2013, 11:14 +0100 schrieb Darren Hart <darren.h...@intel.com>:
On 01/22/2013 12:59 AM, Christian Ege wrote:
 Hi,
 I am not sure if this is the problem you are struggling with.
I am wondering why class module.bbclass behaves completely different
 than kernel.bbclacc

 hi, I follow the kernel development manual "2.5. Incorporating
Out-of-Tree Modules",
 copy the "hello-mod_0.1.bb" and "files" folder into my taget layer
"meta-intel/meta-jasperforest/recipe-kernel", then add
"MACHINE_EXTRA_
RDEPENDS += "kernel-module-hello" in the conf/local.conf
 after build and boot, there's no "hello.ko" found in the binary
image
 also there's no hello.ko in the "tmp/work/..." folder

 If you hello-mod_0.1.bb inherits module class there is no mechanism
 to create the kernel-module package. This only applies to the
 kernel.bbclass

http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/module.bbclass http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/module-base.bbclass

 Have a look at kernel.bbclass instead shows some pathon code which
 handles the module package creation:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/kernel.bbclass#n301

I've fixed this in my layer by stealing the code from kernel.bbclass https://github.com/project-magpie/meta-stlinux/blob/master/recipes-bsp/tdt-driver/tdt-driver.inc

 With this you can also use the following extends with your module:
 module_autoload_aotom = "aotom"
 and
 module_conf_stmfb = "options stmfb
 display0=1280x720-32@50:8m:pal:yuv:yuv"

Christian, this is a really good point I hadn't considered. Would you
care to take a stab at adding this to module.bbclass and sending the
patch to the oe-core list for review? CC'ing myself?

I'll try to write a patch. Maybe tomorrow or by end of the week. I'll send it to oe-core and
to you in CC.

regrads,

Christian


Thanks,

_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to