[bitbake-devel] Question about shipping files to package.

Wayne Li waynli329 at gmail.com
Thu Dec 5 22:25:41 UTC 2019


Dear Yocto Developers,

So I created a bitbake recipe to integrate kvm into my image as an
out-of-tree kernel module.  Here's my recipe right now:

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=c616d0e7924e9e78ee192d99a3b26fbd"

inherit module

SRC_URI =
"file:///homead/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-virtualization/recipes-kernel/kvm-kmodule/kvm-kmod-3.10.21.tar.bz2"

S = "${WORKDIR}/kvm-kmod-3.10.21"

do_configure() {
    ./configure --arch=ppc64
--kerneldir=/homead/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/work/t4240rdb_64b-fsl-linux/kernel-devsrc/1.0-r0/image/usr/src/kernel
}

FILES_${PN} += "/lib/modules/4.1.8-rt8+gbd51baf"

Bitbaking this recipe completes with no problems but no kernel module is
created (compiling the source code should create a kernel module file
kvm.ko).  I was wondering if the problem might be because of what I set
FILES_${PN} to be.  Before I set the FILES variable I was getting an error
saying something along the lines of, "Files/directories were installed but
not shipped."  Then I more or less just guessed a directory and set my
FILES variable to it and then the recipe finished bitbaking with no errors.

But now that the kvm.ko file isn't even being created, I am wondering if it
might be because I set the FILES variable wrong?  What does the word "ship"
mean?  And along those lines what exactly is a "package" in the setting of
Yocto project?

-Thanks!, Wayne Li
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20191205/af7bb958/attachment.html>


More information about the bitbake-devel mailing list