Browse Source

Add dfu-programmer binary for OS X.

master
flabbergast 7 years ago
parent
commit
ec5f5a3ed8
  1. BIN
      tools/dfu-programmer.osx
  2. 24
      tools/dfu-programmer.run.sh
  3. BIN
      tools/libusb-0.1.4.dylib
  4. BIN
      tools/libusb-1.0.0.dylib

BIN
tools/dfu-programmer.osx

Binary file not shown.

24
tools/dfu-programmer.run.sh

@ -1,7 +1,21 @@
#!/bin/bash -x
#echo RR$1RR RR$2RR RR$3RR RR$4RR RR$5RR RR$6RR RR$7RR
PATH=$PATH:/usr/local/bin
dfu-programmer $1 erase
dfu-programmer $@
dfu-programmer $1 reset
# determine the dir where we reside
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
# determine platform/arch
PLATFORM=`uname`
ARCH=`uname -m`
#PATH=$PATH:/usr/local/bin
DFU_COMMAND=dfu-programmer
if [[ $PLATFORM == "Darwin" ]]; then
DFU_COMMAND="$DIR/dfu-programmer.osx"
elif [[ $PLATFORM == "Linux" ]]; then
if [[ $ARCH == "x86_64" ]]; then
DFU_COMMAND="$DIR/dfu-programmer.linux.x86_64"
elif [[ $ARCH == "i386" ]]; then
DFU_COMMAND="$DIR/dfu-programmer.linux.i386"
fi
fi
"$DFU_COMMAND" $1 erase
"$DFU_COMMAND" $@
"$DFU_COMMAND" $1 reset
exit 0

BIN
tools/libusb-0.1.4.dylib

Binary file not shown.

BIN
tools/libusb-1.0.0.dylib

Binary file not shown.
Loading…
Cancel
Save