build: move lzma2eva build step to image-commands.mk
[openwrt/openwrt.git] / target / linux / lantiq / image / Makefile
1 #
2 # Copyright (C) 2010-2016 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 # boards missing since devicetree update
9 #EASY50712 ARV3527P
10
11 KERNEL_LOADADDR = 0x80002000
12 KERNEL_ENTRY = 0x80002000
13
14 include $(TOPDIR)/rules.mk
15 include $(INCLUDE_DIR)/image.mk
16
17 ifeq ($(SUBTARGET),xway)
18 UBIFS_OPTS := -m 512 -e 15872 -c 1959
19 else
20 UBIFS_OPTS := -m 2048 -e 126KiB -c 4096
21 endif
22
23 define Build/append-avm-fakeroot
24 cat ./eva.dummy.squashfs >> $@
25 endef
26
27 define Build/dgn3500-sercom-footer
28 $(STAGING_DIR_HOST)/bin/dgn3500sum $@ $(1) $(2)
29 endef
30
31 define Build/mkbrncmdline
32 mkbrncmdline -i $@ -o $@.new BRN-BOOT
33 mv $@.new $@
34 endef
35
36 define Build/mkbrnimg
37 mkbrnimg -s $(SIGNATURE) -m $(MAGIC) -p $(CRC32_POLY) -o $@ $(IMAGE_KERNEL) $(IMAGE_ROOTFS)
38 endef
39
40 define Build/fullimage
41 mkimage -A mips -O linux -C lzma -T filesystem -a 0x00 \
42 -e 0x00 -n 'LEDE RootFS' \
43 -d $(IMAGE_ROOTFS) $(IMAGE_ROOTFS).new
44
45 cat $(IMAGE_KERNEL) $(IMAGE_ROOTFS).new > $@.tmp
46
47 mkimage -A mips -O linux -T multi -a 0x00 -C none \
48 -e 0x00 -n 'OpenWrt fullimage' \
49 -d $@.tmp $@
50
51 rm $(IMAGE_ROOTFS).new
52 rm $@.tmp
53 endef
54
55 # Shared device definition: applies to every defined device
56 define Device/Default
57 PROFILES = Default
58 KERNEL_DEPENDS = $$(wildcard ../dts/$$(DEVICE_DTS).dts)
59 KERNEL_INITRAMFS_NAME = $$(KERNEL_NAME)-initramfs
60 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma
61 KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | uImage lzma
62 FILESYSTEMS := squashfs
63 DEVICE_DTS := $(1)
64 DEVICE_DTS_DIR := ../dts
65 IMAGE_SIZE :=
66 SUPPORTED_DEVICES = $$(DEVICE_DTS)
67 IMAGES := sysupgrade.bin
68 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
69 endef
70 DEVICE_VARS += IMAGE_SIZE
71
72 define Device/NAND/xway
73 BLOCKSIZE := 16k
74 PAGESIZE := 512
75 SUBPAGESIZE := 256
76 FILESYSTEMS += ubifs
77 endef
78
79 define Device/NAND/xrx200
80 BLOCKSIZE := 128k
81 PAGESIZE := 2048
82 SUBPAGESIZE := 512
83 FILESYSTEMS += ubifs
84 endef
85
86 define Device/NAND
87 $(Device/NAND/$(SUBTARGET))
88 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
89 endef
90
91 define Device/lantiqBrnImage
92 KERNEL := kernel-bin | append-dtb | mkbrncmdline | lzma-no-dict
93 IMAGES := factory.bin
94 IMAGE/factory.bin := mkbrnimg | check-size $$$$(IMAGE_SIZE)
95 endef
96 DEVICE_VARS += SIGNATURE MAGIC CRC32_POLY
97
98 define Device/lantiqFullImage
99 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma | pad-offset 4 0
100 IMAGES := sysupgrade.bin fullimage.img
101 IMAGE/fullimage.img := fullimage | check-size $$$$(IMAGE_SIZE)
102 endef
103
104 define Device/AVM
105 KERNEL := kernel-bin | append-dtb | lzma | eva-image
106 IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | append-avm-fakeroot | \
107 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
108 endef
109
110 ifeq ($(SUBTARGET),ase)
111
112 define Device/ALL0333CJ
113 IMAGE_SIZE := 3700k
114 DEVICE_DTS := ALL0333CJ
115 DEVICE_TITLE := Allnet ALL0333CJ
116 DEVICE_PACKAGES := kmod-ltq-adsl-ase kmod-ltq-adsl-ase-mei \
117 kmod-ltq-adsl-ase-fw-b kmod-ltq-atm-ase \
118 ltq-adsl-app ppp-mod-pppoe
119 endef
120 TARGET_DEVICES += ALL0333CJ
121
122 define Device/DGN1000B
123 IMAGE_SIZE := 6000k
124 DEVICE_DTS := DGN1000B
125 DEVICE_TITLE := Netgear DGN1000B
126 DEVICE_PACKAGES := kmod-ltq-adsl-ase kmod-ltq-adsl-ase-mei \
127 kmod-ltq-adsl-ase-fw-b kmod-ltq-atm-ase \
128 ltq-adsl-app ppp-mod-pppoe
129 endef
130 TARGET_DEVICES += DGN1000B
131
132 endif
133
134 ifeq ($(SUBTARGET),xway_legacy)
135
136 define Device/ARV4520PW
137 IMAGE_SIZE := 3648k
138 DEVICE_TITLE := Easybox 800, WAV-281 - ARV4520PW
139 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
140 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
141 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
142 ltq-adsl-app ppp-mod-pppoa \
143 kmod-rt61-pci wpad-mini
144 endef
145 TARGET_DEVICES += ARV4520PW
146
147 define Device/ARV4525PW
148 IMAGE_SIZE := 3776k
149 DEVICE_TITLE := Speedport W502V Typ A - ARV4525PW
150 DEVICE_PACKAGES := kmod-ath5k wpad-mini \
151 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
152 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
153 ltq-adsl-app ppp-mod-pppoa -swconfig
154 endef
155 TARGET_DEVICES += ARV4525PW
156
157 define Device/ARV452CQW
158 IMAGE_SIZE := 3776k
159 DEVICE_TITLE := Easybox 801 - ARV452CQW
160 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
161 kmod-ath5k wpad-mini \
162 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
163 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
164 ltq-adsl-app ppp-mod-pppoa
165 endef
166 TARGET_DEVICES += ARV452CQW
167
168 define Device/ARV4518PWR01
169 IMAGE_SIZE := 3776k
170 DEVICE_TITLE := ARV4518PWR01
171 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
172 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
173 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
174 ltq-adsl-app ppp-mod-pppoa \
175 kmod-ath5k wpad-mini
176 endef
177 TARGET_DEVICES += ARV4518PWR01
178
179 define Device/ARV4518PWR01A
180 IMAGE_SIZE := 3776k
181 DEVICE_TITLE := ARV4518PWR01A
182 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
183 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
184 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
185 ltq-adsl-app ppp-mod-pppoa \
186 kmod-ath5k wpad-mini
187 endef
188 TARGET_DEVICES += ARV4518PWR01A
189
190 endif
191
192 ifeq ($(SUBTARGET),xway)
193
194 # Danube
195
196 define Device/BTHOMEHUBV2B
197 $(Device/NAND)
198 DEVICE_TITLE := BT Home Hub 2B
199 DEVICE_PACKAGES := kmod-usb-dwc2 \
200 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
201 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
202 kmod-ltq-deu-danube \
203 ltq-adsl-app ppp-mod-pppoa \
204 kmod-ath9k kmod-owl-loader wpad-mini
205 endef
206 TARGET_DEVICES += BTHOMEHUBV2B
207
208 define Device/EASY50712
209 IMAGE_SIZE := 3776k
210 DEVICE_TITLE := Lantiq Danube - EASY50712
211 endef
212 TARGET_DEVICES += EASY50712
213
214 define Device/ACMP252
215 IMAGE_SIZE := 14848k
216 DEVICE_TITLE := AudioCodes MediaPack MP-252
217 DEVICE_PACKAGES := kmod-rt2x00-pci wpad-mini \
218 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
219 kmod-ltq-adsl-danube-fw-a kmod-ltq-ptm-danube \
220 ltq-adsl-app -swconfig
221 endef
222 TARGET_DEVICES += ACMP252
223
224 define Device/ARV4510PW
225 IMAGE_SIZE := 15616k
226 DEVICE_TITLE := Wippies, Elisa - ARV4510PW
227 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport kmod-usb2-pci kmod-usb-uhci \
228 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
229 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
230 ltq-adsl-app ppp-mod-pppoa \
231 kmod-ltq-tapi kmod-ltq-vmmc \
232 kmod-rt2800-pci kmod-ath5k wpad-mini
233 endef
234 TARGET_DEVICES += ARV4510PW
235
236 define Device/ARV7525PW
237 IMAGE_SIZE := 3776k
238 DEVICE_TITLE := Speedport W303V Typ A - ARV7525PW
239 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini \
240 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
241 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
242 ltq-adsl-app ppp-mod-pppoa -swconfig
243 endef
244 TARGET_DEVICES += ARV7525PW
245
246 define Device/ARV4519PW
247 IMAGE_SIZE := 3776k
248 DEVICE_TITLE := Vodafone, Pirelli - ARV4519PW
249 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
250 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
251 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
252 ltq-adsl-app ppp-mod-pppoa
253 endef
254 TARGET_DEVICES += ARV4519PW
255
256 define Device/ARV7506PW11
257 IMAGE_SIZE := 7808k
258 DEVICE_TITLE := Alice/O2 IAD 4421 - ARV7506PW11
259 DEVICE_PACKAGES := kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
260 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
261 ltq-adsl-app ppp-mod-pppoa \
262 kmod-rt2800-pci wpad-mini
263 endef
264 TARGET_DEVICES += ARV7506PW11
265
266 define Device/ARV7510PW22
267 IMAGE_SIZE := 31232k
268 DEVICE_TITLE := Astoria - ARV7510PW22
269 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
270 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
271 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
272 ltq-adsl-app ppp-mod-pppoa \
273 kmod-ltq-tapi kmod-ltq-vmmc \
274 kmod-rt2800-pci wpad-mini \
275 kmod-usb-uhci kmod-usb2 kmod-usb2-pci
276 endef
277 TARGET_DEVICES += ARV7510PW22
278
279 define Device/ARV7518PW
280 IMAGE_SIZE := 7872k
281 DEVICE_TITLE := Astoria - ARV7518PW
282 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
283 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
284 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
285 ltq-adsl-app ppp-mod-pppoa \
286 kmod-ath9k kmod-owl-loader wpad-mini
287 endef
288 TARGET_DEVICES += ARV7518PW
289
290 define Device/ARV7519PW
291 IMAGE_SIZE := 15488k
292 DEVICE_TITLE := Astoria - ARV7519PW
293 DEVICE_PACKAGES := kmod-usb-dwc2 \
294 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
295 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
296 ltq-adsl-app ppp-mod-pppoa \
297 kmod-rt2800-pci wpad-mini
298 endef
299 TARGET_DEVICES += ARV7519PW
300
301 define Device/ARV752DPW
302 IMAGE_SIZE := 7872k
303 DEVICE_TITLE := Easybox 802 - ARV752DPW
304 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
305 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
306 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
307 ltq-adsl-app ppp-mod-pppoa \
308 kmod-ltq-tapi kmod-ltq-vmmc \
309 kmod-rt2800-pci wpad-mini
310 endef
311 TARGET_DEVICES += ARV752DPW
312
313 define Device/ARV752DPW22
314 IMAGE_SIZE := 7616k
315 DEVICE_TITLE := Easybox 803 - ARV752DPW22
316 DEVICE_PACKAGES := kmod-usb2-pci kmod-usb-uhci kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
317 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
318 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
319 ltq-adsl-app ppp-mod-pppoa \
320 kmod-ltq-tapi kmod-ltq-vmmc \
321 kmod-rt2800-pci wpad-mini
322 endef
323 TARGET_DEVICES += ARV752DPW22
324
325 define Device/ARV8539PW22
326 IMAGE_SIZE := 7616k
327 DEVICE_TITLE := Speedport W504V Typ A - ARV8539PW22
328 DEVICE_PACKAGES := kmod-usb-dwc2 \
329 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
330 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
331 ltq-adsl-app ppp-mod-pppoa \
332 kmod-ath9k kmod-owl-loader wpad-mini
333 endef
334 TARGET_DEVICES += ARV8539PW22
335
336 define Device/GIGASX76X
337 IMAGE_SIZE := 7680k
338 DEVICE_TITLE := Gigaset sx76x
339 DEVICE_PACKAGES := kmod-usb-dwc2 \
340 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
341 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
342 ltq-adsl-app ppp-mod-pppoe \
343 kmod-ath5k wpad-mini
344 endef
345 TARGET_DEVICES += GIGASX76X
346
347
348 # AR9
349
350 define Device/BTHOMEHUBV3A
351 $(Device/NAND)
352 DEVICE_TITLE := BT Home Hub 3A
353 DEVICE_PACKAGES := kmod-usb-dwc2 \
354 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
355 kmod-ltq-adsl-ar9-fw-a kmod-ltq-atm-ar9 \
356 kmod-ltq-deu-ar9 \
357 ltq-adsl-app ppp-mod-pppoa \
358 kmod-ath9k kmod-owl-loader wpad-mini \
359 uboot-envtools
360 endef
361 TARGET_DEVICES += BTHOMEHUBV3A
362
363 DGN3500_KERNEL_OFFSET_HEX=0x50000
364 DGN3500_KERNEL_OFFSET_DEC=327680
365 define Device/DGN3500
366 IMAGE_SIZE := 16000k
367 IMAGES := \
368 sysupgrade-NA.bin sysupgrade-WW.bin \
369 factory-NA.bin factory-WW.bin
370 IMAGE/sysupgrade-NA.bin := \
371 append-kernel | append-rootfs | dgn3500-sercom-footer 0x0 "NA" | \
372 pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
373 IMAGE/sysupgrade-WW.bin := \
374 append-kernel | append-rootfs | dgn3500-sercom-footer 0x0 "WW" | \
375 pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
376 IMAGE/factory-NA.bin := \
377 pad-extra $(DGN3500_KERNEL_OFFSET_DEC) | append-kernel | append-rootfs | \
378 dgn3500-sercom-footer $(DGN3500_KERNEL_OFFSET_HEX) "NA" | pad-rootfs | \
379 check-size 16320k | pad-to 16384k
380 IMAGE/factory-WW.bin := \
381 pad-extra $(DGN3500_KERNEL_OFFSET_DEC) | append-kernel | append-rootfs | \
382 dgn3500-sercom-footer $(DGN3500_KERNEL_OFFSET_HEX) "WW" | pad-rootfs | \
383 check-size 16320k | pad-to 16384k
384 DEVICE_TITLE := Netgear DGN3500
385 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
386 kmod-ath9k kmod-owl-loader wpad-mini \
387 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
388 kmod-ltq-adsl-ar9-fw-a kmod-ltq-atm-ar9 \
389 ltq-adsl-app ppp-mod-pppoa \
390 kmod-ltq-deu-ar9
391 endef
392 TARGET_DEVICES += DGN3500
393
394 define Device/DGN3500B
395 IMAGE_SIZE := 16000k
396 IMAGES += factory.bin
397 IMAGE/sysupgrade.bin := \
398 append-kernel | append-rootfs | dgn3500-sercom-footer 0x0 "DE" | \
399 pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
400 IMAGE/factory.bin := \
401 pad-extra $(DGN3500_KERNEL_OFFSET_DEC) | append-kernel | append-rootfs | \
402 dgn3500-sercom-footer $(DGN3500_KERNEL_OFFSET_HEX) "DE" | pad-rootfs | \
403 check-size 16320k | pad-to 16384k
404 DEVICE_TITLE := Netgear DGN3500B
405 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
406 kmod-ath9k kmod-owl-loader wpad-mini \
407 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
408 kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
409 ltq-adsl-app ppp-mod-pppoa \
410 kmod-ltq-deu-ar9
411 endef
412 TARGET_DEVICES += DGN3500B
413
414 define Device/WBMRA
415 IMAGE_SIZE := 31488k
416 DEVICE_DTS := WBMR
417 DEVICE_TITLE := Buffalo WBMR-HP-G300H (A) - WBMR
418 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
419 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
420 kmod-ltq-adsl-ar9-fw-a kmod-ltq-atm-ar9 \
421 ltq-adsl-app ppp-mod-pppoa \
422 kmod-ath9k kmod-owl-loader wpad-mini
423 endef
424 TARGET_DEVICES += WBMRA
425
426 define Device/WBMRB
427 IMAGE_SIZE := 31488k
428 DEVICE_DTS := WBMR
429 DEVICE_TITLE := Buffalo WBMR-HP-G300H (B) - WBMR
430 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
431 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
432 kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
433 ltq-adsl-app ppp-mod-pppoa \
434 kmod-ath9k kmod-owl-loader wpad-mini
435 endef
436 TARGET_DEVICES += WBMRB
437
438 define Device/FRITZ7320
439 $(Device/AVM)
440 IMAGE_SIZE := 15744k
441 DEVICE_TITLE := 1&1 HomeServer - FRITZ7320
442 DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-mini \
443 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
444 kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
445 ltq-adsl-app ppp-mod-pppoa \
446 kmod-ltq-deu-ar9 kmod-usb-dwc2 -swconfig
447 endef
448 TARGET_DEVICES += FRITZ7320
449
450 define Device/H201L
451 IMAGE_SIZE := 7808k
452 DEVICE_TITLE := ZTE H201L - H201L
453 DEVICE_PACKAGES := kmod-ath9k-htc wpad-mini \
454 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
455 kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
456 ltq-adsl-app ppp-mod-pppoe \
457 kmod-ltq-deu-ar9 kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
458 kmod-ltq-tapi kmod-ltq-vmmc
459 endef
460 TARGET_DEVICES += H201L
461
462 define Device/P2601HNFX
463 IMAGE_SIZE := 15616k
464 DEVICE_TITLE := ZyXEL P-2601HN-Fx
465 DEVICE_PACKAGES := kmod-rt2800-usb wpad-mini \
466 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
467 kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
468 ltq-adsl-app ppp-mod-pppoe \
469 kmod-ltq-deu-ar9 kmod-usb-dwc2
470 endef
471 TARGET_DEVICES += P2601HNFX
472
473
474 endif
475
476
477 ifeq ($(SUBTARGET),xrx200)
478
479 # VR9
480
481 define Device/P2812HNUF1
482 $(Device/NAND)
483 DEVICE_TITLE := ZyXEL P-2812HNU-F1
484 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2 kmod-usb-ledtrig-usbport
485 endef
486 TARGET_DEVICES += P2812HNUF1
487
488 define Device/P2812HNUF3
489 $(Device/NAND)
490 DEVICE_TITLE := ZyXEL P-2812HNU-F3
491 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2
492 endef
493 TARGET_DEVICES += P2812HNUF3
494
495 define Device/ARV7519RW22
496 IMAGE_SIZE := 31232k
497 DEVICE_TITLE := Livebox Astoria ARV7519RW22
498 DEVICE_PACKAGES := kmod-usb-dwc2
499 endef
500 TARGET_DEVICES += ARV7519RW22
501
502 define Device/ASL56026
503 IMAGE_SIZE := 7488k
504 DEVICE_TITLE := BT OpenReach - ECI VDSL Modem V-2FUb/I
505 endef
506 TARGET_DEVICES += ASL56026
507
508 define Device/BTHOMEHUBV5A
509 $(Device/NAND)
510 DEVICE_TITLE := BT Home Hub 5A
511 DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader \
512 kmod-ath10k ath10k-firmware-qca988x wpad-mini kmod-usb-dwc2
513 endef
514 TARGET_DEVICES += BTHOMEHUBV5A
515
516 define Device/EASY80920NAND
517 $(Device/lantiqFullImage)
518 IMAGE_SIZE := 64512k
519 DEVICE_TITLE := Lantiq VR9 - EASY80920NAND
520 DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-mini kmod-usb-dwc2 kmod-usb-ledtrig-usbport
521 endef
522 TARGET_DEVICES += EASY80920NAND
523
524 define Device/EASY80920NOR
525 IMAGE_SIZE := 7936k
526 DEVICE_TITLE := Lantiq VR9 - EASY80920NOR
527 DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-mini kmod-usb-dwc2 kmod-usb-ledtrig-usbport
528 endef
529 TARGET_DEVICES += EASY80920NOR
530
531 define Device/FRITZ3370
532 $(Device/AVM)
533 $(Device/NAND)
534 DEVICE_TITLE := Fritz!Box WLan - FRITZ3370
535 DEVICE_PACKAGES := kmod-ath9k wpad-mini kmod-usb-dwc2
536 endef
537 TARGET_DEVICES += FRITZ3370
538
539 define Device/FRITZ7360SL
540 $(Device/AVM)
541 IMAGE_SIZE := 15744k
542 DEVICE_TITLE := 1&1 HomeServer - FRITZ7360SL
543 DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-mini kmod-usb-dwc2
544 endef
545 TARGET_DEVICES += FRITZ7360SL
546
547 define Device/VG3503J
548 IMAGE_SIZE := 8000k
549 DEVICE_TITLE := BT OpenReach - ECI VDSL Modem V-2FUb/R
550 endef
551 TARGET_DEVICES += VG3503J
552
553 include tp-link.mk
554
555 define Device/WBMR300
556 IMAGE_SIZE := 15616k
557 DEVICE_TITLE := Buffalo WBMR-300HPD
558 DEVICE_PACKAGES := kmod-mt7603 wpad-mini kmod-usb-dwc2
559 endef
560 TARGET_DEVICES += WBMR300
561
562 define Device/VGV7510KW22NOR
563 IMAGE_SIZE := 15232k
564 DEVICE_TITLE := o2 Box 6431 / Arcadyan VGV7510KW22 (NOR)
565 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2 kmod-ltq-tapi kmod-ltq-vmmc
566 endef
567 TARGET_DEVICES += VGV7510KW22NOR
568
569 define Device/VGV7510KW22BRN
570 $(Device/lantiqBrnImage)
571 IMAGE_SIZE := 7168k
572 SIGNATURE := BRNDA6431
573 MAGIC := 0x12345678
574 CRC32_POLY := 0x04c11db7
575 DEVICE_TITLE := o2 Box 6431 / Arcadyan VGV7510KW22 (BRN)
576 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2 kmod-ltq-tapi kmod-ltq-vmmc
577 endef
578 TARGET_DEVICES += VGV7510KW22BRN
579
580 define Device/VGV7519NOR
581 IMAGE_SIZE := 15360k
582 DEVICE_TITLE := Experiabox 8 VGV7519
583 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2 kmod-ltq-tapi kmod-ltq-vmmc
584 endef
585 TARGET_DEVICES += VGV7519NOR
586
587 define Device/VGV7519BRN
588 $(Device/lantiqBrnImage)
589 IMAGE_SIZE := 7168k
590 SIGNATURE := 5D00008000
591 MAGIC := 0x12345678
592 CRC32_POLY := 0x2083b8ed
593 DEVICE_TITLE := Experiabox 8 VGV7519 (BRN)
594 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2 kmod-ltq-tapi kmod-ltq-vmmc
595 endef
596 TARGET_DEVICES += VGV7519BRN
597
598 endif
599
600
601 ifeq ($(SUBTARGET),falcon)
602
603 define Device/EASY98000NOR
604 IMAGE_SIZE := 3904k
605 DEVICE_TITLE := EASY98000 - Lantiq Falcon Eval Board NOR
606 DEVICE_PACKAGES := kmod-dm9000 kmod-i2c-lantiq kmod-eeprom-at24
607 endef
608 TARGET_DEVICES += EASY98000NOR
609
610 define Device/EASY98000NAND
611 IMAGE_SIZE := 3904k
612 DEVICE_TITLE := EASY98000 - Lantiq Falcon Eval Board NAND
613 DEVICE_PACKAGES := kmod-dm9000 kmod-i2c-lantiq kmod-eeprom-at24
614 endef
615 TARGET_DEVICES += EASY98000NAND
616
617 define Device/EASY98000SFLASH
618 IMAGE_SIZE := 7424k
619 DEVICE_TITLE := EASY98000 - Lantiq Falcon Eval Board SFLASH
620 DEVICE_PACKAGES := kmod-dm9000 kmod-i2c-lantiq kmod-eeprom-at24
621 endef
622 TARGET_DEVICES += EASY98000SFLASH
623
624 define Device/FALCON-MDU
625 IMAGE_SIZE := 7424k
626 DEVICE_TITLE := MDU - Lantiq Falcon / VINAXdp MDU Board
627 endef
628 TARGET_DEVICES += FALCON-MDU
629
630 define Device/EASY88388
631 IMAGE_SIZE := 7424k
632 DEVICE_TITLE := EASY88388 - Lantiq Falcon FTTDP8 Reference Board
633 endef
634 TARGET_DEVICES += EASY88388
635
636 define Device/EASY88444
637 IMAGE_SIZE := 7424k
638 DEVICE_TITLE := EASY88444 - Lantiq Falcon FTTdp G.FAST Reference Board
639 endef
640 TARGET_DEVICES += EASY88444
641
642 define Device/FALCON-SFP
643 IMAGE_SIZE := 7424k
644 DEVICE_TITLE := SFP - Lantiq Falcon SFP Stick
645 endef
646 TARGET_DEVICES += FALCON-SFP
647
648 define Device/EASY98035SYNCE
649 IMAGE_SIZE := 7424k
650 DEVICE_TITLE := EASY98035SYNCE - Lantiq Falcon SFP Stick with Synchronous Ethernet
651 endef
652 TARGET_DEVICES += EASY98035SYNCE
653
654 define Device/EASY98035SYNCE1588
655 IMAGE_SIZE := 7424k
656 DEVICE_TITLE := EASY98035SYNCE1588 - Lantiq Falcon SFP Stick with SyncE and IEEE1588
657 endef
658 TARGET_DEVICES += EASY98035SYNCE1588
659
660 define Device/EASY98020
661 IMAGE_SIZE := 7424k
662 DEVICE_TITLE := EASY98020 - Lantiq Falcon SFU Reference Board
663 endef
664 TARGET_DEVICES += EASY98020
665
666 define Device/EASY98020V18
667 IMAGE_SIZE := 7424k
668 DEVICE_TITLE := EASY98020V18 - Lantiq Falcon SFU Reference Board V1.8
669 endef
670 TARGET_DEVICES += EASY98020V18
671
672 define Device/EASY98021
673 IMAGE_SIZE := 7424k
674 DEVICE_TITLE := EASY98021 - Lantiq Falcon HGU Reference Board
675 endef
676 TARGET_DEVICES += EASY98021
677
678 endif
679
680 $(eval $(call BuildImage))