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

Commit b372792

Browse files
author
David Hunt
committed
Added linusb libraries, needed for stand-alone dfu-util
Signed-off-by: David Hunt <[email protected]>
1 parent a91edf2 commit b372792

File tree

6 files changed

+58
-4
lines changed

6 files changed

+58
-4
lines changed

clupload/cluploadEDU_osx.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/sh
2-
32
echo "starting download script"
43
echo "Args to shell:" $*
54
#
@@ -17,15 +16,18 @@ host_file_name=$2
1716
bin_file_name=${host_file_name/elf/bin}
1817
echo "BIN FILE" $bin_file_name
1918

19+
#DFU=DYNLD_LIBRARY_PATH=$fixed_path $fixed_path/dfu-util
20+
DYLD_LIBRARY_PATH=$fixed_path
2021
DFU=$fixed_path/dfu-util
2122

2223
echo "wating for device... "
23-
f=`$DFU -l | grep 8087:0a99 | grep sensor_core | cut -f 1 -d ' '`
24+
f=`DYLD_LIBRARY_PATH=$fixed_path $DFU -l | grep 8087:0a99 | grep sensor_core | cut -f 1 -d ' '`
2425
while [ "x$f" = "x" ]
2526
do
2627
sleep 1
27-
f=`$DFU -l | grep 8087:0a99 | grep sensor_core | cut -f 1 -d ' '`
28+
echo $DFU
29+
f=`DYLD_LIBRARY_PATH=$fixed_path $DFU -l | grep 8087:0a99 | grep sensor_core | cut -f 1 -d ' '`
2830
done
2931

3032
echo "Using dfu-util to send " $bin_file_name
31-
$DFU -d8087:0a99 -D $bin_file_name -v --alt 7 -R
33+
DYLD_LIBRARY_PATH=$fixed_path $DFU -d8087:0a99 -D $bin_file_name -v --alt 7 -R

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)