Skip to content

Commit 789f532

Browse files
committed
scripts: fix self-extracting script
Add missing tar command for extraction. Signed-off-by: Anas Nashif <[email protected]>
1 parent f411725 commit 789f532

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/make_zephyr_sdk.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,42 +89,42 @@ echo "SDK_VERSION=${sdk_version}" >> $setup
8989
cat template_dir >>$setup
9090

9191
if [ -n "$file_gcc_x86" ]; then
92-
echo "tar -C \$target_sdk_dir ./$file_gcc_x86 > /dev/null &" >> $setup
92+
echo "tar -C \$target_sdk_dir -xf ./$file_gcc_x86 > /dev/null &" >> $setup
9393
echo "spinner \$! \"Installing x86 tools...\"" >> $setup
9494
echo "[ \$? -ne 0 ] && echo \"Error(s) encountered during installation.\" && exit 1" >>$setup
9595
echo "echo \"\"" >>$setup
9696
fi
9797

9898
if [ -n "$file_gcc_arm" ]; then
99-
echo "tar -C \$target_sdk_dir ./$file_gcc_arm > /dev/null &" >> $setup
99+
echo "tar -C \$target_sdk_dir -xf ./$file_gcc_arm > /dev/null &" >> $setup
100100
echo "spinner \$! \"Installing arm tools...\"" >> $setup
101101
echo "[ \$? -ne 0 ] && echo \"Error(s) encountered during installation.\" && exit 1" >>$setup
102102
echo "echo \"\"" >>$setup
103103
fi
104104

105105
if [ -n "$file_gcc_arc" ]; then
106-
echo "tar -C \$target_sdk_dir ./$file_gcc_arc > /dev/null &" >> $setup
106+
echo "tar -C \$target_sdk_dir -xf ./$file_gcc_arc > /dev/null &" >> $setup
107107
echo "spinner \$! \"Installing arc tools...\"" >> $setup
108108
echo "[ \$? -ne 0 ] && echo \"Error(s) encountered during installation.\" && exit 1" >>$setup
109109
echo "echo \"\"" >>$setup
110110
fi
111111

112112
if [ -n "$file_gcc_iamcu" ]; then
113-
echo "tar -C \$target_sdk_dir ./$file_gcc_iamcu > /dev/null &" >> $setup
113+
echo "tar -C \$target_sdk_dir -xf ./$file_gcc_iamcu > /dev/null &" >> $setup
114114
echo "spinner \$! \"Installing iamcu tools...\"" >> $setup
115115
echo "[ \$? -ne 0 ] && echo \"Error(s) encountered during installation.\" && exit 1" >>$setup
116116
echo "echo \"\"" >>$setup
117117
fi
118118

119119
if [ -n "$file_gcc_mips" ]; then
120-
echo "tar -C \$target_sdk_dir ./$file_gcc_mips > /dev/null &" >> $setup
120+
echo "tar -C \$target_sdk_dir -xf ./$file_gcc_mips > /dev/null &" >> $setup
121121
echo "spinner \$! \"Installing mips tools...\"" >> $setup
122122
echo "[ \$? -ne 0 ] && echo \"Error(s) encountered during installation.\" && exit 1" >>$setup
123123
echo "echo \"\"" >>$setup
124124
fi
125125

126126
if [ -n "$file_gcc_nios2" ]; then
127-
echo "tar -C \$target_sdk_dir ./$file_gcc_nios2 > /dev/null &" >> $setup
127+
echo "tar -C \$target_sdk_dir -xf ./$file_gcc_nios2 > /dev/null &" >> $setup
128128
echo "spinner \$! \"Installing nios2 tools...\"" >> $setup
129129
echo "[ \$? -ne 0 ] && echo \"Error(s) encountered during installation.\" && exit 1" >>$setup
130130
echo "echo \"\"" >>$setup

0 commit comments

Comments
 (0)