Skip to content

Commit 7808102

Browse files
committed
Describe build dependencies
First iteration, formatting reflects exisiting Workbench implementation
1 parent f01a75e commit 7808102

File tree

2 files changed

+210
-2
lines changed

2 files changed

+210
-2
lines changed

.workbench/manifest.json

Lines changed: 209 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,209 @@
1+
{
2+
"version": "1.0.0",
3+
"toolchains": [
4+
{
5+
"firmware": "deviceOS@source",
6+
"compilers": "[email protected]",
7+
"debuggers": "[email protected]",
8+
"platforms": [6, 8, 10, 12, 13, 14, 23],
9+
"scripts": "[email protected]",
10+
"tools": "[email protected]"
11+
}
12+
],
13+
"compilers": {
14+
"windows": {
15+
"x64": [
16+
{
17+
"name": "gcc-arm",
18+
"version": "5.3.1",
19+
"main": "./bin",
20+
"url": "https://binaries.particle.io/gcc-arm/windows/x64/gcc-arm-v5.3.1.tar.gz",
21+
"sha256": "9d5106811e6ad8f3fd63ac266fb3e6e31798e14333b50f849130f604e331ba3d"
22+
}
23+
],
24+
"x86": [
25+
]
26+
},
27+
"darwin": {
28+
"x64": [
29+
{
30+
"name": "gcc-arm",
31+
"version": "5.3.1",
32+
"main": "./bin",
33+
"url": "https://binaries.particle.io/gcc-arm/darwin/x64/gcc-arm-v5.3.1.tar.gz",
34+
"sha256": "f41f32436188c3017422635b187378c8bf0938a3ad396506b2d3b8ce1fb402c9"
35+
}
36+
],
37+
"x86": [
38+
]
39+
},
40+
"linux": {
41+
"x64": [
42+
{
43+
"name": "gcc-arm",
44+
"version": "5.3.1",
45+
"main": "./bin",
46+
"url": "https://binaries.particle.io/gcc-arm/linux/x64/gcc-arm-v5.3.1.tar.gz",
47+
"sha256": "99c8dc248a6f39c92268d680fc661b51b38b773db1148204cdf59792d170bfdc"
48+
}
49+
],
50+
"x86": [
51+
]
52+
}
53+
},
54+
"debuggers": {
55+
"windows": {
56+
"x64": [
57+
{
58+
"name": "openocd",
59+
"version": "0.11.2-adhoc6ea4372.0",
60+
"main": ".",
61+
"url": "https://binaries.particle.io/openocd/windows/x64/openocd-v0.11.2-adhoc6ea4372.0.tar.gz",
62+
"sha256": "790954533100e5bd6c2e22085c6c7b099176c51d798fde9895779e12562ee134"
63+
}
64+
],
65+
"x86": [
66+
]
67+
},
68+
"darwin": {
69+
"x64": [
70+
{
71+
"name": "openocd",
72+
"version": "0.11.2-adhoc6ea4372.0",
73+
"main": ".",
74+
"url": "https://binaries.particle.io/openocd/darwin/x64/openocd-v0.11.2-adhoc6ea4372.0.tar.gz",
75+
"sha256": "c2b30c3e933d69c7b9608c7814dbc998e775a6c104c144c567f2835e3f0d862c"
76+
}
77+
],
78+
"x86": [
79+
]
80+
},
81+
"linux": {
82+
"x64": [
83+
{
84+
"name": "openocd",
85+
"version": "0.11.2-adhoc6ea4372.0",
86+
"main": ".",
87+
"url": "https://binaries.particle.io/openocd/linux/x64/openocd-v0.11.2-adhoc6ea4372.0.tar.gz",
88+
"sha256": "42272bd1f012af43bb2fd80656e9f08a04e97bc8ffdc2d1e3e5062ea46ce657e"
89+
}
90+
],
91+
"x86": [
92+
]
93+
}
94+
},
95+
"platforms": [
96+
{
97+
"id": 6,
98+
"name": "photon",
99+
"generation": 2
100+
},
101+
{
102+
"id": 10,
103+
"name": "electron",
104+
"generation": 2
105+
},
106+
{
107+
"id": 12,
108+
"name": "argon",
109+
"generation": 3
110+
},
111+
{
112+
"id": 13,
113+
"name": "boron",
114+
"generation": 3
115+
},
116+
{
117+
"id": 14,
118+
"name": "xenon",
119+
"generation": 3
120+
},
121+
{
122+
"id": 23,
123+
"name": "bsom",
124+
"generation": 3
125+
}
126+
],
127+
"scripts": {
128+
"windows": {
129+
"x64": [
130+
{
131+
"name": "buildscripts",
132+
"version": "1.7.1",
133+
"main": ".",
134+
"url": "https://binaries.particle.io/buildscripts/windows/x64/buildscripts-v1.7.1.tar.gz",
135+
"sha256": "62ff21eba93c7d67a0a732499d3af47df1c497be043e715c466ba4004b830ba9"
136+
}
137+
],
138+
"x86": [
139+
]
140+
},
141+
"darwin": {
142+
"x64": [
143+
{
144+
"name": "buildscripts",
145+
"version": "1.7.1",
146+
"main": ".",
147+
"url": "https://binaries.particle.io/buildscripts/darwin/x64/buildscripts-v1.7.1.tar.gz",
148+
"sha256": "62ff21eba93c7d67a0a732499d3af47df1c497be043e715c466ba4004b830ba9"
149+
}
150+
],
151+
"x86": [
152+
]
153+
},
154+
"linux": {
155+
"x64": [
156+
{
157+
"name": "buildscripts",
158+
"version": "1.7.1",
159+
"main": ".",
160+
"url": "https://binaries.particle.io/buildscripts/linux/x64/buildscripts-v1.7.1.tar.gz",
161+
"sha256": "62ff21eba93c7d67a0a732499d3af47df1c497be043e715c466ba4004b830ba9"
162+
}
163+
],
164+
"x86": [
165+
]
166+
}
167+
},
168+
"tools": {
169+
"windows": {
170+
"x64": [
171+
{
172+
"name": "buildtools",
173+
"version": "1.1.1",
174+
"main": "./bin",
175+
"url": "https://binaries.particle.io/buildtools/windows/x64/buildtools-v1.1.1.tar.gz",
176+
"sha256": "674c9c0bca32f8f6345199e7f97834476182210c9e15a79eb4942df8988c28fe"
177+
}
178+
],
179+
"x86": [
180+
]
181+
},
182+
"darwin": {
183+
"x64": [
184+
{
185+
"name": "buildtools",
186+
"version": "1.1.1",
187+
"main": ".",
188+
"url": "https://binaries.particle.io/buildtools/darwin/x64/buildtools-v1.1.1.tar.gz",
189+
"sha256": "789f7b5bdd4213b5bb5e57f3aad4f99ff775fff721bef40c65b8abf59c57c630"
190+
}
191+
],
192+
"x86": [
193+
]
194+
},
195+
"linux": {
196+
"x64": [
197+
{
198+
"name": "buildtools",
199+
"version": "1.1.1",
200+
"main": ".",
201+
"url": "https://binaries.particle.io/buildtools/linux/x64/buildtools-v1.1.1.tar.gz",
202+
"sha256": "a7c15b28966ed4d77d010001eee19de4385732e765c199051bc3bcdfb1e55846"
203+
}
204+
],
205+
"x86": [
206+
]
207+
}
208+
}
209+
}

scripts/fetch-buildpack

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
BUILDPACK_FILES=$(mkdir buildpack && wget https://api.github.com/repos/particle-iot/firmware-buildpack-builder/tarball/0.0.8 -O - | tar -xvz -C buildpack --strip-components 1)
1+
BUILDPACK_FILES=$(mkdir buildpack && wget https://api.github.com/repos/particle-iot/firmware-buildpack-builder/tarball/feature/unification -O - | tar -xvz -C buildpack --strip-components 1)
22
SHORT_REF=$(echo "$BUILDPACK_FILES" | head -n1 | cut -d '/' -f 1 | rev | cut -d '-' -f 1 | rev)
33
mkdir buildpack/.git
44
echo "${SHORT_REF}" > buildpack/.git/short_ref
5-

0 commit comments

Comments
 (0)