summaryrefslogtreecommitdiffstats
path: root/meta/files
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2024-10-09 01:56:47 -0700
committerSteve Sakoman <steve@sakoman.com>2024-11-27 06:27:26 -0800
commit48948810c975cf55ef54d8fed94f2f5792b95071 (patch)
tree2c43b434e2b2ea53fc15bb851009d7263abc6674 /meta/files
parent2208ff6ccba9d6a19eadde369a7c303277e98b0a (diff)
downloadpoky-48948810c975cf55ef54d8fed94f2f5792b95071.tar.gz
toolchain-shar-extract.sh: exit when post-relocate-setup.sh fails
When LD_LIBRARY_PATH is set, post-relocate-setup.sh will fail and exit properly. But such failure is ignored and the SDK installation will continue and tell user that things succeed. This is misleading. So exit immediately if post-relocate-setup.sh fails. Fixes [Yocto #15586] (From OE-Core rev: 7050f445081801555614b264e1932e55538a7127) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit c8e2dcc1f71aa33cc6e56dfdebebbe7ef010c944) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/files')
-rw-r--r--meta/files/toolchain-shar-extract.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/files/toolchain-shar-extract.sh b/meta/files/toolchain-shar-extract.sh
index 4386b985bb..ec5e4aa922 100644
--- a/meta/files/toolchain-shar-extract.sh
+++ b/meta/files/toolchain-shar-extract.sh
@@ -284,6 +284,10 @@ post_relocate="$target_sdk_dir/post-relocate-setup.sh"
284if [ -e "$post_relocate" ]; then 284if [ -e "$post_relocate" ]; then
285 $SUDO_EXEC sed -e "s:@SDKPATH@:$target_sdk_dir:g" -i $post_relocate 285 $SUDO_EXEC sed -e "s:@SDKPATH@:$target_sdk_dir:g" -i $post_relocate
286 $SUDO_EXEC /bin/sh $post_relocate "$target_sdk_dir" "@SDKPATH@" 286 $SUDO_EXEC /bin/sh $post_relocate "$target_sdk_dir" "@SDKPATH@"
287 if [ $? -ne 0 ]; then
288 echo "Executing $post_relocate failed"
289 exit 1
290 fi
287 $SUDO_EXEC rm -f $post_relocate 291 $SUDO_EXEC rm -f $post_relocate
288fi 292fi
289 293