]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-yocto: Stop the build if defconfig is missing
authorSaul Wold <sgw@linux.intel.com>
Mon, 4 Dec 2017 15:39:24 +0000 (10:39 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 6 Jan 2018 10:11:42 +0000 (10:11 +0000)
The bberror does not stop the build correctly, this should be a
bbfatal_log to ensure the failure correctly stops the build and logs
the failure.

Part of
[YOCTO #12162]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 44ff06635e7f575e67b7ebba5d6900b8ddbc4a06)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/kernel-yocto.bbclass

index 98ec78fb7680bf8e5d3dbcb89d7d0279c6e3f3aa..2edf0fd15788a222587f94f9fce95cdbe635f0e7 100644 (file)
@@ -146,7 +146,7 @@ do_kernel_metadata() {
        if [ -z "$bsp_definition" ]; then
                echo "$sccs" | grep -q defconfig
                if [ $? -ne 0 ]; then
-                       bberror "Could not locate BSP definition for ${KMACHINE}/${LINUX_KERNEL_TYPE} and no defconfig was provided"
+                       bbfatal_log "Could not locate BSP definition for ${KMACHINE}/${LINUX_KERNEL_TYPE} and no defconfig was provided"
                fi
        fi
        meta_dir=$(kgit --meta)