Fixed
Created: Jan 3, 2019
Updated: Mar 6, 2019
Resolved Date: Feb 14, 2019
Found In Version: 10.17.41.13
Fix Version: 10.17.41.14
Severity: Standard
Applicable for: Wind River Linux LTS 17
Component/s: Build & Config
Devtool copies local source files which are referenced in the recipe to workspace. Seems that linux-yocto_virtualization.inc does not reference all source files which are required for running the recipe.
use the following patch that adds kernel cfg explicitly:
diff --git a/recipes-kernel/linux/linux-yocto_virtualization.inc b/recipes-kernel/linux/linux-yocto_virtualization.inc
index 9905ed9..c08ae39 100644
--- a/recipes-kernel/linux/linux-yocto_virtualization.inc
+++ b/recipes-kernel/linux/linux-yocto_virtualization.inc
@@ -1,11 +1,17 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/linux-yocto:"
SRC_URI += "file://xt-checksum.scc \
- file://ebtables.scc \
- file://vswitch.scc \
- file://lxc.scc \
- file://docker.scc \
- "
+ file://xt-checksum.cfg \
+ file://ebtables.scc \
+ file://ebtables.cfg \
+ file://vswitch.scc \
+ file://vswitch.cfg \
+ file://lxc.scc \
+ file://lxc.cfg \
+ file://docker.scc \
+ file://docker.cfg \
+ "
+
KERNEL_FEATURES_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'kvm', 'features/kvm/qemu-kvm-enable.scc', '', d)}"
KERNEL_MODULE_AUTOLOAD += "openvswitch"
To reproduce the problem init a build based on any LTS17 BSP (socfpga was used as an example) and run "devtool modify linux-yocto" and then bitbake the image as usual -> this will result in the kernel beeing built from sources under workspace and generating the following error:
ERROR: linux-yocto-4.12.28+git999-r24 do_kernel_metadata: Could not generate configuration queue for intel-socfpga-64b.
ERROR: linux-yocto-4.12.28+git999-r24 do_kernel_metadata: Function failed: do_kernel_metadata (log file is located at /var/work/torantal/build_bringup_image/build/tmp-glibc/work/stratix10_abil-wrs-linux/linux-yocto/4.12.28+git999-r24/temp/log.do_kernel_metadata.5199)
ERROR: Logfile of failure stored in: /var/work/torantal/build_bringup_image/build/tmp-glibc/work/stratix10_abil-wrs-linux/linux-yocto/4.12.28+git999-r24/temp/log.do_kernel_metadata.5199
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/var/work/torantal/build_bringup_image/layers/oe-core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: ['kern-tools-native']
| NOTE: Skipping as already exists in sysroot: ['quilt-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_kernel_metadata
| ERROR: could not find kconf xt-checksum.cfg, included from /var/work/torantal/build_bringup_image/build/workspace/sources/linux-yocto/oe-local-files/xt-checksum.scc