ramips: sort mt7620 image file alphabetical
[openwrt/staging/chunkeey.git] / target / linux / ramips / image / mt7620.mk
1 #
2 # MT7620A Profiles
3 #
4
5 define Build/tplink-header
6 $(STAGING_DIR_HOST)/bin/mktplinkfw2 -a 0x4 -V "ver. 2.0" -B $(1) \
7 -o $@.new -k $@ -r $(IMAGE_ROOTFS) && mv $@.new $@
8 endef
9
10 define Build/elecom-header
11 cp $@ $(KDIR)/v_0.0.0.bin
12 ( \
13 mkhash md5 $(KDIR)/v_0.0.0.bin && \
14 echo 458 \
15 ) | mkhash md5 > $(KDIR)/v_0.0.0.md5
16 $(STAGING_DIR_HOST)/bin/tar -cf $@ -C $(KDIR) v_0.0.0.bin v_0.0.0.md5
17 endef
18
19 define Build/zyimage
20 $(STAGING_DIR_HOST)/bin/zyimage $(1) $@
21 endef
22
23 define Device/ai-br100
24 DTS := AI-BR100
25 IMAGE_SIZE := 7936k
26 DEVICE_TITLE := Aigale Ai-BR100
27 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci
28 endef
29 TARGET_DEVICES += ai-br100
30
31 define Device/ArcherC20i
32 DTS := ArcherC20i
33 SUPPORTED_DEVICES := c20i
34 KERNEL := $(KERNEL_DTB)
35 KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-header ArcherC20i -c
36 IMAGE/sysupgrade.bin := append-kernel | tplink-header ArcherC20i -j | append-metadata
37 DEVICE_TITLE := TP-Link ArcherC20i
38 endef
39 TARGET_DEVICES += ArcherC20i
40
41 define Device/ArcherC50
42 DTS := ArcherC50
43 SUPPORTED_DEVICES := c50
44 KERNEL := $(KERNEL_DTB)
45 KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-header ArcherC50 -c
46 IMAGE/sysupgrade.bin := append-kernel | tplink-header ArcherC50 -j | append-metadata
47 DEVICE_TITLE := TP-Link ArcherC50
48 endef
49 TARGET_DEVICES += ArcherC50
50
51 define Device/ArcherMR200
52 DTS := ArcherMR200
53 SUPPORTED_DEVICES := mr200
54 KERNEL := $(KERNEL_DTB)
55 KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-header ArcherMR200 -c
56 IMAGE/sysupgrade.bin := append-kernel | tplink-header ArcherMR200 -j | append-metadata
57 DEVICE_PACKAGES := kmod-usb2 kmod-usb-net kmod-usb-net-rndis kmod-usb-serial kmod-usb-serial-option adb
58 DEVICE_TITLE := TP-Link ArcherMR200
59 endef
60 TARGET_DEVICES += ArcherMR200
61
62 define Device/cf-wr800n
63 DTS := CF-WR800N
64 DEVICE_TITLE := Comfast CF-WR800N
65 endef
66 TARGET_DEVICES += cf-wr800n
67
68 define Device/cs-qr10
69 DTS := CS-QR10
70 DEVICE_TITLE := Planex CS-QR10
71 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-i2c-core kmod-i2c-ralink kmod-sound-core kmod-sound-mtk kmod-sdhci-mt7620
72 endef
73 TARGET_DEVICES += cs-qr10
74
75 define Device/d240
76 DTS := D240
77 IMAGE_SIZE := $(ralink_default_fw_size_16M)
78 DEVICE_TITLE := Sanlinking Technologies D240
79 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76-core kmod-mt76x2 kmod-sdhci-mt7620
80 endef
81 TARGET_DEVICES += d240
82
83 define Device/db-wrt01
84 DTS := DB-WRT01
85 DEVICE_TITLE := Planex DB-WRT01
86 endef
87 TARGET_DEVICES += db-wrt01
88
89 define Device/dch-m225
90 DTS := DCH-M225
91 BLOCKSIZE := 4k
92 IMAGES += factory.bin
93 IMAGE_SIZE := 6848k
94 IMAGE/sysupgrade.bin := \
95 append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs | \
96 seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
97 pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
98 IMAGE/factory.bin := \
99 append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
100 append-rootfs | pad-rootfs -x 64 | \
101 seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
102 seama-seal -m "signature=wapn22_dlink.2013gui_dap1320b" | \
103 check-size $$$$(IMAGE_SIZE)
104 DEVICE_TITLE := D-Link DCH-M225
105 DEVICE_PACKAGES := kmod-mt76
106 endef
107 TARGET_DEVICES += dch-m225
108
109 define Device/dir-810l
110 DTS := DIR-810L
111 IMAGE_SIZE := 6720k
112 DEVICE_TITLE := D-Link DIR-810L
113 endef
114 TARGET_DEVICES += dir-810l
115
116 define Device/e1700
117 DTS := E1700
118 IMAGES += factory.bin
119 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
120 umedia-header 0x013326
121 DEVICE_TITLE := Linksys E1700
122 endef
123 TARGET_DEVICES += e1700
124
125 define Device/ex2700
126 NETGEAR_HW_ID := 29764623+4+0+32+2x2+0
127 NETGEAR_BOARD_ID := EX2700
128 DTS := EX2700
129 BLOCKSIZE := 4k
130 IMAGE_SIZE := $(ralink_default_fw_size_4M)
131 IMAGES += factory.bin
132 KERNEL := $(KERNEL_DTB) | uImage lzma | pad-offset 64k 64 | append-uImage-fakeroot-hdr
133 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
134 netgear-dni
135 DEVICE_PACKAGES := -kmod-mt76
136 DEVICE_TITLE := Netgear EX2700
137 endef
138 TARGET_DEVICES += ex2700
139
140 define Device/ex3700
141 NETGEAR_BOARD_ID := U12H319T00_NETGEAR
142 DTS := EX3700
143 BLOCKSIZE := 4k
144 IMAGE_SIZE := 7744k
145 IMAGES += factory.bin
146 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | netgear-chk
147 DEVICE_PACKAGES := -kmod-mt76 kmod-mt76x2
148 DEVICE_TITLE := Netgear EX3700
149 endef
150 TARGET_DEVICES += ex3700
151
152 define Device/gl-mt300a
153 DTS := GL-MT300A
154 IMAGE_SIZE := $(ralink_default_fw_size_16M)
155 DEVICE_TITLE := GL-Inet GL-MT300A
156 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76
157 endef
158 TARGET_DEVICES += gl-mt300a
159
160 define Device/gl-mt300n
161 DTS := GL-MT300N
162 IMAGE_SIZE := $(ralink_default_fw_size_16M)
163 DEVICE_TITLE := GL-Inet GL-MT300N
164 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76
165 endef
166 TARGET_DEVICES += gl-mt300n
167
168 define Device/gl-mt750
169 DTS := GL-MT750
170 IMAGE_SIZE := $(ralink_default_fw_size_16M)
171 DEVICE_TITLE := GL-Inet GL-MT750
172 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76
173 endef
174 TARGET_DEVICES += gl-mt750
175
176 define Device/hc5661
177 DTS := HC5661
178 IMAGE_SIZE := $(ralink_default_fw_size_16M)
179 DEVICE_TITLE := HiWiFi HC5661
180 DEVICE_PACKAGES := kmod-usb2 kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
181 endef
182 TARGET_DEVICES += hc5661
183
184 define Device/hc5761
185 DTS := HC5761
186 IMAGE_SIZE := $(ralink_default_fw_size_16M)
187 DEVICE_TITLE := HiWiFi HC5761
188 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
189 endef
190 TARGET_DEVICES += hc5761
191
192 define Device/hc5861
193 DTS := HC5861
194 IMAGE_SIZE := $(ralink_default_fw_size_16M)
195 DEVICE_TITLE := HiWiFi HC5861
196 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
197 endef
198 TARGET_DEVICES += hc5861
199
200 define Device/kng_rc
201 DTS := kng_rc
202 IMAGE_SIZE := $(ralink_default_fw_size_16M)
203 DEVICE_TITLE := ZyXEL Keenetic Viva
204 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport kmod-switch-rtl8366-smi kmod-switch-rtl8367b
205 IMAGES += factory.bin
206 IMAGE/factory.bin := $$(sysupgrade_bin) | pad-to 64k | check-size $$$$(IMAGE_SIZE) | \
207 zyimage -d 8997 -v "ZyXEL Keenetic Viva"
208 endef
209 TARGET_DEVICES += kng_rc
210
211 define Device/kn_rc
212 DTS := kn_rc
213 DEVICE_TITLE := ZyXEL Keenetic Omni
214 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
215 IMAGES += factory.bin
216 IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | pad-to 64k | check-size $$$$(IMAGE_SIZE) | \
217 zyimage -d 4882 -v "ZyXEL Keenetic Omni"
218 endef
219 TARGET_DEVICES += kn_rc
220
221 define Device/kn_rf
222 DTS := kn_rf
223 DEVICE_TITLE := ZyXEL Keenetic Omni II
224 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
225 IMAGES += factory.bin
226 IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | pad-to 64k | check-size $$$$(IMAGE_SIZE) | \
227 zyimage -d 2102034 -v "ZyXEL Keenetic Omni II"
228 endef
229 TARGET_DEVICES += kn_rf
230
231 define Device/microwrt
232 DTS := MicroWRT
233 IMAGE_SIZE := 16128k
234 DEVICE_TITLE := Microduino MicroWRT
235 endef
236 TARGET_DEVICES += microwrt
237
238 define Device/miwifi-mini
239 DTS := MIWIFI-MINI
240 IMAGE_SIZE := $(ralink_default_fw_size_16M)
241 DEVICE_TITLE := Xiaomi MiWiFi Mini
242 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
243 endef
244 TARGET_DEVICES += miwifi-mini
245
246 define Device/mlw221
247 DTS := MLW221
248 IMAGE_SIZE := $(ralink_default_fw_size_16M)
249 DEVICE_TITLE := Kingston MLW221
250 endef
251 TARGET_DEVICES += mlw221
252
253 define Device/mlwg2
254 DTS := MLWG2
255 IMAGE_SIZE := $(ralink_default_fw_size_16M)
256 DEVICE_TITLE := Kingston MLWG2
257 endef
258 TARGET_DEVICES += mlwg2
259
260 define Device/mt7620a
261 DTS := MT7620a
262 DEVICE_TITLE := MediaTek MT7620a EVB
263 endef
264 TARGET_DEVICES += mt7620a
265
266 define Device/mt7620a_mt7530
267 DTS := MT7620a_MT7530
268 DEVICE_TITLE := MediaTek MT7620a + MT7530 EVB
269 endef
270 TARGET_DEVICES += mt7620a_mt7530
271
272 define Device/mt7620a_mt7610e
273 DTS := MT7620a_MT7610e
274 DEVICE_TITLE := MediaTek MT7620a + MT7610e EVB
275 endef
276 TARGET_DEVICES += mt7620a_mt7610e
277
278 define Device/mt7620a_v22sg
279 DTS := MT7620a_V22SG
280 DEVICE_TITLE := MediaTek MT7620a V22SG
281 endef
282 TARGET_DEVICES += mt7620a_v22sg
283
284 define Device/mzk-750dhp
285 DTS := MZK-750DHP
286 DEVICE_TITLE := Planex MZK-750DHP
287 DEVICE_PACKAGES := kmod-mt76
288 endef
289 TARGET_DEVICES += mzk-750dhp
290
291 define Device/mzk-ex300np
292 DTS := MZK-EX300NP
293 DEVICE_TITLE := Planex MZK-EX300NP
294 endef
295 TARGET_DEVICES += mzk-ex300np
296
297 define Device/mzk-ex750np
298 DTS := MZK-EX750NP
299 DEVICE_TITLE := Planex MZK-EX750NP
300 DEVICE_PACKAGES := kmod-mt76
301 endef
302 TARGET_DEVICES += mzk-ex750np
303
304 define Device/na930
305 DTS := NA930
306 IMAGE_SIZE := 20m
307 DEVICE_TITLE := Sercomm NA930
308 endef
309 TARGET_DEVICES += na930
310
311 define Device/oy-0001
312 DTS := OY-0001
313 IMAGE_SIZE := $(ralink_default_fw_size_16M)
314 DEVICE_TITLE := Oh Yeah OY-0001
315 endef
316 TARGET_DEVICES += oy-0001
317
318 define Device/psg1208
319 DTS := PSG1208
320 DEVICE_TITLE := Phicomm PSG1208
321 DEVICE_PACKAGES := kmod-mt76
322 endef
323 TARGET_DEVICES += psg1208
324
325 define Device/psg1218
326 DTS := PSG1218
327 DEVICE_TITLE := Phicomm PSG1218
328 DEVICE_PACKAGES := kmod-mt76
329 endef
330 TARGET_DEVICES += psg1218
331
332 define Device/rp-n53
333 DTS := RP-N53
334 DEVICE_TITLE := Asus RP-N53
335 endef
336 TARGET_DEVICES += rp-n53
337
338 define Device/rt-n14u
339 DTS := RT-N14U
340 DEVICE_TITLE := Asus RT-N14u
341 endef
342 TARGET_DEVICES += rt-n14u
343
344 define Device/tiny-ac
345 DTS := TINY-AC
346 DEVICE_TITLE := Dovado Tiny AC
347 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
348 endef
349 TARGET_DEVICES += tiny-ac
350
351 define Device/whr-1166d
352 DTS := WHR-1166D
353 IMAGE_SIZE := 15040k
354 DEVICE_TITLE := Buffalo WHR-1166D
355 endef
356 TARGET_DEVICES += whr-1166d
357
358 define Device/whr-300hp2
359 DTS := WHR-300HP2
360 IMAGE_SIZE := 6848k
361 DEVICE_TITLE := Buffalo WHR-300HP2
362 endef
363 TARGET_DEVICES += whr-300hp2
364
365 define Device/whr-600d
366 DTS := WHR-600D
367 IMAGE_SIZE := 6848k
368 DEVICE_TITLE := Buffalo WHR-600D
369 endef
370 TARGET_DEVICES += whr-600d
371
372 define Device/wmr-300
373 DTS := WMR-300
374 DEVICE_TITLE := Buffalo WMR-300
375 endef
376 TARGET_DEVICES += wmr-300
377
378 define Device/wn3000rpv3
379 NETGEAR_HW_ID := 29764836+8+0+32+2x2+0
380 NETGEAR_BOARD_ID := WN3000RPv3
381 DTS := WN3000RPV3
382 BLOCKSIZE := 4k
383 IMAGES += factory.bin
384 KERNEL := $(KERNEL_DTB) | uImage lzma | pad-offset 64k 64 | append-uImage-fakeroot-hdr
385 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
386 netgear-dni
387 DEVICE_TITLE := Netgear WN3000RPv3
388 endef
389 TARGET_DEVICES += wn3000rpv3
390
391 define Device/wrh-300cr
392 DTS := WRH-300CR
393 IMAGE_SIZE := $(ralink_default_fw_size_16M)
394 IMAGES += factory.bin
395 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
396 elecom-header
397 DEVICE_TITLE := Elecom WRH-300CR
398 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
399 endef
400 TARGET_DEVICES += wrh-300cr
401
402 define Device/wrtnode
403 DTS := WRTNODE
404 IMAGE_SIZE := $(ralink_default_fw_size_16M)
405 DEVICE_TITLE := WRTNode
406 endef
407 TARGET_DEVICES += wrtnode
408
409 define Device/wt3020-4M
410 DTS := WT3020-4M
411 BLOCKSIZE := 4k
412 IMAGE_SIZE := $(ralink_default_fw_size_4M)
413 IMAGES += factory.bin
414 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
415 poray-header -B WT3020 -F 4M
416 DEVICE_TITLE := Nexx WT3020 (4MB)
417 endef
418 TARGET_DEVICES += wt3020-4M
419
420 define Device/wt3020-8M
421 DTS := WT3020-8M
422 IMAGES += factory.bin
423 IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
424 poray-header -B WT3020 -F 8M
425 DEVICE_TITLE := Nexx WT3020 (8MB)
426 endef
427 TARGET_DEVICES += wt3020-8M
428
429 define Device/y1
430 DTS := Y1
431 IMAGE_SIZE := $(ralink_default_fw_size_16M)
432 DEVICE_TITLE := Lenovo Y1
433 endef
434 TARGET_DEVICES += y1
435
436 define Device/y1s
437 DTS := Y1S
438 IMAGE_SIZE := $(ralink_default_fw_size_16M)
439 DEVICE_TITLE := Lenovo Y1S
440 endef
441 TARGET_DEVICES += y1s
442
443 define Device/youku-yk1
444 DTS := YOUKU-YK1
445 IMAGE_SIZE := $(ralink_default_fw_size_16M)
446 DEVICE_TITLE := YOUKU YK1
447 endef
448 TARGET_DEVICES += youku-yk1
449
450 define Device/zbt-ape522ii
451 DTS := ZBT-APE522II
452 DEVICE_TITLE := Zbtlink ZBT-APE522II
453 DEVICE_PACKAGES := kmod-mt76
454 endef
455 TARGET_DEVICES += zbt-ape522ii
456
457 define Device/zbt-cpe102
458 DTS := ZBT-CPE102
459 DEVICE_TITLE := Zbtlink ZBT-CPE102
460 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
461 endef
462 TARGET_DEVICES += zbt-cpe102
463
464 define Device/zbt-wa05
465 DTS := ZBT-WA05
466 DEVICE_TITLE := Zbtlink ZBT-WA05
467 endef
468 TARGET_DEVICES += zbt-wa05
469
470 define Device/zbt-we826
471 DTS := ZBT-WE826
472 IMAGE_SIZE := $(ralink_default_fw_size_16M)
473 DEVICE_TITLE := Zbtlink ZBT-WE826
474 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-sdhci-mt7620
475 endef
476 TARGET_DEVICES += zbt-we826
477
478 define Device/zbt-wr8305rt
479 DTS := ZBT-WR8305RT
480 DEVICE_TITLE := Zbtlink ZBT-WR8305RT
481 endef
482 TARGET_DEVICES += zbt-wr8305rt
483
484 define Device/zte-q7
485 DTS := ZTE-Q7
486 DEVICE_TITLE := ZTE Q7
487 endef
488 TARGET_DEVICES += zte-q7