[meta-xilinx] Kernel module recipe
Andreas Galauner
andreas at galauner.de
Wed Sep 16 21:30:28 PDT 2015
On 17.09.2015 02:02, Edward Wingate wrote:
> Can anyone tell me what I'm doing wrong? Should I not be using the
> out-of-kernel template recipe to do this? Thanks for any help.
I encountered this kind of error as well with out-of-tree builds on fido.
It turns out, that there is a race condition when building the kernel
and out-of-tree modules where an incomplete version of the
Module.symvers file is copied from the kernel build directory into the
staging directory which is then used to build the modules.
See this thread:
http://comments.gmane.org/gmane.linux.embedded.yocto.general/24484
I don't know if this is already fixed in the current yocto master, I'm
still on fido.
I fixed this by adding these few lines to my kernel recipes:
> #fix for fido out-of-tree-module builds
> do_install_append() {
> cp -f ${KBUILD_OUTPUT}/Module.symvers ${STAGING_KERNEL_BUILDDIR}
> }
Adding these lines to a .bbappend file in your own overlay should work
as well.
- Andy
More information about the meta-xilinx
mailing list