Skip to content

Commit f05666b

Browse files
committed
platform: add dfu pluggable discovery
1 parent 465ceba commit f05666b

File tree

2 files changed

+84
-0
lines changed

2 files changed

+84
-0
lines changed

extras/package_index.json.template

+82
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@
4545
"version": "0.11.0-arduino5",
4646
"name": "dfu-util"
4747
}
48+
],
49+
"discoveryDependencies": [
50+
{
51+
"packager": "builtin",
52+
"name": "dfu-discovery"
53+
}
4854
]
4955
}
5056
],
@@ -98,6 +104,82 @@
98104
]
99105
}
100106
]
107+
},
108+
{
109+
"name": "builtin",
110+
"maintainer": "Arduino",
111+
"websiteURL": "http://www.arduino.cc/",
112+
"email": "[email protected]",
113+
"help": {
114+
"online": "http://www.arduino.cc/en/Reference/HomePage"
115+
},
116+
"platforms": [],
117+
"tools": [
118+
{
119+
"name": "dfu-discovery",
120+
"version": "0.1.0",
121+
"systems": [
122+
[
123+
{
124+
"host": "i686-pc-linux-gnu",
125+
"archiveFileName": "dfu-discovery_v0.1.0_Linux_32bit.tar.gz",
126+
"url": "https://downloads.arduino.cc/discovery/dfu-discovery/dfu-discovery_v0.1.0_Linux_32bit.tar.gz",
127+
"size": 1485481,
128+
"checksum": "SHA-256:37559131a867f9f27be42dcd74ed1300ab9072b14284eaa03f85cd95a171736e"
129+
},
130+
{
131+
"host": "x86_64-pc-linux-gnu",
132+
"archiveFileName": "dfu-discovery_v0.1.0_Linux_64bit.tar.gz",
133+
"url": "https://downloads.arduino.cc/discovery/dfu-discovery/dfu-discovery_v0.1.0_Linux_64bit.tar.gz",
134+
"size": 1644841,
135+
"checksum": "SHA-256:c3320382a96ac6bbcec4bcb2fd5f0607eab1e3fc990e63d64e72c2e40c694e49"
136+
},
137+
{
138+
"host": "i686-mingw32",
139+
"archiveFileName": "dfu-discovery_v0.1.0_Windows_32bit.zip",
140+
"url": "https://downloads.arduino.cc/discovery/dfu-discovery/dfu-discovery_v0.1.0_Windows_32bit.zip",
141+
"size": 2234310,
142+
"checksum": "SHA-256:220b8bff72c9ef9c87bc950d8e4e6ba69d29e09da3c38cf37f479c379e53c074"
143+
},
144+
{
145+
"host": "x86_64-mingw32",
146+
"archiveFileName": "dfu-discovery_v0.1.0_Windows_64bit.zip",
147+
"url": "https://downloads.arduino.cc/discovery/dfu-discovery/dfu-discovery_v0.1.0_Windows_64bit.zip",
148+
"size": 2282008,
149+
"checksum": "SHA-256:3ae5b5d5d9c4c4c376384c1c3c34de9d9b176f448c6012a618530ed0baa2f872"
150+
},
151+
{
152+
"host": "x86_64-apple-darwin",
153+
"archiveFileName": "dfu-discovery_v0.1.0_macOS_64bit.tar.gz",
154+
"url": "https://downloads.arduino.cc/discovery/dfu-discovery/dfu-discovery_v0.1.0_macOS_64bit.tar.gz",
155+
"size": 1867139,
156+
"checksum": "SHA-256:99656d94b76d53738195eb1490c88697745d78806656c8df90778ccf0045d6ba"
157+
},
158+
{
159+
"host": "arm64-apple-darwin",
160+
"archiveFileName": "dfu-discovery_v0.1.0_macOS_ARM64.tar.gz",
161+
"url": "https://downloads.arduino.cc/discovery/dfu-discovery/dfu-discovery_v0.1.0_macOS_ARM64.tar.gz",
162+
"size": 1791794,
163+
"checksum": "SHA-256:552ad1b1e4d618377d27b2289f8ef99d9f135e538e255deba93bf1a9d6296cce"
164+
},
165+
{
166+
"host": "arm-linux-gnueabihf",
167+
"archiveFileName": "dfu-discovery_v0.1.0_Linux_ARMv6.tar.gz",
168+
"url": "https://downloads.arduino.cc/discovery/dfu-discovery/dfu-discovery_v0.1.0_Linux_ARMv6.tar.gz",
169+
"size": 1537583,
170+
"checksum": "SHA-256:733a0bb2f195c33a9552681844010205776ff94d54ea4353062fff3a2def1e6f"
171+
},
172+
{
173+
"host": "arm64-linux-gnueabihf",
174+
"archiveFileName": "dfu-discovery_v0.1.0_Linux_ARM64.tar.gz",
175+
"url": "https://downloads.arduino.cc/discovery/dfu-discovery/dfu-discovery_v0.1.0_Linux_ARM64.tar.gz",
176+
"size": 1538436,
177+
"checksum": "SHA-256:3a4eec5b83378b638acd5e6a2f5f84cc602240c7ef247e997e244554fa299ebb"
178+
}
179+
]
180+
]
181+
}
182+
]
101183
}
102184
]
103185
}

platform.txt

+2
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,5 @@ tools.dfu-util.upload.params.quiet=
103103
# tools.dfu-util.upload.pattern="{path}/{cmd}" --device {upload.vid}:{pid.0},:{upload.pid} -D "{build.path}/{build.project_name}.bin" -a{upload.interface} -R
104104
# -Q introduced with latest dfu-util
105105
tools.dfu-util.upload.pattern="{path}/{cmd}" --device {upload.vid}:{pid.0},:{upload.pid} -D "{build.path}/{build.project_name}.bin" -a{upload.interface} -Q
106+
107+
pluggable_discovery.required=builtin:dfu-discovery

0 commit comments

Comments
 (0)