From: Bruce Ashfield Date: Wed, 1 Feb 2017 15:30:35 +0000 (-0500) Subject: kernel-yocto: log the BSP definition file X-Git-Tag: uninative-1.5~426 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=1003615b866bfe196994bdc25d305ff5eace2715;p=openembedded-core.git kernel-yocto: log the BSP definition file When debugging a kernel configuration issue, one of the first questions is "what BSP was used". To answer this qusetion, we log the BSP .scc file that was used to generate the kernel configuration in the kernel source meta directory. Signed-off-by: Bruce Ashfield Signed-off-by: Ross Burton --- diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass index 36f61c5694..a7b6356381 100644 --- a/meta/classes/kernel-yocto.bbclass +++ b/meta/classes/kernel-yocto.bbclass @@ -148,6 +148,7 @@ do_kernel_metadata() { # run1: pull all the configuration fragments, no matter where they come from elements="`echo -n ${bsp_definition} ${sccs} ${patches} ${KERNEL_FEATURES}`" if [ -n "${elements}" ]; then + echo "${bsp_definition}}" > ${S}/${meta_dir}/bsp_definition scc --force -o ${S}/${meta_dir}:cfg,merge,meta ${includes} ${bsp_definition} ${sccs} ${patches} ${KERNEL_FEATURES} if [ $? -ne 0 ]; then bbfatal_log "Could not generate configuration queue for ${KMACHINE}."