Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit d4e5271

Browse files
committed
Merge pull request #8 from 01org/101-osx
Open sourcing Intel Arduino Tools
2 parents b484f79 + 3fb19d6 commit d4e5271

13 files changed

+935
-0
lines changed

clupload/cluploadArduino101_osx.sh

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/sh
2+
echo "starting download script"
3+
echo "Args to shell:" $*
4+
#
5+
# ARG 1: Path to lsz executable.
6+
# ARG 2: Elf File to download
7+
# ARG 3: TTY port to use.
8+
#
9+
#path may contain \ need to change all to /
10+
path_to_exe=$1
11+
fixed_path=${path_to_exe//\\/\/}
12+
tty_port_id=$3
13+
14+
#Download the file.
15+
host_file_name=$2
16+
bin_file_name=${host_file_name/elf/bin}
17+
echo "BIN FILE" $bin_file_name
18+
19+
#DFU=DYNLD_LIBRARY_PATH=$fixed_path $fixed_path/dfu-util
20+
DYLD_LIBRARY_PATH=$fixed_path
21+
DFU="$fixed_path/dfu-util -d8087:0ABA"
22+
23+
echo "wating for device... "
24+
COUNTER=0
25+
f=`DYLD_LIBRARY_PATH=$fixed_path $DFU -l | grep sensor_core | cut -f 1 -d ' '`
26+
while [ "x$f" = "x" ] && [ $COUNTER -lt 10 ]
27+
do
28+
let COUNTER=COUNTER+1
29+
sleep 1
30+
echo $DFU
31+
f=`DYLD_LIBRARY_PATH=$fixed_path $DFU -l | grep sensor_core | cut -f 1 -d ' '`
32+
done
33+
34+
if [ "x$f" != "x" ] ; then
35+
echo "Using dfu-util to send " $bin_file_name
36+
DYLD_LIBRARY_PATH=$fixed_path $DFU -D $bin_file_name -v --alt 7 -R
37+
else
38+
echo "ERROR: Timed out waiting for Arduino 101."
39+
fi

clupload/cluploadEdison_osx.sh

100644100755
File mode changed.

clupload/cluploadGalileo_osx.sh

100644100755
File mode changed.

x86/bin/LICENSE.dfu-util

Lines changed: 340 additions & 0 deletions
Large diffs are not rendered by default.

x86/bin/LICENSE.libusb

Lines changed: 504 additions & 0 deletions
Large diffs are not rendered by default.

x86/bin/dfu-prefix

19.1 KB
Binary file not shown.

x86/bin/dfu-suffix

19.1 KB
Binary file not shown.

x86/bin/dfu-util

51.8 KB
Binary file not shown.

x86/bin/libusb-1.0.0.dylib

106 KB
Binary file not shown.

x86/bin/libusb-1.0.a

340 KB
Binary file not shown.

x86/bin/libusb-1.0.dylib

106 KB
Binary file not shown.

x86/bin/libusb-1.0.la

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# libusb-1.0.la - a libtool library file
2+
# Generated by libtool (GNU libtool) 2.4.2
3+
#
4+
# Please DO NOT delete this file!
5+
# It is necessary for linking the library.
6+
7+
# The name that we can dlopen(3).
8+
dlname='libusb-1.0.0.dylib'
9+
10+
# Names of this library.
11+
library_names='libusb-1.0.0.dylib libusb-1.0.dylib'
12+
13+
# The name of the static archive.
14+
old_library='libusb-1.0.a'
15+
16+
# Linker flags that can not go in dependency_libs.
17+
inherited_linker_flags=' '
18+
19+
# Libraries that this one depends upon.
20+
dependency_libs=' -lobjc'
21+
22+
# Names of additional weak libraries provided by this library
23+
weak_library_names=''
24+
25+
# Version information for libusb-1.0.
26+
current=1
27+
age=1
28+
revision=0
29+
30+
# Is this an already installed library?
31+
installed=yes
32+
33+
# Should we warn about portability when linking against -modules?
34+
shouldnotlink=no
35+
36+
# Files to dlopen/dlpreopen
37+
dlopen=''
38+
dlpreopen=''
39+
40+
# Directory that this library needs to be installed in:
41+
libdir='/tmp/dfu-util-macos/lib'

x86/bin/pkgconfig/libusb-1.0.pc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
prefix=/tmp/dfu-util-macos
2+
exec_prefix=${prefix}
3+
libdir=${exec_prefix}/lib
4+
includedir=${prefix}/include
5+
6+
Name: libusb-1.0
7+
Description: C API for USB device access from Linux, Mac OS X, Windows and OpenBSD/NetBSD userspace
8+
Version: 1.0.19
9+
Libs: -L${libdir} -lusb-1.0
10+
Libs.private: -lobjc -Wl,-framework,IOKit -Wl,-framework,CoreFoundation
11+
Cflags: -I${includedir}/libusb-1.0

0 commit comments

Comments
 (0)