[oe-commits] [openembedded-core] 27/43: kernel-yocto: propagate configuration errors to bbclass

git at git.openembedded.org git at git.openembedded.org
Thu Jul 27 21:38:22 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch pyro
in repository openembedded-core.

commit 3470a3839577b99322c10f830cdaa61128ef6b16
Author: Bruce Ashfield <bruce.ashfield at windriver.com>
AuthorDate: Tue Jun 13 03:26:17 2017 -0400

    kernel-yocto: propagate configuration errors to bbclass
    
    As pointed out by klapperichpaul at johndeere.com, missing configuration
    fragments were being picked up twice, once by the tools and once by the
    bbclass. Unfortunately, the tools error message was being detected as
    configs, and hence no error was reported at all.
    
    Rather than catching the output of the tools, we can instead check the
    return code and propagate the error message from the tools directly to
    the user.
    
    [YOCTO #11649]
    
    Signed-off-by: Bruce Ashfield <bruce.ashfield at windriver.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    (cherry picked from commit 960652416e2390337df6d9734375d6829ceb6420)
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
 meta/classes/kernel-yocto.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index 50226f6..1ca0756 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -281,7 +281,8 @@ do_kernel_configme() {
 
 	meta_dir=$(kgit --meta)
 	configs="$(scc --configs -o ${meta_dir})"
-	if [ -z "${configs}" ]; then
+	if [ $? -ne 0 ]; then
+		bberror "${configs}"
 		bbfatal_log "Could not find configuration queue (${meta_dir}/config.queue)"
 	fi
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list