Skip to content

Commit 342a162

Browse files
committed
Fix tar expansion with older version of tar
Need to explicit pass flags to tar as older versions don't auto handle the compression. Fixes: #61 Signed-off-by: Kumar Gala <[email protected]>
1 parent 4bc5f9f commit 342a162

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

scripts/make_zephyr_sdk.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,56 +74,56 @@ echo "SDK_VERSION=${sdk_version}" >> $setup
7474
cat template_dir >>$setup
7575

7676
if [ -n "$file_gcc_x86" ]; then
77-
echo "tar -C \$target_sdk_dir -xf ./$file_gcc_x86 > /dev/null &" >> $setup
77+
echo "tar -C \$target_sdk_dir -jxf ./$file_gcc_x86 > /dev/null &" >> $setup
7878
echo "spinner \$! \"Installing x86 tools...\"" >> $setup
7979
echo "[ \$? -ne 0 ] && echo \"Error(s) encountered during installation.\" && exit 1" >>$setup
8080
echo "echo \"\"" >>$setup
8181
fi
8282

8383
if [ -n "$file_gcc_arm" ]; then
84-
echo "tar -C \$target_sdk_dir -xf ./$file_gcc_arm > /dev/null &" >> $setup
84+
echo "tar -C \$target_sdk_dir -jxf ./$file_gcc_arm > /dev/null &" >> $setup
8585
echo "spinner \$! \"Installing arm tools...\"" >> $setup
8686
echo "[ \$? -ne 0 ] && echo \"Error(s) encountered during installation.\" && exit 1" >>$setup
8787
echo "echo \"\"" >>$setup
8888
fi
8989

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

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

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

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

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

125125
if [ -n "$file_gcc_riscv32" ]; then
126-
echo "tar -C \$target_sdk_dir -xf ./$file_gcc_riscv32 > /dev/null &" >> $setup
126+
echo "tar -C \$target_sdk_dir -jxf ./$file_gcc_riscv32 > /dev/null &" >> $setup
127127
echo "spinner \$! \"Installing riscv32 tools...\"" >> $setup
128128
echo "[ \$? -ne 0 ] && echo \"Error(s) encountered during installation.\" && exit 1" >>$setup
129129
echo "echo \"\"" >>$setup

0 commit comments

Comments
 (0)