@@ -113,7 +113,7 @@ if [[ "$SKIP_OPENOCD" != 1 ]]; then
113113 echo " Packaging OpenOCD"
114114 # Package OpenOCD separately as well
115115
116- version=($( " ./$builddir /openocd-install/usr/local/bin/openocd" --version 2>&1 ) )
116+ version=($( " ./$builddir /openocd-install- $( uname -m ) /usr/local/bin/openocd" --version 2>&1 ) )
117117 version=${version[0]}
118118 version=${version[3]}
119119 version=$( echo $version | cut -d " -" -f 1)
@@ -123,22 +123,22 @@ if [[ "$SKIP_OPENOCD" != 1 ]]; then
123123 filename=" openocd-${version} -$( uname -m) -${suffix} .zip"
124124
125125 echo " Saving OpenOCD package to $filename "
126- pushd " $builddir /openocd-install/usr/local/bin"
126+ pushd " $builddir /openocd-install- $( uname -m ) /usr/local/bin"
127127 tar -a -cf " $topd /bin/$filename " * -C " ../share/openocd" " scripts"
128128 popd
129129fi
130130
131131if [[ " $SKIP_RISCV " != 1 ]]; then
132132 echo " Packaging RISC-V Toolchain"
133133 # Package riscv toolchain separately as well
134- version=$( " ./$builddir /riscv-install/bin/riscv32-unknown-elf-gcc" -dumpversion)
134+ version=$( " ./$builddir /riscv-install- $( uname -m ) /bin/riscv32-unknown-elf-gcc" -dumpversion)
135135 version=$( echo $version | cut -d " ." -f 1)
136136 echo " Risc-V Toolchain version $version "
137137
138138 filename=" riscv-toolchain-${version} -$( uname -m) -${suffix} .zip"
139139
140140 echo " Saving RISC-V Toolchain package to $filename "
141- pushd " $builddir /riscv-install/"
141+ pushd " $builddir /riscv-install- $( uname -m ) /"
142142 tar -a -cf " $topd /bin/$filename " *
143143 popd
144144fi
0 commit comments