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>
This commit is contained in:
Martin Kelly
2018-06-04 16:05:59 -07:00
committed by Richard Purdie
parent d7bd3d6575
commit 27f593ebd2

View File

@@ -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