Developing lightweight computation at the DSG edge

qmp.profiles.conf 20.8 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
SUPPORTED_PROFILES="comfast_cf-e120a-v3 comfast_cf-wr800n \
dlink_dir-810l \
mediatek_linkit-smart-7688 \
microduino_microwrt \
nexx_wt1520-8M nexx_wt3020-8M \
pc-engines_alix \
phicomm_k2p \
soekris_45xx \
sun7i_a20-lamobo-r1 \
tplink_cpe510-v1 tplink_cpe510-v2 tplink_cpe510-v3 tplink_cpe610-v1 \
tplink_tl-wr2543-v1 tplink_tl-wdr3500-v1 tplink_tl-wdr3600-v1 \
tplink_tl-wdr4300-v1 tplink_tl-wdr4900-v1 \
tplink_tl-wr842n-v1 tplink_tl-wr842n-v2 tplink_tl-wr842n-v \
14
ubiquiti_edgerouterx ubiquiti_edgerouterx-sfp \
15
ubnt_bullet-m ubnt_bullet-m-xw ubnt_lap-120 ubnt_lap-120_ath10k-qca988x \
16
17
18
19
ubnt_nanostation-ac ubnt_nanostation-ac_ath10k-qca988x \
ubnt_nanostation-ac-loco ubnt_nanostation-ac-loco_ath10k-qca988x \
ubnt_nanostation-m ubnt_nanostation-m-xw \
ubnt_nanostation-loco-m-xw ubnt_nanostation-m-loco \
20
ubnt_routerstation ubnt_routerstation-pro \
21
ubnt_unifiac-lite ubnt_unifiac-mesh ubnt_unifiac-mesh_ath10k-qca988x \
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
ubnt-rocket-m-ti ubnt-rocket-m-xw \
ubnt-uap-pro ubnt-unifi \
ubnt2-pico2 \
vocore_vocore-16M vocore_vocore-8M \
wavlink_wl-wn575a3 \
wrtnode_wrtnode \
x86_32-generic x86_64-generic \
xiaomi_miwifi-mini \
youhua_wr1200js \
zbtlink_zbt-ape522ii \
compex_wpe72-8M \
dragino_dragino2 \
mercury_mc-mac1200r \
mikrotik_rb-nand-64m mikrotik_rb-nand-large mikrotik_rb-nand-large-ac \
mikrotik_rb-nor-flash-16M-ac mikrotik_rb921gs-5Hpacd-15s \
mikrotik_rbwapg-5hact2hnd mikrotik_rb-sxt5n \
tplink_tl-wdr4310-v1"


41

42
EXTRAPKGS=""
43
44
45
46
47
FACTORY=""
SYSUPGRADE=""
SQUASHIMAGE=""
EXT4IMAGE=""

48
49
50
[ "$TPROFILE" == compex_wpe72-8M ] && {
  NAME=Compex_WPE72-8M
  ARCH=ar71xx
51
  SUBARCH=generic
52
  FLAVOR=qmpsmall
53
54
55
  PROFILE=WPE72_8M
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-wpe72-squashfs-8M-factory.img
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-wpe72-squashfs-8M-sysupgrade.img
56
57
}

58
59
[ "$TPROFILE" == dragino_dragino2 ] && {
  NAME=Dragino_Dragino-2_MS14
60
61
  ARCH=ar71xx
  SUBARCH=generic
62
  FLAVOR=qmpsmall
63
  PROFILE=dragino2
64
65
66
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

67
[ "$TPROFILE" == comfast_cf-e120a-v3 ] && {
68
69
70
71
72
73
74
75
76
  NAME=Comfast_CF-E120A-v3
  ARCH=ath79
  SUBARCH=generic
  PROFILE=comfast_cf-e120a-v3
  FLAVOR=qmpsmall
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

77
[ "$TPROFILE" == comfast_cf-wr800n ] && {
78
79
80
  NAME=Comfast_CF-WR800N
  ARCH=ramips
  SUBARCH=mt7620
Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
81
  PROFILE=comfast_cf-wr800n
82
  FLAVOR=qmpsmall
83
84
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
85
86
}

87
88
89
90
[ "$TPROFILE" == dlink_dir-810l ] && {
  NAME=D-Link_DIR-810L
  ARCH=ramips
  SUBARCH=mt7620
91
  FLAVOR=qmpsmall
92
93
  PROFILE=dlink_dir-810l
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
94
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
95
}
96

97
98
99
100
[ "$TPROFILE" == mediatek_linkit-smart-7688 ] && {
  NAME=MediaTek_LinkIt-Smart-7688
  ARCH=ramips
  SUBARCH=mt76x8
101
  FLAVOR=qmpsmall
102
  PROFILE=mediatek_linkit-smart-7688
103
104
105
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

106
107
[ "$TPROFILE" == mercury_mc-mac1200r ] && {
  NAME=Mercury_MAC1200R
108
109
  ARCH=ar71xx
  SUBARCH=generic
110
  FLAVOR=qmpsmall
111
  PROFILE=mc-mac1200r
112
113
114
115
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

116
117
118
119
[ "$TPROFILE" == microduino_microwrt ] && {
  NAME=Microduino_MicroWRT
  ARCH=ramips
  SUBARCH=mt7620
120
  FLAVOR=qmpsmall
121
122
  PROFILE=microduino_microwrt
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
123
124
125
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

126
127
128
129
[ "$TPROFILE" == nexx_wt1520-8M ] && {
  NAME=Nexx_WT1520-8M
  ARCH=ramips
  SUBARCH=rt305x
130
  FLAVOR=qmpsmall
131
132
133
  PROFILE=nexx_wt1520-8m
  FACTORY=$DISTLEGACY-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
  SYSUPGRADE=$DISTLEGACY-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
134
135
}

136
137
138
139
[ "$TPROFILE" == nexx_wt3020-8M ] && {
  NAME=Nexx_WT3020-8M
  ARCH=ramips
  SUBARCH=mt7620
140
  FLAVOR=qmpsmall
141
  PROFILE=nexx_wt3020-8m
142
143
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
144
145
}

146
147
148
149
150
[ "$TPROFILE" == "pc-engines_alix" ] && {
  NAME=PC-Engines_Alix
  ARCH=x86
  SUBARCH=geode
  PROFILE=Generic
151
  FLAVOR=qmpbig
152
153
  SQUASHIMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDSQUASHIMG
  EXT4IMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDEXT4IMG
154
155
156
  BINEXT=img.gz
}

157
[ "$TPROFILE" == phicomm_k2p ] && {
158
159
160
161
162
163
164
165
166
  NAME=Phicomm_K2P
  ARCH=ramips
  SUBARCH=mt7621
  FLAVOR=qmpsmall
  PROFILE=phicomm_k2p
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

167
[ "$TPROFILE" == mikrotik_rb-nand-64m ] && {
168
169
170
171
  NAME=MikroTik_RouterBoard_NAND_flash
  ARCH=ar71xx
  SUBARCH=mikrotik
  PROFILE=nand-64m
172
  FLAVOR=qmpsmall
173
174
175
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

176
177
[ "$TPROFILE" == mikrotik_rb-nand-large ] && {
  NAME=MikroTik_RouterBoard_NAND_flash_large
178
179
180
  ARCH=ar71xx
  SUBARCH=mikrotik
  PROFILE=nand-large
181
  FLAVOR=qmpsmall
182
183
184
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

185
186
[ "$TPROFILE" == mikrotik_rb-nand-large-ac ] && {
  NAME=MikroTik_RouterBoard_NAND_flash_largeflash_802.11ac
187
188
189
  ARCH=ar71xx
  SUBARCH=mikrotik
  PROFILE=nand-large-ac
190
  FLAVOR=qmpsmall
191
192
193
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

194
[ "$TPROFILE" == mikrotik_rb-nor-flash-16M-ac ] && {
195
196
197
198
  NAME=MikroTik_RouterBoard_SPI_NOR_flash_802.11ac
  ARCH=ar71xx
  SUBARCH=mikrotik
  PROFILE=rb-nor-flash-16M-ac
199
  FLAVOR=qmpsmall
200
201
202
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

203
[ "$TPROFILE" == mikrotik_rb921gs-5Hpacd-15s ] && {
204
205
206
207
  NAME=MikroTik_RB921GS-5HPacD-15S
  ARCH=ar71xx
  SUBARCH=mikrotik
  PROFILE=nand-large-ac
208
  FLAVOR=qmpsmall
209
210
211
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

212
[ "$TPROFILE" == mikrotik_rbwapg-5hact2hnd ] && {
213
214
215
216
  NAME=MikroTik_RBwAPG-5HacT2HnD
  ARCH=ar71xx
  SUBARCH=mikrotik
  PROFILE=rb-nor-flash-16M-ac
217
  FLAVOR=qmpsmall
218
219
220
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

221
[ "$TPROFILE" == mikrotik_rb-sxt5n ] && {
Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
222
223
224
225
226
227
228
229
  NAME=MikroTik_RBSXT5nDr2
  ARCH=ar71xx
  SUBARCH=mikrotik
  PROFILE=nand-large
  FLAVOR=qmpsmall
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

230
231
232
233
234
235
236
237
238
239
240
241
242
243
[ "$TPROFILE" == soekris_45xx ] && {
  NAME=Soekris_Net45xx
  ARCH=x86
  SUBARCH=legacy
  PROFILE=Generic
  FLAVOR=qmpsmall
  SQUASHIMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDSQUASHIMG
  EXT4IMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDEXT4IMG
  BINEXT=img.gz
}

[ "$TPROFILE" == tplink_cpe510-v1 ] && {
  NAME=TP-Link_CPE-510-v1
  ARCH=ath79
244
  SUBARCH=generic
245
  FLAVOR=qmpsmall
246
  PROFILE=tplink_cpe510-v1
247
248
249
250
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

251
252
253
[ "$TPROFILE" == tplink_cpe510-v2 ] && {
  NAME=TP-Link_CPE-510-v2
  ARCH=ath79
254
  SUBARCH=generic
255
256
257
258
  FLAVOR=qmpsmall
  PROFILE=tplink_cpe510-v2
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
259
260
}

261
262
263
[ "$TPROFILE" == tplink_cpe510-v3 ] && {
  NAME=TP-Link_CPE-510-v3
  ARCH=ath79
264
  SUBARCH=generic
265
  FLAVOR=qmpsmall
266
  PROFILE=tplink_cpe510-v3
267
268
269
270
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

271
272
273
[ "$TPROFILE" == tplink_cpe610-v1 ] && {
  NAME=TP-Link_CPE-610-v1
  ARCH=ath79
274
  SUBARCH=generic
275
276
277
278
279
280
281
282
283
284
285
  FLAVOR=qmpsmall
  PROFILE=tplink_cpe610-v1
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

[ "$TPROFILE" == sun7i_a20-lamobo-r1 ] && {
  NAME=Lamobo_BananaPi_R1
  ARCH=sunxi
  SUBARCH=cortexa7
  PROFILE=sun7i-a20-lamobo-r1
286
  FLAVOR=qmpbig
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
  SQUASHIMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFSSDCARD
  EXT4IMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$EXT4SDCARD
  BINEXT=img.gz
}

[ "$TPROFILE" == ubiquiti_edgerouterx ] && {
  NAME=Ubiquiti_EdgeRouter_X
  ARCH=ramips
  SUBARCH=mt7621
  FLAVOR=qmpsmall
  PROFILE=ubiquiti_edgerouterx
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

[ "$TPROFILE" == ubiquiti_edgerouterx-sfp ] && {
  NAME=Ubiquiti_EdgeRouter_X-SFP
  ARCH=ramips
  SUBARCH=mt7621
  FLAVOR=qmpsmall
  PROFILE=ubiquiti_edgerouterx-sfp
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

[ "$TPROFILE" == ubnt_bullet-m-xm ] && {
  NAME=Ubiquiti_Bullet-M_XM
  ARCH=ath79
  SUBARCH=generic
  PROFILE=ubnt_bullet-m
  FLAVOR=qmpsmall
318
319
320
321
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

322
323
324
[ "$TPROFILE" == ubnt_bullet-m-xw ] && {
  NAME=Ubiquiti_Bullet-M_XW
  ARCH=ath79
325
  SUBARCH=generic
326
327
  PROFILE=ubnt_bullet-m-xw
  FLAVOR=qmpsmall
328
329
330
331
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

332
[ "$TPROFILE" == ubnt_lap-120 ] && {
333
  NAME=Ubiquiti_LiteAP-AC-120_AdHoc
334
  ARCH=ath79
335
  SUBARCH=generic
336
  PROFILE=ubnt_lap-120
337
  FLAVOR=qmpsmall
338
339
340
341
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

342
343
344
345
346
347
348
349
350
351
[ "$TPROFILE" == ubnt_lap-120_ath10k-qca988x ] && {
  NAME=Ubiquiti_LiteAP-AC-120_80211s
  ARCH=ath79
  SUBARCH=generic
  PROFILE=ubnt_lap-120
  FLAVOR=qmpsmallath10kqca988x
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

352
[ "$TPROFILE" == ubnt_nanostation-ac ] && {
353
  NAME=Ubiquiti_NanoStation-AC_AdHoc
354
  ARCH=ath79
355
  SUBARCH=generic
356
  PROFILE=ubnt_nanostation-ac
357
  FLAVOR=qmpsmall
358
359
360
361
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

362
363
364
365
366
367
368
369
370
371
[ "$TPROFILE" == ubnt_nanostation-ac_ath10k-qca988x ] && {
  NAME=Ubiquiti_NanoStation-AC_80211s
  ARCH=ath79
  SUBARCH=generic
  PROFILE=ubnt_nanostation-ac
  FLAVOR=qmpsmallath10kqca988x
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

372
[ "$TPROFILE" == ubnt_nanostation-ac-loco ] && {
373
  NAME=Ubiquiti_NanoStation-AC-Loco_AdHoc
374
  ARCH=ath79
375
  SUBARCH=generic
376
  PROFILE=ubnt_nanostation-ac-loco
377
  FLAVOR=qmpsmall
378
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
379
380
381
382
383
384
385
386
387
388
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

[ "$TPROFILE" == ubnt_nanostation-ac-loco_ath10k-qca988x ] && {
  NAME=Ubiquiti_NanoStation-AC-Loco_80211s
  ARCH=ath79
  SUBARCH=generic
  PROFILE=ubnt_nanostation-ac-loco
  FLAVOR=qmpsmallath10kqca988x
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
389
390
391
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

392
393
394
395
396
397
398
399
400
401
[ "$TPROFILE" == ubnt_nanostation-loco-m-xw ] && {
  NAME=Ubiquiti_NanoStation-Loco-M_XW
  ARCH=ath79
  SUBARCH=generic
  PROFILE=ubnt_nanostation-loco-m-xw
  FLAVOR=qmpsmall
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

402
403
404
[ "$TPROFILE" == ubnt_nanostation-m ] && {
  NAME=Ubiquiti_NanoStation-M_XM
  ARCH=ath79
405
  SUBARCH=generic
406
407
  PROFILE=ubnt_nanostation-m
  FLAVOR=qmpsmall
408
409
410
411
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
[ "$TPROFILE" == ubnt_nanostation-m-xw ] && {
  NAME=Ubiquiti_NanoStation-M_XW
  ARCH=ath79
  SUBARCH=generic
  PROFILE=ubnt_nanostation-m-xw
  FLAVOR=qmpsmall
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

[ "$TPROFILE" == ubnt_nanostation-m-loco ] && {
  NAME=Ubiquiti_NanoStation-M-Loco_XM
  ARCH=ath79
  SUBARCH=generic
  PROFILE=ubnt_bullet-m
  FLAVOR=qmpsmall
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

432

433
434
435
436
437
438
439
440
441
442








[ "$TPROFILE" == nsm5 ] && {
  NAME=Ubiquiti_NanoStation-M5
443
444
  ARCH=ar71xx
  SUBARCH=generic
445
446
  PROFILE=ubnt-nano-m
  FLAVOR=qmpsmall
447
448
449
450
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

451
452
[ "$TPROFILE" == nsm5-xw ] && {
  NAME=Ubiquiti_NanoStation-M5-XW
453
454
  ARCH=ar71xx
  SUBARCH=generic
455
456
  PROFILE=ubnt-nano-m-xw
  FLAVOR=qmpsmall
457
458
459
460
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

461
462
[ "$TPROFILE" == nslm5-xw ] && {
  NAME=Ubiquiti_NanoStation-Loco-M5-XW
463
464
  ARCH=ar71xx
  SUBARCH=generic
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
  PROFILE=ubnt-loco-m-xw
  FLAVOR=qmpsmall
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

[ "$TPROFILE" == ubnt_rocket-m ] && {
  NAME=Ubiquiti_Rocket-M_XM
  ARCH=ath79
  SUBARCH=generic
  FLAVOR=qmpsmall
  PROFILE=ubnt_rocket-m
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

[ "$TPROFILE" == ubnt_routerstation ] && {
  NAME=Ubiquiti_RouterStation
  ARCH=ath79
  SUBARCH=generic
485
  FLAVOR=qmpbig
486
  PROFILE=ubnt_routerstation
487
488
489
490
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

491
492
493
[ "$TPROFILE" == ubnt_routerstation-pro ] && {
  NAME=Ubiquiti_RouterStation-Pro
  ARCH=ar71xx
494
  SUBARCH=generic
495
  FLAVOR=qmpbig
496
  PROFILE=ubnt_routerstation
497
498
499
500
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

501
502
503
504
505
506
507
508
509
510
[ "$TPROFILE" == ubnt_unifiac-lite ] && {
  NAME=Ubiquiti_UniFi-AP-AC-Lite
  ARCH=ath79
  SUBARCH=generic
  FLAVOR=qmpsmall
  PROFILE=ubnt_unifiac-lite
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

[ "$TPROFILE" == ubnt_unifiac-mesh ] && {
511
  NAME=Ubiquiti_UniFi-AP-AC-Mesh_AdHoc
512
513
514
515
516
517
518
  ARCH=ath79
  SUBARCH=generic
  FLAVOR=qmpsmall
  PROFILE=ubnt_unifiac-mesh
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

519
520
521
522
523
524
525
526
527
[ "$TPROFILE" == ubnt_unifiac-mesh_ath10k-qca988x ] && {
  NAME=Ubiquiti_UniFi-AP-AC-Mesh_80211s
  ARCH=ath79
  SUBARCH=generic
  FLAVOR=qmpsmallath10kqca988x
  PROFILE=ubnt_unifiac-mesh
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

528
529
[ "$TPROFILE" == ubnt-rocket-m-ti ] && {
  NAME=Ubiquiti_Rocket-M-TI
530
531
  ARCH=ar71xx
  SUBARCH=generic
532
  FLAVOR=qmpsmall
533
534
  PROFILE=ubnt-rocket-m-ti
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
535
536
537
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

538
539
[ "$TPROFILE" == ubnt-rocket-m-xw ] && {
  NAME=Ubiquiti_Rocket-M-XW
540
541
  ARCH=ar71xx
  SUBARCH=generic
542
  FLAVOR=qmpsmall
543
544
545
  PROFILE=ubnt-rocket-m-xw
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
546
547
}

548
[ "$TPROFILE" == ubnt-uap-pro ] && {
549
  NAME=Ubiquiti_UniFi-AP-PRO
550
551
  ARCH=ar71xx
  SUBARCH=generic
552
  FLAVOR=qmpsmall
553
554
  PROFILE=ubnt-uap-pro
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
555
556
557
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

558
559
560
561
[ "$TPROFILE" == ubnt-unifi  ] && {
  NAME=Ubiquiti_UniFi-AP
  ARCH=ar71xx
  SUBARCH=generic
562
  FLAVOR=qmpsmall
563
564
  PROFILE=ubnt-unifi
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
565
566
567
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
[ "$TPROFILE" == ubnt2-pico2 ] && {
  NAME=Ubiquiti_PicoStation-2
  ARCH=ath25
  SUBARCH=generic
  FLAVOR=qmptiny
  PROFILE=ubnt2-pico2
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$PROFILE-$SQUASHSYSUPGRADE
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$PROFILE-$SQUASHSYSUPGRADE
}





[ "$TPROFILE" == tplink_tl-wr2543-v1 ] && {
  NAME=TP-Link_TL-WR2543ND-v1
  ARCH=ath79
  SUBARCH=generic
586
  FLAVOR=qmpsmall
587
588
  PROFILE=tplink_tl-wr2543-v1
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
589
590
591
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

592
593
594
[ "$TPROFILE" == tplink_tl-wdr3500-v1 ] && {
  NAME=TP-Link_TL-WDR3500-v1
  ARCH=ath79
595
  SUBARCH=generic
596
  FLAVOR=qmpsmall
597
598
  PROFILE=tplink_tl-wdr3500-v1
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
599
600
601
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

602
603
604
[ "$TPROFILE" == tplink_tl-wdr3600-v1 ] && {
  NAME=TP-Link_TL-WDR3600-v1
  ARCH=ath79
605
  SUBARCH=generic
606
  FLAVOR=qmpsmall
607
  PROFILE=tplink_tl-wdr3600-v1
608
609
610
611
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

612
613
614
615
[ "$TPROFILE" == tplink_tl-wdr4300-v1 ] && {
  NAME=TP-Link_TL-WDR4300-v1
  ARCH=ath79
  SUBARCH=generic
616
  FLAVOR=qmpsmall
617
618
  PROFILE=tplink_tl-wdr4300-v1
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
619
620
621
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

622
623
624
625
626
627
628
[ "$TPROFILE" == tplink_tl-wdr4310-v1 ] && {
  NAME=TP-Link_TL-WDR4310-v1
  ARCH=ar71xx
  SUBARCH=generic
  FLAVOR=qmpbig
  PROFILE=tl-wdr4310-v1
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
629
630
631
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

632
633
634
635
636
637
638
639
640
641
642
643
644
645
[ "$TPROFILE" == tplink_tl-wdr4900-v1 ] && {
  NAME=TP-Link_TL-WDR4900-v1
  ARCH=mpc85xx
  SUBARCH=generic
  FLAVOR=qmpbig
  PROFILE=tl-wdr4900-v1
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

[ "$TPROFILE" == tplink_tl-wr842n-v1 ] && {
  NAME=TP-Link_TL-WR842N-v1
  ARCH=ath79
  SUBARCH=generic
646
  FLAVOR=qmpsmall
647
648
  PROFILE=tplink_tl-wr842n-v1
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
649
650
651
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

652
653
654
655
[ "$TPROFILE" == tplink_tl-wr842n-v2 ] && {
  NAME=TP-Link_TL-WR842N-v2
  ARCH=ath79
  SUBARCH=generic
656
  FLAVOR=qmpsmall
657
658
  PROFILE=tplink_tl-wr842n-v2
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
659
660
661
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

662
663
664
665
[ "$TPROFILE" == tplink_tl-wr842n-v3 ] && {
  NAME=TP-Link_TL-WR842N-v3
  ARCH=ath79
  SUBARCH=generic
666
  FLAVOR=qmpsmall
667
668
  PROFILE=tplink_tl-wr842n-v3
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHFACTORY
669
670
671
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

672
673
[ "$TPROFILE" == vocore_vocore-16M ] && {
  NAME=Vonger_VoCore-16M
674
675
  ARCH=ramips
  SUBARCH=rt305x
676
  FLAVOR=qmpsmall
677
678
679
  PROFILE=vocore_vocore-16M
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
680
681
}

682
683
[ "$TPROFILE" == vocore_vocore-8M ] && {
  NAME=Vonger_VoCore-8M
684
  ARCH=ramips
685
  SUBARCH=rt305x
686
  FLAVOR=qmpsmall
687
  PROFILE=vocore_vocore-8M
688
689
690
691
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

692
693
[ "$TPROFILE" == wavlink_wl-wn575a3 ] && {
  NAME=Wavlink_WL-WN575A3
694
  ARCH=ramips
695
  SUBARCH=mt76x8
696
  FLAVOR=qmpsmall
697
  PROFILE=wavlink_wl-wn575a3
698
699
700
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

701
[ "$TPROFILE" == wrtnode_wrtnode ] && {
702
703
704
  NAME=WRTnode_WRTnode
  ARCH=ramips
  SUBARCH=mt7620
705
  FLAVOR=qmpsmall
Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
706
  PROFILE=wrtnode_wrtnode
707
708
709
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
710
711
712
713
714
715
716
717
718
719
720
[ "$TPROFILE" == x86_32-generic ] && {
  NAME=Generic_x86
  ARCH=x86
  SUBARCH=generic
  PROFILE=Generic
  FLAVOR=qmpbig
  EXTRAPKGS="kmod-ath9k kmod-e1000e"
  SQUASHIMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDSQUASHIMG
  EXT4IMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDEXT4IMG
  BINEXT=img.gz
}
721

722
723
724
725
726
727
728
729
730
731
732
733
734
735
[ "$TPROFILE" == x86_64-generic  ] && {
  NAME=Generic_x86-64
  ARCH=x86
  SUBARCH=64
  FLAVOR=qmpbig
  EXTRAPKGS=kmod-ath9k
  PROFILE=Generic
  SQUASHIMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDSQUASHIMG
  EXT4IMAGE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$COMBINEDEXT4IMG
  BINEXT=img
}

[ "$TPROFILE" == xiaomi_miwifi-mini ] && {
  NAME=Xiaomi_MiWiFi-Mini
736
737
  ARCH=ramips
  SUBARCH=mt7620
738
  FLAVOR=qmpsmall
739
740
  PROFILE=xiaomi_miwifi-mini
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
741
742
743
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

744
[ "$TPROFILE" == youhua_wr1200js ] && {
745
746
747
748
749
750
751
752
753
  NAME=YouHua_WR1200JS
  ARCH=ramips
  SUBARCH=mt7621
  FLAVOR=qmpsmall
  PROFILE=youhua_wr1200js
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}

754
[ "$TPROFILE" == zbtlink_zbt-ape522ii ] && {
755
756
757
  NAME=ZBT_APE522II
  ARCH=ramips
  SUBARCH=mt7620
758
  FLAVOR=qmpsmall
Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
759
  PROFILE=zbtlink_zbt-ape522ii
760
761
762
  FACTORY=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
  SYSUPGRADE=$DISTCL-$FLAVOR-$ARCH-$SUBARCH-$PROFILE-$SQUASHSYSUPGRADE
}
763