File tree Expand file tree Collapse file tree 7 files changed +52
-24913
lines changed Expand file tree Collapse file tree 7 files changed +52
-24913
lines changed Original file line number Diff line number Diff line change @@ -2,3 +2,6 @@ compile.sh
2
2
dfu-util- * /*
3
3
dfu-discovery
4
4
* .o
5
+ dfu_util.c
6
+ dfuse_mem.c
7
+ quirks.c
Original file line number Diff line number Diff line change 6
6
else
7
7
echo " Downloading $DFU_UTIL ..."
8
8
curl https://dfu-util.sourceforge.net/releases/$DFU_UTIL .tar.gz -s | tar xz
9
- fi
10
9
11
- DEFINES=" -DHAVE_UNISTD_H -DHAVE_NANOSLEEP"
12
- INCLUDES=" -I. -Idfu-util-0.11/src -I/usr/include/libusb-1.0"
13
- gcc -c dfu-util-0.11/src/dfuse_mem.c $INCLUDES $DEFINES
14
- gcc -c dfu-util-0.11/src/dfu_util.c $INCLUDES $DEFINES
15
- gcc -c dfu-util-0.11/src/quirks.c $INCLUDES $DEFINES
16
- g++ -c main.cpp $INCLUDES $DEFINES
17
- g++ dfu_util.o quirks.o dfuse_mem.o main.o -lusb-1.0 -o dfu-discovery
10
+ cp dfu-util-0.11/src/dfuse_mem.c .
11
+ cp dfu-util-0.11/src/dfu_util.c .
12
+ cp dfu-util-0.11/src/quirks.c .
13
+ fi
Original file line number Diff line number Diff line change
1
+ module github.com/arduino/dfu-discovery
2
+
3
+ go 1.19
You can’t perform that action at this time.
0 commit comments