summaryrefslogtreecommitdiffstats
path: root/meta/files
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2024-10-09 01:56:47 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-10-11 12:17:02 +0100
commita24875260426249ead98b4ea3a1566b45f929905 (patch)
tree220438c293ed2ff502912f3532281f83381756e0 /meta/files
parent50a289e0d96320e4786c41853ea68dae293e30fe (diff)
downloadpoky-a24875260426249ead98b4ea3a1566b45f929905.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: c8e2dcc1f71aa33cc6e56dfdebebbe7ef010c944) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 89d30005fd..3b4647fca7 100644
--- a/meta/files/toolchain-shar-extract.sh
+++ b/meta/files/toolchain-shar-extract.sh
@@ -286,6 +286,10 @@ post_relocate="$target_sdk_dir/post-relocate-setup.sh"
286if [ -e "$post_relocate" ]; then 286if [ -e "$post_relocate" ]; then
287 $SUDO_EXEC sed -e "s:@SDKPATH@:$target_sdk_dir:g" -i $post_relocate 287 $SUDO_EXEC sed -e "s:@SDKPATH@:$target_sdk_dir:g" -i $post_relocate
288 $SUDO_EXEC /bin/sh $post_relocate "$target_sdk_dir" "@SDKPATH@" 288 $SUDO_EXEC /bin/sh $post_relocate "$target_sdk_dir" "@SDKPATH@"
289 if [ $? -ne 0 ]; then
290 echo "Executing $post_relocate failed"
291 exit 1
292 fi
289 $SUDO_EXEC rm -f $post_relocate 293 $SUDO_EXEC rm -f $post_relocate
290fi 294fi
291 295