summaryrefslogtreecommitdiffstats
path: root/meta/classes/toolchain-scripts.bbclass
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:55 +0100
commit27f593ebd271f8d4146a1b56c1b8b8879c946dfd (patch)
treecc2da46ed9be5677881bf6a6b40bc57510aeb850 /meta/classes/toolchain-scripts.bbclass
parentd7bd3d6575a9b51d0e41bd9060dac5664879ffd1 (diff)
downloadpoky-27f593ebd271f8d4146a1b56c1b8b8879c946dfd.tar.gz
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. (From OE-Core rev: 369b5f3f98f8455c79731621cc669ad1948e2022) Signed-off-by: Martin Kelly <mkelly@xevo.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/toolchain-scripts.bbclass')
-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 7e2f8be81c..779cc3f5e4 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
129 continue 129 continue
130 fi 130 fi
131 \$s "\$1" 131 \$s "\$1"
132 status=\$?
133 if [ \$status != 0 ]; then
134 echo "post-relocate command \"\$s \$1\" failed with status \$status" >&2
135 exit \$status
136 fi
132 done 137 done
133 rm -rf "${SDKPATHNATIVE}/post-relocate-setup.d" 138 rm -rf "${SDKPATHNATIVE}/post-relocate-setup.d"
134fi 139fi