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
$@
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
$@
16 define Build
/netgear-header
17 $(STAGING_DIR_HOST
)/bin
/mkdniimg \
18 $(1) -v OpenWrt
-i
$@ \
19 -o
$@.new
&& mv
$@.new
$@
22 define Build
/poray-header
29 define Build
/elecom-header
30 cp
$@
$(KDIR
)/v_0.0
.0.bin
32 $(STAGING_DIR_HOST
)/bin
/md5sum
$(KDIR
)/v_0.0
.0.bin | \
35 ) |
$(STAGING_DIR_HOST
)/bin
/md5sum | \
36 sed
's/ .*//' > $(KDIR
)/v_0.0
.0.md5
37 $(STAGING_DIR_HOST
)/bin
/tar -cf
$@
-C
$(KDIR
) v_0.0
.0.bin v_0.0
.0.md5
40 define Device
/ArcherC20i
42 KERNEL
:= $(KERNEL_DTB
)
43 KERNEL_INITRAMFS
:= $(KERNEL_DTB
) | tplink-header ArcherC20i
-c
44 IMAGE
/sysupgrade.bin
:= append-kernel | tplink-header ArcherC20i
-j
-r
$(KDIR
)/root.squashfs
45 DEVICE_TITLE
:= TP-Link ArcherC20i
47 TARGET_DEVICES
+= ArcherC20i
49 define Device
/ArcherC50
51 KERNEL
:= $(KERNEL_DTB
)
52 KERNEL_INITRAMFS
:= $(KERNEL_DTB
) | tplink-header ArcherC50
-c
53 IMAGE
/sysupgrade.bin
:= append-kernel | tplink-header ArcherC50
-j
-r
$(KDIR
)/root.squashfs
54 DEVICE_TITLE
:= TP-Link ArcherC50
56 TARGET_DEVICES
+= ArcherC50
61 IMAGE_SIZE
:= $(ralink_default_fw_size_4M
)
63 KERNEL
:= $(KERNEL_DTB
) | uImage lzma | pad-kernel-ex2700
64 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | netgear-header
-B EX2700
-H
29764623+4+0+32+2x2
+0
65 DEVICE_TITLE
:= Netgear EX2700
67 TARGET_DEVICES
+= ex2700
69 define Device
/wt3020-4M
72 IMAGE_SIZE
:= $(ralink_default_fw_size_4M
)
74 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | poray-header
-B WT3020
-F
4M
75 DEVICE_TITLE
:= Nexx WT3020
(4MB
)
77 TARGET_DEVICES
+= wt3020-4M
79 define Device
/wt3020-8M
82 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | poray-header
-B WT3020
-F
8M
83 DEVICE_TITLE
:= Nexx WT3020
(8MB
)
85 TARGET_DEVICES
+= wt3020-8M
87 define Device
/wrh-300cr
89 IMAGE_SIZE
:= $(ralink_default_fw_size_16M
)
91 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | elecom-header
92 DEVICE_TITLE
:= Elecom WRH-300CR
93 DEVICE_PACKAGES
:= kmod-usb2 kmod-usb-ohci
95 TARGET_DEVICES
+= wrh-300cr
100 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | umedia-header
0x013326
101 DEVICE_TITLE
:= Linksys E1700
103 TARGET_DEVICES
+= e1700
105 define Device
/ai-br100
108 DEVICE_TITLE
:= Aigale Ai-BR100
109 DEVICE_PACKAGES
:= kmod-usb2 kmod-usb-ohci
111 TARGET_DEVICES
+= ai-br100
113 define Device
/whr-300hp2
116 DEVICE_TITLE
:= Buffalo WHR-300HP2
118 TARGET_DEVICES
+= whr-300hp2
120 define Device
/whr-600d
123 DEVICE_TITLE
:= Buffalo WHR-600D
125 TARGET_DEVICES
+= whr-600d
127 define Device
/whr-1166d
130 DEVICE_TITLE
:= Buffalo WHR-1166D
132 TARGET_DEVICES
+= whr-1166d
134 define Device
/dir-810l
137 DEVICE_TITLE
:= D-Link DIR-810L
139 TARGET_DEVICES
+= dir-810l
144 DEVICE_TITLE
:= Sercomm NA930
146 TARGET_DEVICES
+= na930
148 define Device
/microwrt
151 DEVICE_TITLE
:= Microduino MicroWRT
153 TARGET_DEVICES
+= microwrt
155 define Device
/mt7620a
157 DEVICE_TITLE
:= MediaTek MT7620a EVB
159 TARGET_DEVICES
+= mt7620a
161 define Device
/mt7620a_mt7610e
162 DTS
:= MT7620a_MT7610e
163 DEVICE_TITLE
:= MediaTek MT7620a
+ MT7610e EVB
165 TARGET_DEVICES
+= mt7620a_mt7610e
167 define Device
/mt7620a_mt7530
168 DTS
:= MT7620a_MT7530
169 DEVICE_TITLE
:= MediaTek MT7620a
+ MT7530 EVB
171 TARGET_DEVICES
+= mt7620a_mt7530
173 define Device
/mt7620a_v22sg
175 DEVICE_TITLE
:= MediaTek MT7620a V22SG
177 TARGET_DEVICES
+= mt7620a_v22sg
181 DEVICE_TITLE
:= Asus RP-N53
183 TARGET_DEVICES
+= rp-n53
185 define Device
/cf-wr800n
187 DEVICE_TITLE
:= Comfast CF-WR800N
189 TARGET_DEVICES
+= cf-wr800n
191 define Device
/cs-qr10
193 DEVICE_TITLE
:= Planex CS-QR10
194 DEVICE_PACKAGES
:= kmod-usb2 kmod-usb-ohci kmod-i2c-core kmod-i2c-ralink kmod-sound-core kmod-sound-mtk kmod-sdhci-mt7620
196 TARGET_DEVICES
+= cs-qr10
198 define Device
/db-wrt01
200 DEVICE_TITLE
:= Planex DB-WRT01
202 TARGET_DEVICES
+= db-wrt01
204 define Device
/mzk-750dhp
206 DEVICE_TITLE
:= Planex MZK-750DHP
207 DEVICE_PACKAGES
:= kmod-mt76
209 TARGET_DEVICES
+= mzk-750dhp
211 define Device
/mzk-ex300np
213 DEVICE_TITLE
:= Planex MZK-EX300NP
215 TARGET_DEVICES
+= mzk-ex300np
217 define Device
/mzk-ex750np
219 DEVICE_TITLE
:= Planex MZK-EX750NP
220 DEVICE_PACKAGES
:= kmod-mt76
222 TARGET_DEVICES
+= mzk-ex750np
226 IMAGE_SIZE
:= $(ralink_default_fw_size_16M
)
227 DEVICE_TITLE
:= HiWiFi HC5661
228 DEVICE_PACKAGES
:= kmod-usb2 kmod-sdhci kmod-sdhci-mt7620 kmod-ledtrig-usbdev
230 TARGET_DEVICES
+= hc5661
234 IMAGE_SIZE
:= $(ralink_default_fw_size_16M
)
235 DEVICE_TITLE
:= HiWiFi HC5761
236 DEVICE_PACKAGES
:= kmod-usb2 kmod-usb-ohci kmod-sdhci kmod-sdhci-mt7620 kmod-ledtrig-usbdev
238 TARGET_DEVICES
+= hc5761
242 IMAGE_SIZE
:= $(ralink_default_fw_size_16M
)
243 DEVICE_TITLE
:= HiWiFi HC5861
244 DEVICE_PACKAGES
:= kmod-usb2 kmod-usb-ohci kmod-sdhci kmod-sdhci-mt7620 kmod-ledtrig-usbdev
246 TARGET_DEVICES
+= hc5861
248 define Device
/oy-0001
250 IMAGE_SIZE
:= $(ralink_default_fw_size_16M
)
251 DEVICE_TITLE
:= Oh Yeah OY-0001
253 TARGET_DEVICES
+= oy-0001
255 define Device
/psg1208
257 DEVICE_TITLE
:= Phicomm PSG1208
258 DEVICE_PACKAGES
:= kmod-mt76
260 TARGET_DEVICES
+= psg1208
264 IMAGE_SIZE
:= $(ralink_default_fw_size_16M
)
265 DEVICE_TITLE
:= Lenovo Y1
271 IMAGE_SIZE
:= $(ralink_default_fw_size_16M
)
272 DEVICE_TITLE
:= Lenovo Y1S
274 TARGET_DEVICES
+= y1s
278 IMAGE_SIZE
:= $(ralink_default_fw_size_16M
)
279 DEVICE_TITLE
:= Kingston MLW221
281 TARGET_DEVICES
+= mlw221
285 IMAGE_SIZE
:= $(ralink_default_fw_size_16M
)
286 DEVICE_TITLE
:= Kingston MLWG2
288 TARGET_DEVICES
+= mlwg2
290 define Device
/wmr-300
292 DEVICE_TITLE
:= Buffalo WMR-300
294 TARGET_DEVICES
+= wmr-300
296 define Device
/rt-n14u
298 DEVICE_TITLE
:= Asus RT-N14u
300 TARGET_DEVICES
+= rt-n14u
302 define Device
/wrtnode
304 IMAGE_SIZE
:= $(ralink_default_fw_size_16M
)
305 DEVICE_TITLE
:= WRTNode
307 TARGET_DEVICES
+= wrtnode
309 define Device
/miwifi-mini
311 IMAGE_SIZE
:= $(ralink_default_fw_size_16M
)
312 DEVICE_TITLE
:= Xiaomi MiWiFi Mini
313 DEVICE_PACKAGES
:= kmod-usb2 kmod-usb-ohci
315 TARGET_DEVICES
+= miwifi-mini
317 define Device
/gl-mt300a
319 IMAGE_SIZE
:= $(ralink_default_fw_size_16M
)
320 DEVICE_TITLE
:= GL-Inet GL-MT300A
321 DEVICE_PACKAGES
:= kmod-usb2 kmod-usb-ohci kmod-mt76
323 TARGET_DEVICES
+= gl-mt300a
325 define Device
/gl-mt300n
327 IMAGE_SIZE
:= $(ralink_default_fw_size_16M
)
328 DEVICE_TITLE
:= GL-Inet GL-MT300N
329 DEVICE_PACKAGES
:= kmod-usb2 kmod-usb-ohci kmod-mt76
331 TARGET_DEVICES
+= gl-mt300n
333 define Device
/gl-mt750
335 IMAGE_SIZE
:= $(ralink_default_fw_size_16M
)
336 DEVICE_TITLE
:= GL-Inet GL-MT750
337 DEVICE_PACKAGES
:= kmod-usb2 kmod-usb-ohci kmod-mt76
339 TARGET_DEVICES
+= gl-mt750
343 DEVICE_TITLE
:= ZTE Q7
345 TARGET_DEVICES
+= zte-q7
347 define Device
/youku-yk1
349 IMAGE_SIZE
:= $(ralink_default_fw_size_16M
)
350 DEVICE_TITLE
:= YOUKU YK1
352 TARGET_DEVICES
+= youku-yk1
354 define Device
/zbt-ape522ii
356 DEVICE_TITLE
:= Zbtlink ZBT-APE522II
357 DEVICE_PACKAGES
:= kmod-mt76
359 TARGET_DEVICES
+= zbt-ape522ii
361 define Device
/zbt-wa05
363 DEVICE_TITLE
:= Zbtlink ZBT-WA05
365 TARGET_DEVICES
+= zbt-wa05
367 define Device
/zbt-we826
369 IMAGE_SIZE
:= $(ralink_default_fw_size_16M
)
370 DEVICE_TITLE
:= Zbtlink ZBT-WE826
371 DEVICE_PACKAGES
:= kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-sdhci-mt7620
373 TARGET_DEVICES
+= zbt-we826
375 define Device
/zbt-wr8305rt
377 DEVICE_TITLE
:= Zbtlink ZBT-WR8305RT
379 TARGET_DEVICES
+= zbt-wr8305rt
381 define Device
/tiny-ac
383 DEVICE_TITLE
:= Dovado Tiny AC
384 DEVICE_PACKAGES
:= kmod-usb2 kmod-usb-ohci
386 TARGET_DEVICES
+= tiny-ac
388 define Device
/dch-m225
391 IMAGES
+= factory.bin
393 IMAGE
/sysupgrade.bin
:= \
394 append-kernel | pad-offset
$$$$(BLOCKSIZE
) 64 | append-rootfs | \
395 seama
-m
"dev=/dev/mtdblock/2" -m
"type=firmware" | \
396 pad-rootfs | check-size
$$$$(IMAGE_SIZE
)
397 IMAGE
/factory.bin
:= \
398 append-kernel | pad-offset
$$$$(BLOCKSIZE
) 64 | \
399 append-rootfs | pad-rootfs
-x
64 | \
400 seama
-m
"dev=/dev/mtdblock/2" -m
"type=firmware" | \
401 seama-seal
-m
"signature=wapn22_dlink.2013gui_dap1320b" | \
402 check-size
$$$$(IMAGE_SIZE
)
403 DEVICE_TITLE
:= D-Link DCH-M225
404 DEVICE_PACKAGES
:= kmod-mt76
406 TARGET_DEVICES
+= dch-m225