ar71xx: create new ar71xx/tiny subtarget for 4MB flash devices
[openwrt/openwrt.git] / target / linux / ar71xx / image / generic-tp-link.mk
1 include ./common-tp-link.mk
2
3
4 define Device/archer-cxx
5 KERNEL := kernel-bin | patch-cmdline | lzma | uImageArcher lzma
6 IMAGES := sysupgrade.bin factory.bin
7 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | \
8 append-metadata | check-size $$$$(IMAGE_SIZE)
9 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
10 endef
11
12 define Device/archer-c25-v1
13 $(Device/archer-cxx)
14 DEVICE_TITLE := TP-LINK Archer C25 v1
15 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca9887
16 BOARDNAME := ARCHER-C25-V1
17 TPLINK_BOARD_ID := ARCHER-C25-V1
18 DEVICE_PROFILE := ARCHERC25V1
19 IMAGE_SIZE := 7808k
20 LOADER_TYPE := elf
21 MTDPARTS := spi0.0:128k(factory-uboot)ro,64k(u-boot)ro,1536k(kernel),6272k(rootfs),128k(config)ro,64k(art)ro,7808k@0x30000(firmware)
22 SUPPORTED_DEVICES := archer-c25-v1
23 endef
24 TARGET_DEVICES += archer-c25-v1
25
26 define Device/archer-c58-v1
27 $(Device/archer-cxx)
28 DEVICE_TITLE := TP-LINK Archer C58 v1
29 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca9888
30 BOARDNAME := ARCHER-C58-V1
31 TPLINK_BOARD_ID := ARCHER-C58-V1
32 DEVICE_PROFILE := ARCHERC58V1
33 IMAGE_SIZE := 7936k
34 MTDPARTS := spi0.0:64k(u-boot)ro,64k(mac)ro,7936k(firmware),64k(tplink)ro,64k(art)ro
35 SUPPORTED_DEVICES := archer-c58-v1
36 endef
37 TARGET_DEVICES += archer-c58-v1
38
39 define Device/archer-c59-v1
40 $(Device/archer-cxx)
41 DEVICE_TITLE := TP-LINK Archer C59 v1
42 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca9888
43 BOARDNAME := ARCHER-C59-V1
44 TPLINK_BOARD_ID := ARCHER-C59-V1
45 DEVICE_PROFILE := ARCHERC59V1
46 IMAGE_SIZE := 14528k
47 MTDPARTS := spi0.0:64k(u-boot)ro,64k(mac)ro,1536k(kernel),12992k(rootfs),1664k(tplink)ro,64k(art)ro,14528k@0x20000(firmware)
48 SUPPORTED_DEVICES := archer-c59-v1
49 endef
50 TARGET_DEVICES += archer-c59-v1
51
52 define Device/archer-c60-v1
53 $(Device/archer-cxx)
54 DEVICE_TITLE := TP-LINK Archer C60 v1
55 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca9888
56 BOARDNAME := ARCHER-C60-V1
57 TPLINK_BOARD_ID := ARCHER-C60-V1
58 DEVICE_PROFILE := ARCHERC60V1
59 IMAGE_SIZE := 7936k
60 MTDPARTS := spi0.0:64k(u-boot)ro,64k(mac)ro,7936k(firmware),64k(tplink)ro,64k(art)ro
61 SUPPORTED_DEVICES := archer-c60-v1
62 endef
63 TARGET_DEVICES += archer-c60-v1
64
65 define Device/archer-c5-v1
66 $(Device/tplink-16mlzma)
67 DEVICE_TITLE := TP-LINK Archer C5 v1
68 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
69 BOARDNAME := ARCHER-C5
70 DEVICE_PROFILE := ARCHERC7
71 TPLINK_HWID := 0xc5000001
72 endef
73 TARGET_DEVICES += archer-c5-v1
74
75 define Device/archer-c7-v1
76 $(Device/tplink-8mlzma)
77 DEVICE_TITLE := TP-LINK Archer C7 v1
78 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
79 BOARDNAME := ARCHER-C7
80 DEVICE_PROFILE := ARCHERC7
81 TPLINK_HWID := 0x75000001
82 endef
83 TARGET_DEVICES += archer-c7-v1
84
85 define Device/archer-c7-v2
86 $(Device/tplink-16mlzma)
87 DEVICE_TITLE := TP-LINK Archer C7 v2
88 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
89 BOARDNAME := ARCHER-C7-V2
90 DEVICE_PROFILE := ARCHERC7
91 TPLINK_HWID := 0xc7000002
92 IMAGES := sysupgrade.bin factory.bin factory-us.bin factory-eu.bin
93 IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
94 IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
95 endef
96 TARGET_DEVICES += archer-c7-v2
97
98 define Device/archer-c7-v2-il
99 $(Device/tplink-16mlzma)
100 DEVICE_TITLE := TP-LINK Archer C7 v2 (IL)
101 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
102 BOARDNAME := ARCHER-C7-V2
103 DEVICE_PROFILE := ARCHERC7
104 TPLINK_HWID := 0xc7000002
105 TPLINK_HWREV := 0x494c0001
106 endef
107 TARGET_DEVICES += archer-c7-v2-il
108
109 define Device/tl-wdr7500-v3
110 $(Device/tplink-8mlzma)
111 DEVICE_TITLE := TP-LINK Archer C7 v3
112 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
113 BOARDNAME := ARCHER-C7
114 DEVICE_PROFILE := ARCHERC7
115 TPLINK_HWID := 0x75000003
116 endef
117 TARGET_DEVICES += tl-wdr7500-v3
118
119 define Device/archer-c7-v4
120 $(Device/archer-cxx)
121 DEVICE_TITLE := TP-LINK Archer C7 v4
122 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x
123 BOARDNAME := ARCHER-C7-V4
124 TPLINK_BOARD_ID := ARCHER-C7-V4
125 IMAGE_SIZE := 15104k
126 LOADER_TYPE := elf
127 MTDPARTS := spi0.0:128k(factory-uboot)ro,128k(u-boot)ro,1536k(kernel),13568k(rootfs),960k(config)ro,64k(art)ro,15104k@0x40000(firmware)
128 SUPPORTED_DEVICES := archer-c7-v4
129 endef
130 TARGET_DEVICES += archer-c7-v4
131
132 define Device/cpe510-520-v1
133 DEVICE_TITLE := TP-LINK CPE510/520 v1
134 DEVICE_PACKAGES := rssileds
135 MTDPARTS := spi0.0:128k(u-boot)ro,64k(partition-table)ro,64k(product-info)ro,1536k(kernel),6144k(rootfs),192k(config)ro,64k(ART)ro,7680k@0x40000(firmware)
136 IMAGE_SIZE := 7680k
137 BOARDNAME := CPE510
138 TPLINK_BOARD_ID := CPE510
139 DEVICE_PROFILE := CPE510
140 LOADER_TYPE := elf
141 KERNEL := kernel-bin | patch-cmdline | lzma | loader-kernel
142 IMAGES := sysupgrade.bin factory.bin
143 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
144 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
145 endef
146 TARGET_DEVICES += cpe510-520-v1
147
148 define Device/cpe210-220-v1
149 $(Device/cpe510-520-v1)
150 DEVICE_TITLE := TP-LINK CPE210/220 v1
151 BOARDNAME := CPE210
152 TPLINK_BOARD_ID := CPE210
153 endef
154 TARGET_DEVICES += cpe210-220-v1
155
156 define Device/wbs210-v1
157 $(Device/cpe510-520-v1)
158 DEVICE_TITLE := TP-LINK WBS210 v1
159 BOARDNAME := WBS210
160 TPLINK_BOARD_ID := WBS210
161 endef
162 TARGET_DEVICES += wbs210-v1
163
164 define Device/wbs510-v1
165 $(Device/cpe510-520-v1)
166 DEVICE_TITLE := TP-LINK WBS510 v1
167 BOARDNAME := WBS510
168 TPLINK_BOARD_ID := WBS510
169 endef
170 TARGET_DEVICES += wbs510-v1
171
172 define Device/eap120-v1
173 DEVICE_TITLE := TP-LINK EAP120 v1
174 MTDPARTS := spi0.0:128k(u-boot)ro,64k(partition-table)ro,64k(product-info)ro,1536k(kernel),14336k(rootfs),192k(config)ro,64k(ART)ro,15872k@0x40000(firmware)
175 IMAGE_SIZE := 15872k
176 BOARDNAME := EAP120
177 TPLINK_BOARD_ID := EAP120
178 DEVICE_PROFILE := EAP120
179 LOADER_TYPE := elf
180 KERNEL := kernel-bin | patch-cmdline | lzma | loader-kernel
181 IMAGES := sysupgrade.bin factory.bin
182 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
183 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
184 endef
185 TARGET_DEVICES += eap120-v1
186
187 define Device/re450-v1
188 DEVICE_TITLE := TP-LINK RE450 v1
189 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x
190 MTDPARTS := spi0.0:128k(u-boot)ro,6016k(firmware),64k(partition-table)ro,64k(product-info)ro,1856k(config)ro,64k(art)ro
191 IMAGE_SIZE := 7936k
192 BOARDNAME := RE450
193 TPLINK_BOARD_ID := RE450
194 DEVICE_PROFILE := RE450
195 LOADER_TYPE := elf
196 TPLINK_HWID := 0x0
197 TPLINK_HWREV := 0
198 TPLINK_HEADER_VERSION := 1
199 KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header
200 IMAGES := sysupgrade.bin factory.bin
201 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
202 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
203 endef
204 TARGET_DEVICES += re450-v1
205
206 define Device/tl-mr6400-v1
207 $(Device/tplink-8mlzma)
208 DEVICE_TITLE := TP-LINK TL-MR6400 v1
209 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-net kmod-usb-net-rndis kmod-usb-serial kmod-usb-serial-option adb-enablemodem
210 BOARDNAME := TL-MR6400
211 DEVICE_PROFILE := TLMR6400
212 TPLINK_HWID := 0x64000001
213 endef
214 TARGET_DEVICES += tl-mr6400-v1
215
216 define Device/tl-wdr3500-v1
217 $(Device/tplink-8mlzma)
218 DEVICE_TITLE := TP-LINK TL-WDR3500 v1
219 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
220 BOARDNAME := TL-WDR3500
221 DEVICE_PROFILE := TLWDR4300
222 TPLINK_HWID := 0x35000001
223 endef
224 TARGET_DEVICES += tl-wdr3500-v1
225
226 define Device/tl-wdr3600-v1
227 $(Device/tl-wdr3500-v1)
228 DEVICE_TITLE := TP-LINK TL-WDR3600 v1
229 BOARDNAME := TL-WDR4300
230 TPLINK_HWID := 0x36000001
231 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C US
232 endef
233 TARGET_DEVICES += tl-wdr3600-v1
234
235 define Device/tl-wdr4300-v1
236 $(Device/tl-wdr3600-v1)
237 DEVICE_TITLE := TP-LINK TL-WDR4300 v1
238 TPLINK_HWID := 0x43000001
239 endef
240 TARGET_DEVICES += tl-wdr4300-v1
241
242 define Device/tl-wdr4300-v1-il
243 $(Device/tl-wdr3500-v1)
244 DEVICE_TITLE := TP-LINK TL-WDR4300 v1 (IL)
245 BOARDNAME := TL-WDR4300
246 TPLINK_HWID := 0x43008001
247 endef
248 TARGET_DEVICES += tl-wdr4300-v1-il
249
250 define Device/tl-wdr4310-v1
251 $(Device/tl-wdr4300-v1-il)
252 DEVICE_TITLE := TP-LINK TL-WDR4310 v1
253 TPLINK_HWID := 0x43100001
254 endef
255 TARGET_DEVICES += tl-wdr4310-v1
256
257 define Device/tl-wdr4900-v2
258 $(Device/tplink-8mlzma)
259 DEVICE_TITLE := TP-LINK TL-WDR4900 v2
260 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
261 BOARDNAME := TL-WDR4900-v2
262 DEVICE_PROFILE := TLWDR4900V2
263 TPLINK_HWID := 0x49000002
264 endef
265 TARGET_DEVICES += tl-wdr4900-v2
266
267 define Device/tl-wdr6500-v2
268 $(Device/tplink-8mlzma)
269 DEVICE_TITLE := TP-LINK TL-WDR6500 v2
270 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k ath10k-firmware-qca988x
271 KERNEL := kernel-bin | patch-cmdline | lzma | uImage lzma
272 KERNEL_INITRAMFS := kernel-bin | patch-cmdline | lzma | uImage lzma | tplink-v1-header
273 BOARDNAME := TL-WDR6500-v2
274 DEVICE_PROFILE := TLWDR6500V2
275 TPLINK_HWID := 0x65000002
276 TPLINK_HEADER_VERSION := 2
277 endef
278 TARGET_DEVICES += tl-wdr6500-v2
279
280 define Device/mw4530r-v1
281 $(Device/tl-wdr4300-v1)
282 DEVICE_TITLE := Mercury MW4530R v1
283 TPLINK_HWID := 0x45300001
284 endef
285 TARGET_DEVICES += mw4530r-v1
286
287 define Device/tl-wpa8630-v1
288 $(Device/tplink-8mlzma)
289 DEVICE_TITLE := TP-LINK TL-WPA8630 v1
290 DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x
291 BOARDNAME := TL-WPA8630
292 DEVICE_PROFILE := TL-WPA8630
293 TPLINK_HWID := 0x86300001
294 endef
295 TARGET_DEVICES += tl-wpa8630-v1
296
297 define Device/tl-wr1043n-v5
298 $(Device/archer-cxx)
299 DEVICE_TITLE := TP-LINK TL-WR1043N v5
300 BOARDNAME := TL-WR1043N-v5
301 SUPPORTED_DEVICES := tl-wr1043n-v5
302 DEVICE_PROFILE := TLWR1043
303 MTDPARTS := spi0.0:128k(factory-uboot)ro,128k(u-boot)ro,15104k(firmware),128k(product-info)ro,640k(config)ro,64k(partition-table)ro,128k(logs)ro,64k(art)ro
304 IMAGE_SIZE := 15104k
305 TPLINK_BOARD_ID := TLWR1043NV5
306 endef
307 TARGET_DEVICES += tl-wr1043n-v5
308
309 define Device/tl-wr1043nd-v1
310 $(Device/tplink-8m)
311 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v1
312 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
313 BOARDNAME := TL-WR1043ND
314 DEVICE_PROFILE := TLWR1043
315 TPLINK_HWID := 0x10430001
316 endef
317 TARGET_DEVICES += tl-wr1043nd-v1
318
319 define Device/tl-wr1043nd-v2
320 $(Device/tplink-8mlzma)
321 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v2
322 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
323 BOARDNAME := TL-WR1043ND-v2
324 DEVICE_PROFILE := TLWR1043
325 TPLINK_HWID := 0x10430002
326 endef
327 TARGET_DEVICES += tl-wr1043nd-v2
328
329 define Device/tl-wr1043nd-v3
330 $(Device/tl-wr1043nd-v2)
331 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v3
332 TPLINK_HWID := 0x10430003
333 endef
334 TARGET_DEVICES += tl-wr1043nd-v3
335
336 define Device/tl-wr1043nd-v4
337 $(Device/tplink)
338 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v4
339 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
340 BOARDNAME := TL-WR1043ND-v4
341 DEVICE_PROFILE := TLWR1043
342 TPLINK_HWID := 0x10430004
343 MTDPARTS := spi0.0:128k(u-boot)ro,1536k(kernel),14016k(rootfs),128k(product-info)ro,320k(config)ro,64k(partition-table)ro,128k(logs)ro,64k(ART)ro,15552k@0x20000(firmware)
344 IMAGE_SIZE := 15552k
345 TPLINK_BOARD_ID := TLWR1043NDV4
346 KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header
347 IMAGES := sysupgrade.bin factory.bin
348 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade
349 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
350 endef
351 TARGET_DEVICES += tl-wr1043nd-v4
352
353 define Device/tl-wr2543-v1
354 $(Device/tplink-8mlzma)
355 DEVICE_TITLE := TP-LINK TL-WR2543N/ND v1
356 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
357 BOARDNAME := TL-WR2543N
358 DEVICE_PROFILE := TLWR2543
359 TPLINK_HWID := 0x25430001
360 IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade -v 3.13.99
361 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -v 3.13.99
362 endef
363 TARGET_DEVICES += tl-wr2543-v1
364
365 define Device/tl-wr710n-v1
366 $(Device/tplink-8mlzma)
367 DEVICE_TITLE := TP-LINK TL-WR710N v1
368 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
369 BOARDNAME := TL-WR710N
370 DEVICE_PROFILE := TLWR710
371 TPLINK_HWID := 0x07100001
372 CONSOLE := ttyATH0,115200
373 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -C US
374 endef
375 TARGET_DEVICES += tl-wr710n-v1
376
377 define Device/tl-wr710n-v2.1
378 $(Device/tl-wr710n-v1)
379 DEVICE_TITLE := TP-LINK TL-WR710N v2.1
380 TPLINK_HWID := 0x07100002
381 TPLINK_HWREV := 0x00000002
382 endef
383 TARGET_DEVICES += tl-wr710n-v2.1
384
385 define Device/tl-wr810n-v1
386 $(Device/tplink-8mlzma)
387 DEVICE_TITLE := TP-LINK TL-WR810N v1
388 DEVICE_PACKAGES := kmod-usb-core kmod-usb2
389 BOARDNAME := TL-WR810N
390 DEVICE_PROFILE := TLWR810
391 TPLINK_HWID := 0x08100001
392 endef
393 TARGET_DEVICES += tl-wr810n-v1
394
395 define Device/tl-wr810n-v2
396 $(Device/tplink-8mlzma)
397 DEVICE_TITLE := TP-LINK TL-WR810N v2
398 BOARDNAME := TL-WR810N-v2
399 DEVICE_PROFILE := TLWR810
400 TPLINK_HWID := 0x08100002
401 endef
402 TARGET_DEVICES += tl-wr810n-v2
403
404 define Device/tl-wr842n-v1
405 $(Device/tplink-8m)
406 DEVICE_TITLE := TP-LINK TL-WR842N/ND v1
407 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
408 BOARDNAME := TL-MR3420
409 DEVICE_PROFILE := TLWR842
410 TPLINK_HWID := 0x08420001
411 endef
412 TARGET_DEVICES += tl-wr842n-v1
413
414 define Device/tl-wr842n-v2
415 $(Device/tplink-8mlzma)
416 DEVICE_TITLE := TP-LINK TL-WR842N/ND v2
417 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
418 BOARDNAME := TL-WR842N-v2
419 DEVICE_PROFILE := TLWR842
420 TPLINK_HWID := 0x8420002
421 endef
422 TARGET_DEVICES += tl-wr842n-v2
423
424 define Device/tl-wr842n-v3
425 $(Device/tplink-16mlzma)
426 DEVICE_TITLE := TP-LINK TL-WR842N/ND v3
427 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
428 BOARDNAME := TL-WR842N-v3
429 DEVICE_PROFILE := TLWR842
430 TPLINK_HWID := 0x08420003
431 endef
432 TARGET_DEVICES += tl-wr842n-v3
433
434 define Device/tl-wr902ac-v1
435 DEVICE_TITLE := TP-LINK TL-WR902AC v1
436 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport \
437 kmod-ath10k ath10k-firmware-qca9887 -swconfig -uboot-envtools
438 BOARDNAME := TL-WR902AC-V1
439 DEVICE_PROFILE := TLWR902
440 TPLINK_BOARD_ID := TL-WR902AC-V1
441 TPLINK_HWID := 0x0
442 TPLINK_HWREV := 0
443 TPLINK_HEADER_VERSION := 1
444 SUPPORTED_DEVICES := tl-wr902ac-v1
445 IMAGE_SIZE := 7360k
446 KERNEL := kernel-bin | patch-cmdline | lzma | tplink-v1-header
447 IMAGES += factory.bin
448 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
449 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | \
450 append-metadata | check-size $$$$(IMAGE_SIZE)
451 MTDPARTS := spi0.0:128k(u-boot)ro,7360k(firmware),640k(tplink)ro,64k(art)ro
452 endef
453 TARGET_DEVICES += tl-wr902ac-v1
454
455 define Device/tl-wr942n-v1
456 DEVICE_TITLE := TP-LINK TL-WR942N v1
457 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
458 BOARDNAME := TL-WR942N-V1
459 TPLINK_BOARD_ID := TLWR942NV1
460 DEVICE_PROFILE := TLWR942
461 IMAGE_SIZE := 14464k
462 KERNEL := kernel-bin | patch-cmdline | lzma | uImageArcher lzma
463 IMAGES := sysupgrade.bin factory.bin
464 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | \
465 append-metadata | check-size $$$$(IMAGE_SIZE)
466 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
467 MTDPARTS := spi0.0:128k(u-boot)ro,14464k(firmware),64k(product-info)ro,64k(partition-table)ro,256k(oem-config)ro,1344k(oem-vars)ro,64k(ART)ro
468 SUPPORTED_DEVICES := tl-wr942n-v1
469 endef
470 TARGET_DEVICES += tl-wr942n-v1