File tree Expand file tree Collapse file tree 3 files changed +20
-21
lines changed Expand file tree Collapse file tree 3 files changed +20
-21
lines changed Original file line number Diff line number Diff line change 26
26
-X {{.CONFIGURATION_PACKAGE}}.Commit={{.COMMIT}}
27
27
-X {{.CONFIGURATION_PACKAGE}}.Timestamp={{.TIMESTAMP}}
28
28
'
29
- tasks : {}
29
+ DFU_UTIL_VERSION : dfu-util-0.11
30
+
31
+ tasks :
32
+ download-dfu-util :
33
+ desc : download dfu-util and copy the files in the correct dir
34
+ cmds :
35
+ - |
36
+ if [ -d "{{.DFU_UTIL_VERSION}}" ];
37
+ then
38
+ echo "{{.DFU_UTIL_VERSION}} already downloaded (directory exists)."
39
+ else
40
+ echo "Downloading {{.DFU_UTIL_VERSION}}..."
41
+ curl https://dfu-util.sourceforge.net/releases/{{.DFU_UTIL_VERSION}}.tar.gz -s | tar xz
42
+
43
+ cp {{.DFU_UTIL_VERSION}}/src/dfuse_mem.c dfu-util_dfuse_mem.c
44
+ cp {{.DFU_UTIL_VERSION}}/src/dfu_util.c dfu-util_dfu_util.c
45
+ cp {{.DFU_UTIL_VERSION}}/src/quirks.c dfu-util_quirks.c
46
+ # for some reason quirks.c has the exec flag set
47
+ chmod -x dfu-util_quirks.c
48
+ fi
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments