aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Kelly <mkelly@xevo.com>2018-06-04 16:05:59 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-06-07 08:52:13 +0100
commit369b5f3f98f8455c79731621cc669ad1948e2022 (patch)
tree1ed0b59a10a445336c84ce03afa99a54a3c5fcb7
parent5569a6ec6d3c4358719350cac88afa69a76097a8 (diff)
downloadopenembedded-core-contrib-369b5f3f98f8455c79731621cc669ad1948e2022.tar.gz
openembedded-core-contrib-369b5f3f98f8455c79731621cc669ad1948e2022.tar.bz2
openembedded-core-contrib-369b5f3f98f8455c79731621cc669ad1948e2022.zip
toolchain-scripts: print post-relocate error
Currently, if a post-relocate script fails, it fails silently. We should be louder about this, as it likely indicates a broken SDK. Print a message if a post-relocate script fails. Signed-off-by: Martin Kelly <mkelly@xevo.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/toolchain-scripts.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass
index 7e2f8be81cf..779cc3f5e42 100644
--- a/meta/classes/toolchain-scripts.bbclass
+++ b/meta/classes/toolchain-scripts.bbclass
@@ -129,6 +129,11 @@ if [ -d "${SDKPATHNATIVE}/post-relocate-setup.d/" ]; then
continue
fi
\$s "\$1"
+ status=\$?
+ if [ \$status != 0 ]; then
+ echo "post-relocate command \"\$s \$1\" failed with status \$status" >&2
+ exit \$status
+ fi
done
rm -rf "${SDKPATHNATIVE}/post-relocate-setup.d"
fi