]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-yocto: log the BSP definition file
authorBruce Ashfield <bruce.ashfield@windriver.com>
Wed, 1 Feb 2017 15:30:35 +0000 (10:30 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 5 Feb 2017 09:20:21 +0000 (09:20 +0000)
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 <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/kernel-yocto.bbclass

index 36f61c5694fb9552c2650b7d8dcb83c09860d385..a7b635638186c0e5f16ea48a107fc9cd03c9028f 100644 (file)
@@ -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}."