]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-yocto: exit on non-zero return code
authorBruce Ashfield <bruce.ashfield@windriver.com>
Fri, 2 Dec 2016 21:09:25 +0000 (16:09 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 7 Dec 2016 10:45:59 +0000 (10:45 +0000)
Historically the processing of kernel meta data contained some
commands that exited with a non-zero return code. Special processing
was required to properly deal with their exit.

That is no longer true, and instead of handling all return codes
and doing an explicit 'exit' call, we can remove set -e from the
routine and have all errors be trapped and stop processing.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/kernel-yocto.bbclass

index 6160a29ecb765b8394cc152e5918996402d1bca8..7c32c966461088aad95c2eb446aee997cb764f78 100644 (file)
@@ -61,7 +61,6 @@ def get_machine_branch(d, default):
     return default
 
 do_kernel_metadata() {
-       set +e
        cd ${S}
        export KMETA=${KMETA}