artik053/openocd: copy libusb.dll to the output directory
In Windows, executable file of openocd needs to refer the
LIBUSB DLL file.
This commit fixes to include the LIBUSB DLL FILE in the output.
@@ -392,8 +392,15 @@ EOF
}
packaging() {
+ if [ ! -e $copyDir/$HOST ]; then
+ mkdir -p $copyDir/$HOST
+ fi
+ if [ $OSTYPE == "msys" ]; then
+ cp $INSTALL_DIR/bin/libusb-1.0.dll $copyDir/$HOST/
+ EXT=".exe"
+ fi
cp -r $buildDir/openocd-install/share/openocd/scripts $copyDir
- cp $buildDir/openocd-install/bin/openocd $copyDir/$HOST/
+ cp $buildDir/openocd-install/bin/openocd$EXT $copyDir/$HOST/
}
cleanup() {
