build: replace uses of OpenWrt with $(VERSION_DIST)
[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 '$(VERSION_DIST) 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_DIR := ../dts
64 IMAGE_SIZE :=
65 SUPPORTED_DEVICES := $(subst _,$(comma),$(1))
66 IMAGES := sysupgrade.bin
67 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
68 endef
69 DEVICE_VARS += IMAGE_SIZE
70
71 define Device/NAND/xway
72 BLOCKSIZE := 16k
73 PAGESIZE := 512
74 SUBPAGESIZE := 256
75 FILESYSTEMS += ubifs
76 endef
77
78 define Device/NAND/xrx200
79 BLOCKSIZE := 128k
80 PAGESIZE := 2048
81 SUBPAGESIZE := 512
82 FILESYSTEMS += ubifs
83 endef
84
85 define Device/NAND
86 $(Device/NAND/$(SUBTARGET))
87 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
88 endef
89
90 define Device/lantiqBrnImage
91 KERNEL := kernel-bin | append-dtb | mkbrncmdline | lzma-no-dict
92 IMAGES := factory.bin
93 IMAGE/factory.bin := mkbrnimg | check-size $$$$(IMAGE_SIZE)
94 endef
95 DEVICE_VARS += SIGNATURE MAGIC CRC32_POLY
96
97 define Device/lantiqFullImage
98 KERNEL := kernel-bin | append-dtb | lzma | uImage lzma | pad-offset 4 0
99 IMAGES := sysupgrade.bin fullimage.bin
100 IMAGE/fullimage.bin := fullimage | check-size $$$$(IMAGE_SIZE)
101 endef
102
103 define Device/AVM
104 KERNEL := kernel-bin | append-dtb | lzma | eva-image
105 IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | append-avm-fakeroot | \
106 append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
107 endef
108
109 ifeq ($(SUBTARGET),ase)
110
111 define Device/allnet_all0333cj
112 IMAGE_SIZE := 3700k
113 DEVICE_DTS := ALL0333CJ
114 DEVICE_TITLE := Allnet ALL0333CJ
115 DEVICE_PACKAGES := kmod-ltq-adsl-ase kmod-ltq-adsl-ase-mei \
116 kmod-ltq-adsl-ase-fw-b kmod-ltq-atm-ase \
117 ltq-adsl-app ppp-mod-pppoe
118 endef
119 TARGET_DEVICES += allnet_all0333cj
120
121 define Device/netgear_dgn1000b
122 IMAGE_SIZE := 6000k
123 DEVICE_DTS := DGN1000B
124 DEVICE_TITLE := Netgear DGN1000B
125 DEVICE_PACKAGES := kmod-ltq-adsl-ase kmod-ltq-adsl-ase-mei \
126 kmod-ltq-adsl-ase-fw-b kmod-ltq-atm-ase \
127 ltq-adsl-app ppp-mod-pppoe
128 SUPPORTED_DEVICES += DGN1000B
129 endef
130 TARGET_DEVICES += netgear_dgn1000b
131
132 endif
133
134 ifeq ($(SUBTARGET),xway_legacy)
135
136 define Device/arcadyan_arv4520pw
137 IMAGE_SIZE := 3648k
138 DEVICE_DTS := ARV4520PW
139 DEVICE_TITLE := Easybox 800, WAV-281 - ARV4520PW
140 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
141 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
142 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
143 ltq-adsl-app ppp-mod-pppoa \
144 kmod-rt61-pci wpad-mini
145 SUPPORTED_DEVICES += ARV4520PW
146 endef
147 TARGET_DEVICES += arcadyan_arv4520pw
148
149 define Device/arcadyan_arv4525pw
150 IMAGE_SIZE := 3776k
151 DEVICE_DTS := ARV4525PW
152 DEVICE_TITLE := Speedport W502V Typ A - ARV4525PW
153 DEVICE_PACKAGES := kmod-ath5k wpad-mini \
154 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
155 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
156 ltq-adsl-app ppp-mod-pppoa -swconfig
157 SUPPORTED_DEVICES += ARV4525PW
158 endef
159 TARGET_DEVICES += arcadyan_arv4525pw
160
161 define Device/arcadyan_arv452cqw
162 IMAGE_SIZE := 3776k
163 DEVICE_DTS := ARV452CQW
164 DEVICE_TITLE := Easybox 801 - ARV452CQW
165 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
166 kmod-ath5k wpad-mini \
167 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
168 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
169 ltq-adsl-app ppp-mod-pppoa
170 SUPPORTED_DEVICES += ARV452CQW
171 endef
172 TARGET_DEVICES += arcadyan_arv452cqw
173
174 define Device/arcadyan_arv4518pwr01
175 IMAGE_SIZE := 3776k
176 DEVICE_DTS := ARV4518PWR01
177 DEVICE_TITLE := ARV4518PWR01
178 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
179 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
180 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
181 ltq-adsl-app ppp-mod-pppoa \
182 kmod-ath5k wpad-mini
183 SUPPORTED_DEVICES += ARV4518PWR01
184 endef
185 TARGET_DEVICES += arcadyan_arv4518pwr01
186
187 define Device/arcadyan_arv4518pwr01a
188 IMAGE_SIZE := 3776k
189 DEVICE_DTS := ARV4518PWR01A
190 DEVICE_TITLE := ARV4518PWR01A
191 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
192 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
193 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
194 ltq-adsl-app ppp-mod-pppoa \
195 kmod-ath5k wpad-mini
196 SUPPORTED_DEVICES += ARV4518PWR01A
197 endef
198 TARGET_DEVICES += arcadyan_arv4518pwr01a
199
200 endif
201
202 ifeq ($(SUBTARGET),xway)
203
204 # Danube
205
206 define Device/bt_homehub-v2b
207 $(Device/NAND)
208 BOARD_NAME := BTHOMEHUBV2B
209 DEVICE_DTS := BTHOMEHUBV2B
210 DEVICE_TITLE := BT Home Hub 2B
211 DEVICE_PACKAGES := kmod-usb-dwc2 \
212 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
213 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
214 kmod-ltq-deu-danube \
215 ltq-adsl-app ppp-mod-pppoa \
216 kmod-ath9k kmod-owl-loader wpad-mini
217 SUPPORTED_DEVICES += BTHOMEHUBV2B
218 endef
219 TARGET_DEVICES += bt_homehub-v2b
220
221 define Device/lantiq_easy50712
222 DEVICE_DTS := EASY50712
223 IMAGE_SIZE := 3776k
224 DEVICE_TITLE := Lantiq Danube - EASY50712
225 endef
226 TARGET_DEVICES += lantiq_easy50712
227
228 define Device/audiocodes_mp-252
229 IMAGE_SIZE := 14848k
230 DEVICE_DTS := ACMP252
231 DEVICE_TITLE := AudioCodes MediaPack MP-252
232 DEVICE_PACKAGES := kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
233 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
234 kmod-ltq-tapi kmod-ltq-vmmc \
235 kmod-usb-ledtrig-usbport kmod-usb-dwc2 \
236 kmod-rt2800-pci \
237 ltq-adsl-app ppp-mod-pppoa \
238 wpad-mini
239 SUPPORTED_DEVICES += ACMP252
240 endef
241 TARGET_DEVICES += audiocodes_mp-252
242
243 define Device/arcadyan_arv4510pw
244 IMAGE_SIZE := 15616k
245 DEVICE_DTS := ARV4510PW
246 DEVICE_TITLE := Wippies, Elisa - ARV4510PW
247 DEVICE_PACKAGES := kmod-usb-ledtrig-usbport kmod-usb2-pci kmod-usb-uhci \
248 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
249 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
250 ltq-adsl-app ppp-mod-pppoa \
251 kmod-ltq-tapi kmod-ltq-vmmc \
252 kmod-rt2800-pci kmod-ath5k wpad-mini
253 SUPPORTED_DEVICES += ARV4510PW
254 endef
255 TARGET_DEVICES += arcadyan_arv4510pw
256
257 define Device/arcadyan_arv7525pw
258 IMAGE_SIZE := 3776k
259 DEVICE_DTS := ARV4510PW
260 DEVICE_TITLE := Speedport W303V Typ A - ARV7525PW
261 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini \
262 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
263 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
264 ltq-adsl-app ppp-mod-pppoa -swconfig
265 SUPPORTED_DEVICES += ARV4510PW
266 endef
267 TARGET_DEVICES += arcadyan_arv7525pw
268
269 define Device/arcadyan_arv4519pw
270 IMAGE_SIZE := 3776k
271 DEVICE_DTS := ARV4519PW
272 DEVICE_TITLE := Vodafone, Pirelli - ARV4519PW
273 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
274 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
275 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
276 ltq-adsl-app ppp-mod-pppoa
277 SUPPORTED_DEVICES += ARV4519PW
278 endef
279 TARGET_DEVICES += arcadyan_arv4519pw
280
281 define Device/arcadyan_arv7506pw11
282 IMAGE_SIZE := 7808k
283 DEVICE_DTS := ARV7506PW11
284 DEVICE_TITLE := Alice/O2 IAD 4421 - ARV7506PW11
285 DEVICE_PACKAGES := kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
286 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
287 ltq-adsl-app ppp-mod-pppoa \
288 kmod-rt2800-pci wpad-mini
289 SUPPORTED_DEVICES += ARV7506PW11
290 endef
291 TARGET_DEVICES += arcadyan_arv7506pw11
292
293 define Device/arcadyan_arv7510pw22
294 IMAGE_SIZE := 31232k
295 DEVICE_DTS := ARV7510PW22
296 DEVICE_TITLE := Astoria - ARV7510PW22
297 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
298 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
299 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
300 ltq-adsl-app ppp-mod-pppoa \
301 kmod-ltq-tapi kmod-ltq-vmmc \
302 kmod-rt2800-pci wpad-mini \
303 kmod-usb-uhci kmod-usb2 kmod-usb2-pci
304 SUPPORTED_DEVICES += ARV7510PW22
305 endef
306 TARGET_DEVICES += arcadyan_arv7510pw22
307
308 define Device/arcadyan_arv7518pw
309 IMAGE_SIZE := 7872k
310 DEVICE_DTS := ARV7518PW
311 DEVICE_TITLE := Astoria - ARV7518PW
312 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
313 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
314 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
315 ltq-adsl-app ppp-mod-pppoa \
316 kmod-ath9k kmod-owl-loader wpad-mini
317 SUPPORTED_DEVICES += ARV7518PW
318 endef
319 TARGET_DEVICES += arcadyan_arv7518pw
320
321 define Device/arcadyan_arv7519pw
322 IMAGE_SIZE := 15488k
323 DEVICE_DTS := ARV7519PW
324 DEVICE_TITLE := Astoria - ARV7519PW
325 DEVICE_PACKAGES := kmod-usb-dwc2 \
326 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
327 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \
328 ltq-adsl-app ppp-mod-pppoa \
329 kmod-rt2800-pci wpad-mini
330 SUPPORTED_DEVICES += ARV7519PW
331 endef
332 TARGET_DEVICES += arcadyan_arv7519pw
333
334 define Device/arcadyan_arv752dpw
335 IMAGE_SIZE := 7872k
336 DEVICE_DTS := ARV752DPW
337 DEVICE_TITLE := Easybox 802 - ARV752DPW
338 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
339 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
340 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
341 ltq-adsl-app ppp-mod-pppoa \
342 kmod-ltq-tapi kmod-ltq-vmmc \
343 kmod-rt2800-pci wpad-mini
344 SUPPORTED_DEVICES += ARV752DPW
345 endef
346 TARGET_DEVICES += arcadyan_arv752dpw
347
348 define Device/arcadyan_arv752dpw22
349 IMAGE_SIZE := 7616k
350 DEVICE_DTS := ARV752DPW22
351 DEVICE_TITLE := Easybox 803 - ARV752DPW22
352 DEVICE_PACKAGES := kmod-usb2-pci kmod-usb-uhci kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
353 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
354 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
355 ltq-adsl-app ppp-mod-pppoa \
356 kmod-ltq-tapi kmod-ltq-vmmc \
357 kmod-rt2800-pci wpad-mini
358 SUPPORTED_DEVICES += ARV752DPW22
359 endef
360 TARGET_DEVICES += arcadyan_arv752dpw22
361
362 define Device/arcadyan_arv8539pw22
363 IMAGE_SIZE := 7616k
364 DEVICE_DTS := ARV8539PW22
365 DEVICE_TITLE := Speedport W504V Typ A - ARV8539PW22
366 DEVICE_PACKAGES := kmod-usb-dwc2 \
367 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
368 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
369 ltq-adsl-app ppp-mod-pppoa \
370 kmod-ath9k kmod-owl-loader wpad-mini
371 SUPPORTED_DEVICES += ARV8539PW22
372 endef
373 TARGET_DEVICES += arcadyan_arv8539pw22
374
375 define Device/siemens_gigaset-sx76x
376 IMAGE_SIZE := 7680k
377 DEVICE_DTS := GIGASX76X
378 DEVICE_TITLE := Gigaset sx76x
379 DEVICE_PACKAGES := kmod-usb-dwc2 \
380 kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \
381 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \
382 ltq-adsl-app ppp-mod-pppoe \
383 kmod-ath5k wpad-mini
384 SUPPORTED_DEVICES += GIGASX76X
385 endef
386 TARGET_DEVICES += siemens_gigaset-sx76x
387
388
389 # AR9
390
391 define Device/bt_homehub-v3a
392 $(Device/NAND)
393 BOARD_NAME := BTHOMEHUBV3A
394 DEVICE_DTS := BTHOMEHUBV3A
395 DEVICE_TITLE := BT Home Hub 3A
396 DEVICE_PACKAGES := kmod-usb-dwc2 \
397 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
398 kmod-ltq-adsl-ar9-fw-a kmod-ltq-atm-ar9 \
399 kmod-ltq-deu-ar9 \
400 ltq-adsl-app ppp-mod-pppoa \
401 kmod-ath9k kmod-owl-loader wpad-mini \
402 uboot-envtools
403 SUPPORTED_DEVICES += BTHOMEHUBV3A
404 endef
405 TARGET_DEVICES += bt_homehub-v3a
406
407 DGN3500_KERNEL_OFFSET_HEX=0x50000
408 DGN3500_KERNEL_OFFSET_DEC=327680
409 define Device/netgear_dgn3500
410 DEVICE_DTS := DGN3500
411 IMAGE_SIZE := 16000k
412 IMAGES := \
413 sysupgrade-na.bin sysupgrade.bin \
414 factory-na.img factory.img
415 IMAGE/sysupgrade-na.bin := \
416 append-kernel | append-rootfs | dgn3500-sercom-footer 0x0 "NA" | \
417 pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
418 IMAGE/sysupgrade.bin := \
419 append-kernel | append-rootfs | dgn3500-sercom-footer 0x0 "WW" | \
420 pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
421 IMAGE/factory-na.img := \
422 pad-extra $(DGN3500_KERNEL_OFFSET_DEC) | append-kernel | append-rootfs | \
423 dgn3500-sercom-footer $(DGN3500_KERNEL_OFFSET_HEX) "NA" | pad-rootfs | \
424 check-size 16320k | pad-to 16384k
425 IMAGE/factory.img := \
426 pad-extra $(DGN3500_KERNEL_OFFSET_DEC) | append-kernel | append-rootfs | \
427 dgn3500-sercom-footer $(DGN3500_KERNEL_OFFSET_HEX) "WW" | pad-rootfs | \
428 check-size 16320k | pad-to 16384k
429 DEVICE_TITLE := Netgear DGN3500
430 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
431 kmod-ath9k kmod-owl-loader wpad-mini \
432 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
433 kmod-ltq-adsl-ar9-fw-a kmod-ltq-atm-ar9 \
434 ltq-adsl-app ppp-mod-pppoa \
435 kmod-ltq-deu-ar9
436 SUPPORTED_DEVICES += DGN3500
437 endef
438 TARGET_DEVICES += netgear_dgn3500
439
440 define Device/netgear_dgn3500b
441 DEVICE_DTS := DGN3500B
442 IMAGE_SIZE := 16000k
443 IMAGES += factory.img
444 IMAGE/sysupgrade.bin := \
445 append-kernel | append-rootfs | dgn3500-sercom-footer 0x0 "DE" | \
446 pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
447 IMAGE/factory.img := \
448 pad-extra $(DGN3500_KERNEL_OFFSET_DEC) | append-kernel | append-rootfs | \
449 dgn3500-sercom-footer $(DGN3500_KERNEL_OFFSET_HEX) "DE" | pad-rootfs | \
450 check-size 16320k | pad-to 16384k
451 DEVICE_TITLE := Netgear DGN3500B
452 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
453 kmod-ath9k kmod-owl-loader 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-pppoa \
457 kmod-ltq-deu-ar9
458 SUPPORTED_DEVICES += DGN3500B
459 endef
460 TARGET_DEVICES += netgear_dgn3500b
461
462 define Device/buffalo_wbmr-hp-g300h-a
463 IMAGE_SIZE := 31488k
464 DEVICE_DTS := WBMR
465 DEVICE_TITLE := Buffalo WBMR-HP-G300H (A) - WBMR
466 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
467 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
468 kmod-ltq-adsl-ar9-fw-a kmod-ltq-atm-ar9 \
469 ltq-adsl-app ppp-mod-pppoa \
470 kmod-ath9k kmod-owl-loader wpad-mini
471 SUPPORTED_DEVICES := WBMR buffalo,wbmr-hp-g300h
472 endef
473 TARGET_DEVICES += buffalo_wbmr-hp-g300h-a
474
475 define Device/buffalo_wbmr-hp-g300h-b
476 IMAGE_SIZE := 31488k
477 DEVICE_DTS := WBMR
478 DEVICE_TITLE := Buffalo WBMR-HP-G300H (B) - WBMR
479 DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
480 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
481 kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
482 ltq-adsl-app ppp-mod-pppoa \
483 kmod-ath9k kmod-owl-loader wpad-mini
484 SUPPORTED_DEVICES := WBMR buffalo,wbmr-hp-g300h
485 endef
486 TARGET_DEVICES += buffalo_wbmr-hp-g300h-b
487
488 define Device/avm_fritz7320
489 $(Device/AVM)
490 DEVICE_DTS := FRITZ7320
491 IMAGE_SIZE := 15744k
492 DEVICE_TITLE := 1&1 HomeServer - FRITZ7320
493 DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-mini \
494 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
495 kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
496 ltq-adsl-app ppp-mod-pppoa \
497 kmod-ltq-deu-ar9 kmod-usb-dwc2 -swconfig
498 SUPPORTED_DEVICES += FRITZ7320
499 endef
500 TARGET_DEVICES += avm_fritz7320
501
502 define Device/zte_h201l
503 IMAGE_SIZE := 7808k
504 DEVICE_DTS := H201L
505 DEVICE_TITLE := ZTE H201L - H201L
506 DEVICE_PACKAGES := kmod-ath9k-htc wpad-mini \
507 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
508 kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
509 ltq-adsl-app ppp-mod-pppoe \
510 kmod-ltq-deu-ar9 kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
511 kmod-ltq-tapi kmod-ltq-vmmc
512 SUPPORTED_DEVICES += H201L
513 endef
514 TARGET_DEVICES += zte_h201l
515
516 define Device/zyxel_p-2601hn
517 IMAGE_SIZE := 15616k
518 DEVICE_DTS := P2601HNFX
519 DEVICE_TITLE := ZyXEL P-2601HN-Fx
520 DEVICE_PACKAGES := kmod-rt2800-usb wpad-mini \
521 kmod-ltq-adsl-ar9-mei kmod-ltq-adsl-ar9 \
522 kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \
523 ltq-adsl-app ppp-mod-pppoe \
524 kmod-ltq-deu-ar9 kmod-usb-dwc2
525 SUPPORTED_DEVICES += P2601HNFX
526 endef
527 TARGET_DEVICES += zyxel_p-2601hn
528
529
530 endif
531
532
533 ifeq ($(SUBTARGET),xrx200)
534
535 # VR9
536
537 define Device/zyxel_p-2812hnu-f1
538 $(Device/NAND)
539 BOARD_NAME := P2812HNUF1
540 DEVICE_DTS := P2812HNUF1
541 DEVICE_TITLE := ZyXEL P-2812HNU-F1
542 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2 kmod-usb-ledtrig-usbport
543 SUPPORTED_DEVICES += P2812HNUF1
544 endef
545 TARGET_DEVICES += zyxel_p-2812hnu-f1
546
547 define Device/zyxel_p-2812hnu-f3
548 $(Device/NAND)
549 BOARD_NAME := P2812HNUF3
550 DEVICE_DTS := P2812HNUF3
551 DEVICE_TITLE := ZyXEL P-2812HNU-F3
552 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2
553 SUPPORTED_DEVICES += P2812HNUF3
554 endef
555 TARGET_DEVICES += zyxel_p-2812hnu-f3
556
557 define Device/arcadyan_arv7519rw22
558 IMAGE_SIZE := 31232k
559 DEVICE_DTS := ARV7519RW22
560 DEVICE_TITLE := Livebox Astoria ARV7519RW22
561 DEVICE_PACKAGES := kmod-usb-dwc2
562 SUPPORTED_DEVICES += ARV7519RW22
563 endef
564 TARGET_DEVICES += arcadyan_arv7519rw22
565
566 define Device/alphanetworks_asl56026
567 DEVICE_DTS := ASL56026
568 IMAGE_SIZE := 7488k
569 DEVICE_TITLE := BT OpenReach - ECI VDSL Modem V-2FUb/I
570 endef
571 TARGET_DEVICES += alphanetworks_asl56026
572
573 define Device/bt_homehub-v5a
574 $(Device/NAND)
575 BOARD_NAME := BTHOMEHUBV5A
576 DEVICE_DTS := BTHOMEHUBV5A
577 DEVICE_TITLE := BT Home Hub 5A
578 DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader \
579 kmod-ath10k ath10k-firmware-qca988x wpad-mini kmod-usb-dwc2
580 SUPPORTED_DEVICES += BTHOMEHUBV5A
581 endef
582 TARGET_DEVICES += bt_homehub-v5a
583
584 define Device/netgear_dm200
585 DEVICE_DTS := DM200
586 IMAGES := sysupgrade.bin factory.img
587 IMAGE/factory.img := $$(IMAGE/sysupgrade.bin) | netgear-dni
588 IMAGE_SIZE := 7872k
589 DEVICE_TITLE := Netgear DM200
590 NETGEAR_BOARD_ID := DM200
591 NETGEAR_HW_ID := 29765233+8+0+64+0+0
592 endef
593 DEVICE_VARS += NETGEAR_BOARD_ID NETGEAR_HW_ID
594 TARGET_DEVICES += netgear_dm200
595
596 define Device/lantiq_easy80920-nand
597 $(Device/lantiqFullImage)
598 DEVICE_DTS := EASY80920NAND
599 IMAGE_SIZE := 64512k
600 DEVICE_TITLE := Lantiq VR9 - EASY80920NAND
601 DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-mini kmod-usb-dwc2 kmod-usb-ledtrig-usbport
602 endef
603 TARGET_DEVICES += lantiq_easy80920-nand
604
605 define Device/lantiq_easy80920-nor
606 DEVICE_DTS := EASY80920NOR
607 IMAGE_SIZE := 7936k
608 DEVICE_TITLE := Lantiq VR9 - EASY80920NOR
609 DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-mini kmod-usb-dwc2 kmod-usb-ledtrig-usbport
610 endef
611 TARGET_DEVICES += lantiq_easy80920-nor
612
613 define Device/avm_fritz3370
614 $(Device/AVM)
615 $(Device/NAND)
616 BOARD_NAME := FRITZ3370
617 DEVICE_DTS := FRITZ3370
618 DEVICE_TITLE := Fritz!Box WLan - FRITZ3370
619 DEVICE_PACKAGES := kmod-ath9k wpad-mini kmod-usb-dwc2
620 SUPPORTED_DEVICES += FRITZ3370
621 endef
622 TARGET_DEVICES += avm_fritz3370
623
624 define Device/avm_fritz7360sl
625 $(Device/AVM)
626 IMAGE_SIZE := 15744k
627 DEVICE_DTS := FRITZ7360SL
628 DEVICE_TITLE := 1&1 HomeServer - FRITZ7360SL
629 DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-mini kmod-usb-dwc2
630 SUPPORTED_DEVICES += FRITZ7360SL
631 endef
632 TARGET_DEVICES += avm_fritz7360sl
633
634 define Device/arcadyan_vg3503j
635 IMAGE_SIZE := 8000k
636 DEVICE_DTS := VG3503J
637 DEVICE_TITLE := BT OpenReach - ECI VDSL Modem V-2FUb/R
638 SUPPORTED_DEVICES += VG3503J
639 endef
640 TARGET_DEVICES += arcadyan_vg3503j
641
642 include tp-link.mk
643
644 define Device/buffalo_wbmr-300hpd
645 IMAGE_SIZE := 15616k
646 DEVICE_DTS := WBMR300
647 DEVICE_TITLE := Buffalo WBMR-300HPD
648 DEVICE_PACKAGES := kmod-mt7603 wpad-mini kmod-usb-dwc2
649 SUPPORTED_DEVICES += WBMR300
650 endef
651 TARGET_DEVICES += buffalo_wbmr-300hpd
652
653 define Device/arcadyan_vgv7510kw22-nor
654 IMAGE_SIZE := 15232k
655 DEVICE_DTS := VGV7510KW22NOR
656 DEVICE_TITLE := o2 Box 6431 / Arcadyan VGV7510KW22 (NOR)
657 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2 kmod-ltq-tapi kmod-ltq-vmmc
658 SUPPORTED_DEVICES += VGV7510KW22NOR
659 endef
660 TARGET_DEVICES += arcadyan_vgv7510kw22-nor
661
662 define Device/arcadyan_vgv7510kw22-brn
663 $(Device/lantiqBrnImage)
664 IMAGE_SIZE := 7168k
665 DEVICE_DTS := VGV7510KW22BRN
666 SIGNATURE := BRNDA6431
667 MAGIC := 0x12345678
668 CRC32_POLY := 0x04c11db7
669 DEVICE_TITLE := o2 Box 6431 / Arcadyan VGV7510KW22 (BRN)
670 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2 kmod-ltq-tapi kmod-ltq-vmmc
671 SUPPORTED_DEVICES += VGV7510KW22BRN
672 endef
673 TARGET_DEVICES += arcadyan_vgv7510kw22-brn
674
675 define Device/arcadyan_vgv7519-nor
676 IMAGE_SIZE := 15360k
677 DEVICE_DTS := VGV7519NOR
678 DEVICE_TITLE := Experiabox 8 VGV7519
679 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2 kmod-ltq-tapi kmod-ltq-vmmc
680 SUPPORTED_DEVICES += VGV7519NOR
681 endef
682 TARGET_DEVICES += arcadyan_vgv7519-nor
683
684 define Device/arcadyan_vgv7519-brn
685 $(Device/lantiqBrnImage)
686 IMAGE_SIZE := 7168k
687 DEVICE_DTS := VGV7519BRN
688 SIGNATURE := 5D00008000
689 MAGIC := 0x12345678
690 CRC32_POLY := 0x2083b8ed
691 DEVICE_TITLE := Experiabox 8 VGV7519 (BRN)
692 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2 kmod-ltq-tapi kmod-ltq-vmmc
693 SUPPORTED_DEVICES += VGV7519BRN
694 endef
695 TARGET_DEVICES += arcadyan_vgv7519-brn
696
697 endif
698
699
700 ifeq ($(SUBTARGET),falcon)
701
702 define Device/lantiq_easy98000-nor
703 IMAGE_SIZE := 3904k
704 DEVICE_DTS := EASY98000NOR
705 DEVICE_TITLE := EASY98000 - Lantiq Falcon Eval Board NOR
706 DEVICE_PACKAGES := kmod-dm9000 kmod-i2c-lantiq kmod-eeprom-at24
707 endef
708 TARGET_DEVICES += lantiq_easy98000-nor
709
710 define Device/lantiq_easy98000-nand
711 IMAGE_SIZE := 3904k
712 DEVICE_DTS := EASY98000NAND
713 DEVICE_TITLE := EASY98000 - Lantiq Falcon Eval Board NAND
714 DEVICE_PACKAGES := kmod-dm9000 kmod-i2c-lantiq kmod-eeprom-at24
715 endef
716 TARGET_DEVICES += lantiq_easy98000-nand
717
718 define Device/lantiq_easy98000-sflash
719 IMAGE_SIZE := 7424k
720 DEVICE_DTS := EASY98000SFLASH
721 DEVICE_TITLE := EASY98000 - Lantiq Falcon Eval Board SFLASH
722 DEVICE_PACKAGES := kmod-dm9000 kmod-i2c-lantiq kmod-eeprom-at24
723 endef
724 TARGET_DEVICES += lantiq_easy98000-sflash
725
726 define Device/lantiq_falcon-mdu
727 IMAGE_SIZE := 7424k
728 DEVICE_DTS := FALCON-MDU
729 DEVICE_TITLE := MDU - Lantiq Falcon / VINAXdp MDU Board
730 endef
731 TARGET_DEVICES += lantiq_falcon-mdu
732
733 define Device/lantiq_easy88388
734 IMAGE_SIZE := 7424k
735 DEVICE_DTS := EASY88388
736 DEVICE_TITLE := EASY88388 - Lantiq Falcon FTTDP8 Reference Board
737 endef
738 TARGET_DEVICES += lantiq_easy88388
739
740 define Device/lantiq_easy88444
741 IMAGE_SIZE := 7424k
742 DEVICE_DTS := EASY88444
743 DEVICE_TITLE := EASY88444 - Lantiq Falcon FTTdp G.FAST Reference Board
744 endef
745 TARGET_DEVICES += lantiq_easy88444
746
747 define Device/lantiq_falcon-sfp
748 IMAGE_SIZE := 7424k
749 DEVICE_DTS := FALCON-SFP
750 DEVICE_TITLE := SFP - Lantiq Falcon SFP Stick
751 endef
752 TARGET_DEVICES += lantiq_falcon-sfp
753
754 define Device/lantiq_easy98035synce
755 IMAGE_SIZE := 7424k
756 DEVICE_DTS := EASY98035SYNCE
757 DEVICE_TITLE := EASY98035SYNCE - Lantiq Falcon SFP Stick with Synchronous Ethernet
758 endef
759 TARGET_DEVICES += lantiq_easy98035synce
760
761 define Device/lantiq_easy98035synce1588
762 IMAGE_SIZE := 7424k
763 DEVICE_DTS := EASY98035SYNCE1588
764 DEVICE_TITLE := EASY98035SYNCE1588 - Lantiq Falcon SFP Stick with SyncE and IEEE1588
765 endef
766 TARGET_DEVICES += lantiq_easy98035synce1588
767
768 define Device/lantiq_easy98020
769 IMAGE_SIZE := 7424k
770 DEVICE_DTS := EASY98020
771 DEVICE_TITLE := EASY98020 - Lantiq Falcon SFU Reference Board
772 endef
773 TARGET_DEVICES += lantiq_easy98020
774
775 define Device/lantiq_easy98020-v18
776 IMAGE_SIZE := 7424k
777 DEVICE_DTS := EASY98020V18
778 DEVICE_TITLE := EASY98020V18 - Lantiq Falcon SFU Reference Board V1.8
779 endef
780 TARGET_DEVICES += lantiq_easy98020-v18
781
782 define Device/lantiq_easy98021
783 IMAGE_SIZE := 7424k
784 DEVICE_DTS := EASY98021
785 DEVICE_TITLE := EASY98021 - Lantiq Falcon HGU Reference Board
786 endef
787 TARGET_DEVICES += lantiq_easy98021
788
789 endif
790
791 $(eval $(call BuildImage))