mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
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:
committed by
Richard Purdie
parent
d7bd3d6575
commit
27f593ebd2
@@ -129,6 +129,11 @@ if [ -d "${SDKPATHNATIVE}/post-relocate-setup.d/" ]; then
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
\$s "\$1"
|
\$s "\$1"
|
||||||
|
status=\$?
|
||||||
|
if [ \$status != 0 ]; then
|
||||||
|
echo "post-relocate command \"\$s \$1\" failed with status \$status" >&2
|
||||||
|
exit \$status
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
rm -rf "${SDKPATHNATIVE}/post-relocate-setup.d"
|
rm -rf "${SDKPATHNATIVE}/post-relocate-setup.d"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user