mountd: update to latest git HEAD
[openwrt/openwrt.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 $@ && mv $@.new $@
8 endef
9
10 define Build/pad-kernel-ex2700
11 cp $@ $@.tmp && dd if=/dev/zero bs=64 count=1 >> $@.tmp \
12 && dd if=$@.tmp of=$@.new bs=64k conv=sync && truncate -s -64 $@.new \
13 && cat ex2700-fakeroot.uImage >> $@.new && rm $@.tmp && mv $@.new $@
14 endef
15
16 define Build/netgear-header
17 $(STAGING_DIR_HOST)/bin/mkdniimg \
18 $(1) -v OpenWrt -i $@ \
19 -o $@.new && mv $@.new $@
20 endef
21
22 define Build/poray-header
23 mkporayfw $(1) \
24 -f $@ \
25 -o $@.new; \
26 mv $@.new $@
27 endef
28
29 define Build/umedia-header
30 fix-u-media-header -T 0x46 -B $(1) -i $@ -o $@.new && mv $@.new $@
31 endef
32
33 define Build/elecom-header
34 cp $@ $(KDIR)/v_0.0.0.bin
35 ( \
36 $(STAGING_DIR_HOST)/bin/md5sum $(KDIR)/v_0.0.0.bin | \
37 sed 's/ .*//' && \
38 echo 458 \
39 ) | $(STAGING_DIR_HOST)/bin/md5sum | \
40 sed 's/ .*//' > $(KDIR)/v_0.0.0.md5
41 $(STAGING_DIR_HOST)/bin/tar -cf $@ -C $(KDIR) v_0.0.0.bin v_0.0.0.md5
42 endef
43
44 define Device/ArcherC20i
45 DTS := ArcherC20i
46 KERNEL := $(KERNEL_DTB)
47 KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-header ArcherC20i -c
48 IMAGE/sysupgrade.bin := append-kernel | tplink-header ArcherC20i -j -r $(KDIR)/root.squashfs
49 DEVICE_TITLE := TP-Link ArcherC20i
50 endef
51 TARGET_DEVICES += ArcherC20i
52
53 define Device/ArcherC50
54 DTS := ArcherC50
55 KERNEL := $(KERNEL_DTB)
56 KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-header ArcherC50 -c
57 IMAGE/sysupgrade.bin := append-kernel | tplink-header ArcherC50 -j -r $(KDIR)/root.squashfs
58 DEVICE_TITLE := TP-Link ArcherC50
59 endef
60 TARGET_DEVICES += ArcherC50
61
62 ex2700_mtd_size=3866624
63 define Device/ex2700
64 DTS := EX2700
65 IMAGE_SIZE := $(ex2700_mtd_size)
66 IMAGES += factory.bin
67 KERNEL := $(KERNEL_DTB) | uImage lzma | pad-kernel-ex2700
68 IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | netgear-header -B EX2700 -H 29764623+4+0+32+2x2+0
69 DEVICE_TITLE := Netgear EX2700
70 endef
71 TARGET_DEVICES += ex2700
72
73 define Device/wt3020-4M
74 DTS := WT3020-4M
75 IMAGE_SIZE := $(ralink_default_fw_size_4M)
76 IMAGES += factory.bin
77 IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | poray-header -B WT3020 -F 4M
78 DEVICE_TITLE := Nexx WT3020 (4MB)
79 endef
80 TARGET_DEVICES += wt3020-4M
81
82 define Device/wt3020-8M
83 DTS := WT3020-8M
84 IMAGE_SIZE := $(ralink_default_fw_size_8M)
85 IMAGES += factory.bin
86 IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | poray-header -B WT3020 -F 8M
87 DEVICE_TITLE := Nexx WT3020 (8MB)
88 endef
89 TARGET_DEVICES += wt3020-8M
90
91 define Device/wrh-300cr
92 DTS := WRH-300CR
93 IMAGE_SIZE := $(ralink_default_fw_size_16M)
94 IMAGES += factory.bin
95 IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | elecom-header
96 DEVICE_TITLE := Elecom WRH-300CR
97 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
98 endef
99 TARGET_DEVICES += wrh-300cr
100
101 define Device/e1700
102 DTS := E1700
103 IMAGES += factory.bin
104 IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | umedia-header 0x013326
105 DEVICE_TITLE := Linksys E1700
106 endef
107 TARGET_DEVICES += e1700
108
109 br100_mtd_size=8126464
110 define Device/ai-br100
111 DTS := AI-BR100
112 IMAGE_SIZE := $(br100_mtd_size)
113 DEVICE_TITLE := Aigale Ai-BR100
114 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci
115 endef
116 TARGET_DEVICES += ai-br100
117
118 whr_300hp2_mtd_size=7012352
119 define Device/whr-300hp2
120 DTS := WHR-300HP2
121 IMAGE_SIZE := $(whr_300hp2_mtd_size)
122 DEVICE_TITLE := Buffalo WHR-300HP2
123 endef
124 TARGET_DEVICES += whr-300hp2
125
126 define Device/whr-600d
127 DTS := WHR-600D
128 IMAGE_SIZE := $(whr_300hp2_mtd_size)
129 DEVICE_TITLE := Buffalo WHR-600D
130 endef
131 TARGET_DEVICES += whr-600d
132
133 whr_1166d_mtd_size=15400960
134 define Device/whr-1166d
135 DTS := WHR-1166D
136 IMAGE_SIZE := $(whr_1166d_mtd_size)
137 DEVICE_TITLE := Buffalo WHR-1166D
138 endef
139 TARGET_DEVICES += whr-1166d
140
141 dlink810l_mtd_size=6881280
142 define Device/dir-810l
143 DTS := DIR-810L
144 IMAGE_SIZE := $(dlink810l_mtd_size)
145 DEVICE_TITLE := D-Link DIR-810L
146 endef
147 TARGET_DEVICES += dir-810l
148
149 na930_mtd_size=20971520
150 define Device/na930
151 DTS := NA930
152 IMAGE_SIZE := $(na930_mtd_size)
153 DEVICE_TITLE := Sercomm NA930
154 endef
155 TARGET_DEVICES += na930
156
157 microwrt_mtd_size=16515072
158 define Device/microwrt
159 DTS := MicroWRT
160 IMAGE_SIZE := $(microwrt_mtd_size)
161 DEVICE_TITLE := Microduino MicroWRT
162 endef
163 TARGET_DEVICES += microwrt
164
165 define Device/mt7620a
166 DTS := MT7620a
167 IMAGE_SIZE := $(ralink_default_fw_size_8M)
168 DEVICE_TITLE := MediaTek MT7620a EVB
169 endef
170 TARGET_DEVICES += mt7620a
171
172 define Device/mt7620a_mt7610e
173 DTS := MT7620a_MT7610e
174 IMAGE_SIZE := $(ralink_default_fw_size_8M)
175 DEVICE_TITLE := MediaTek MT7620a + MT7610e EVB
176 endef
177 TARGET_DEVICES += mt7620a_mt7610e
178
179 define Device/mt7620a_mt7530
180 DTS := MT7620a_MT7530
181 IMAGE_SIZE := $(ralink_default_fw_size_8M)
182 DEVICE_TITLE := MediaTek MT7620a + MT7530 EVB
183 endef
184 TARGET_DEVICES += mt7620a_mt7530
185
186 define Device/mt7620a_v22sg
187 DTS := MT7620a_V22SG
188 IMAGE_SIZE := $(ralink_default_fw_size_8M)
189 DEVICE_TITLE := MediaTek MT7620a V22SG
190 endef
191 TARGET_DEVICES += mt7620a_v22sg
192
193 define Device/rp-n53
194 DTS := RP-N53
195 IMAGE_SIZE := $(ralink_default_fw_size_8M)
196 DEVICE_TITLE := Asus RP-N53
197 endef
198 TARGET_DEVICES += rp-n53
199
200 define Device/cf-wr800n
201 DTS := CF-WR800N
202 IMAGE_SIZE := $(ralink_default_fw_size_8M)
203 DEVICE_TITLE := Comfast CF-WR800N
204 endef
205 TARGET_DEVICES += cf-wr800n
206
207 define Device/cs-qr10
208 DTS := CS-QR10
209 IMAGE_SIZE := $(ralink_default_fw_size_8M)
210 DEVICE_TITLE := Planex CS-QR10
211 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-i2c-core kmod-i2c-ralink kmod-sound-core kmod-sound-mtk kmod-sdhci-mt7620
212 endef
213 TARGET_DEVICES += cs-qr10
214
215 define Device/db-wrt01
216 DTS := DB-WRT01
217 IMAGE_SIZE := $(ralink_default_fw_size_8M)
218 DEVICE_TITLE := Planex DB-WRT01
219 endef
220 TARGET_DEVICES += db-wrt01
221
222 define Device/mzk-750dhp
223 DTS := MZK-750DHP
224 IMAGE_SIZE := $(ralink_default_fw_size_8M)
225 DEVICE_TITLE := Planex MZK-750DHP
226 DEVICE_PACKAGES := kmod-mt76
227 endef
228 TARGET_DEVICES += mzk-750dhp
229
230 define Device/mzk-ex300np
231 DTS := MZK-EX300NP
232 IMAGE_SIZE := $(ralink_default_fw_size_8M)
233 DEVICE_TITLE := Planex MZK-EX300NP
234 endef
235 TARGET_DEVICES += mzk-ex300np
236
237 define Device/mzk-ex750np
238 DTS := MZK-EX750NP
239 IMAGE_SIZE := $(ralink_default_fw_size_8M)
240 DEVICE_TITLE := Planex MZK-EX750NP
241 DEVICE_PACKAGES := kmod-mt76
242 endef
243 TARGET_DEVICES += mzk-ex750np
244
245 define Device/hc5661
246 DTS := HC5661
247 IMAGE_SIZE := $(ralink_default_fw_size_16M)
248 DEVICE_TITLE := HiWiFi HC5661
249 DEVICE_PACKAGES := kmod-usb2 kmod-sdhci kmod-sdhci-mt7620 kmod-ledtrig-usbdev
250 endef
251 TARGET_DEVICES += hc5661
252
253 define Device/hc5761
254 DTS := HC5761
255 IMAGE_SIZE := $(ralink_default_fw_size_16M)
256 DEVICE_TITLE := HiWiFi HC5761
257 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci kmod-sdhci-mt7620 kmod-ledtrig-usbdev
258 endef
259 TARGET_DEVICES += hc5761
260
261 define Device/hc5861
262 DTS := HC5861
263 IMAGE_SIZE := $(ralink_default_fw_size_16M)
264 DEVICE_TITLE := HiWiFi HC5861
265 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci kmod-sdhci-mt7620 kmod-ledtrig-usbdev
266 endef
267 TARGET_DEVICES += hc5861
268
269 define Device/oy-0001
270 DTS := OY-0001
271 IMAGE_SIZE := $(ralink_default_fw_size_16M)
272 DEVICE_TITLE := Oh Yeah OY-0001
273 endef
274 TARGET_DEVICES += oy-0001
275
276 define Device/psg1208
277 DTS := PSG1208
278 IMAGE_SIZE := $(ralink_default_fw_size_8M)
279 DEVICE_TITLE := Phicomm PSG1208
280 DEVICE_PACKAGES := kmod-mt76
281 endef
282 TARGET_DEVICES += psg1208
283
284 define Device/y1
285 DTS := Y1
286 IMAGE_SIZE := $(ralink_default_fw_size_16M)
287 DEVICE_TITLE := Lenovo Y1
288 endef
289 TARGET_DEVICES += y1
290
291 define Device/y1s
292 DTS := Y1S
293 IMAGE_SIZE := $(ralink_default_fw_size_16M)
294 DEVICE_TITLE := Lenovo Y1S
295 endef
296 TARGET_DEVICES += y1s
297
298 define Device/mlw221
299 DTS := MLW221
300 IMAGE_SIZE := $(ralink_default_fw_size_16M)
301 DEVICE_TITLE := Kingston MLW221
302 endef
303 TARGET_DEVICES += mlw221
304
305 define Device/mlwg2
306 DTS := MLWG2
307 IMAGE_SIZE := $(ralink_default_fw_size_16M)
308 DEVICE_TITLE := Kingston MLWG2
309 endef
310 TARGET_DEVICES += mlwg2
311
312 define Device/wmr-300
313 DTS := WMR-300
314 IMAGE_SIZE := $(ralink_default_fw_size_8M)
315 DEVICE_TITLE := Buffalo WMR-300
316 endef
317 TARGET_DEVICES += wmr-300
318
319 define Device/rt-n14u
320 DTS := RT-N14U
321 IMAGE_SIZE := $(ralink_default_fw_size_8M)
322 DEVICE_TITLE := Asus RT-N14u
323 endef
324 TARGET_DEVICES += rt-n14u
325
326 define Device/wrtnode
327 DTS := WRTNODE
328 IMAGE_SIZE := $(ralink_default_fw_size_16M)
329 DEVICE_TITLE := WRTNode
330 endef
331 TARGET_DEVICES += wrtnode
332
333 define Device/miwifi-mini
334 DTS := MIWIFI-MINI
335 IMAGE_SIZE := $(ralink_default_fw_size_16M)
336 DEVICE_TITLE := Xiaomi MiWiFi Mini
337 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
338 endef
339 TARGET_DEVICES += miwifi-mini
340
341 define Device/gl-mt300a
342 DTS := GL-MT300A
343 IMAGE_SIZE := $(ralink_default_fw_size_16M)
344 DEVICE_TITLE := GL-Inet GL-MT300A
345 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76
346 endef
347 TARGET_DEVICES += gl-mt300a
348
349 define Device/gl-mt300n
350 DTS := GL-MT300N
351 IMAGE_SIZE := $(ralink_default_fw_size_16M)
352 DEVICE_TITLE := GL-Inet GL-MT300N
353 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76
354 endef
355 TARGET_DEVICES += gl-mt300n
356
357 define Device/gl-mt750
358 DTS := GL-MT750
359 IMAGE_SIZE := $(ralink_default_fw_size_16M)
360 DEVICE_TITLE := GL-Inet GL-MT750
361 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76
362 endef
363 TARGET_DEVICES += gl-mt750
364
365 define Device/zte-q7
366 DTS := ZTE-Q7
367 IMAGE_SIZE := $(ralink_default_fw_size_8M)
368 DEVICE_TITLE := ZTE Q7
369 endef
370 TARGET_DEVICES += zte-q7
371
372 define Device/youku-yk1
373 DTS := YOUKU-YK1
374 IMAGE_SIZE := $(ralink_default_fw_size_16M)
375 DEVICE_TITLE := YOUKU YK1
376 endef
377 TARGET_DEVICES += youku-yk1
378
379 define Device/zbt-wa05
380 DTS := ZBT-WA05
381 IMAGE_SIZE := $(ralink_default_fw_size_8M)
382 DEVICE_TITLE := Zbtlink ZBT-WA05
383 endef
384 TARGET_DEVICES += zbt-wa05
385
386 define Device/zbt-we826
387 DTS := ZBT-WE826
388 IMAGE_SIZE := $(ralink_default_fw_size_16M)
389 DEVICE_TITLE := Zbtlink ZBT-WE826
390 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-sdhci-mt7620
391 endef
392 TARGET_DEVICES += zbt-we826
393
394 define Device/zbt-wr8305rt
395 DTS := ZBT-WR8305RT
396 IMAGE_SIZE := $(ralink_default_fw_size_8M)
397 DEVICE_TITLE := Zbtlink ZBT-WR8305RT
398 endef
399 TARGET_DEVICES += zbt-wr8305rt
400
401 define Device/tiny-ac
402 DTS := TINY-AC
403 IMAGE_SIZE := $(ralink_default_fw_size_8M)
404 DEVICE_TITLE := Dovado Tiny AC
405 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
406 endef
407 TARGET_DEVICES += tiny-ac