0a8dca26bc3bdb59716d286fa3bd23f81878f9fc
[openwrt/openwrt.git] / target / linux / ipq40xx / image / Makefile
1 include $(TOPDIR)/rules.mk
2 include $(INCLUDE_DIR)/image.mk
3
4 DEVICE_VARS += RAS_BOARD RAS_ROOTFS_SIZE RAS_VERSION
5
6 define Device/Default
7 PROFILES := Default
8 KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
9 KERNEL_INITRAMFS_PREFIX := $$(IMG_PREFIX)-$(1)-initramfs
10 KERNEL_PREFIX := $$(IMAGE_PREFIX)
11 KERNEL_LOADADDR := 0x80208000
12 DEVICE_DTS = $$(SOC)-$(lastword $(subst _, ,$(1)))
13 SUPPORTED_DEVICES := $(subst _,$(comma),$(1))
14 IMAGE/sysupgrade.bin = sysupgrade-tar | append-metadata
15 IMAGE/sysupgrade.bin/squashfs :=
16 endef
17
18 define Device/FitImage
19 KERNEL_SUFFIX := -fit-uImage.itb
20 KERNEL = kernel-bin | gzip | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb
21 KERNEL_NAME := Image
22 endef
23
24 define Device/FitImageLzma
25 KERNEL_SUFFIX := -fit-uImage.itb
26 KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb
27 KERNEL_NAME := Image
28 endef
29
30 define Device/FitzImage
31 KERNEL_SUFFIX := -fit-zImage.itb
32 KERNEL = kernel-bin | fit none $$(DTS_DIR)/$$(DEVICE_DTS).dtb
33 KERNEL_NAME := zImage
34 endef
35
36 define Device/UbiFit
37 KERNEL_IN_UBI := 1
38 IMAGES := nand-factory.ubi nand-sysupgrade.bin
39 IMAGE/nand-factory.ubi := append-ubi
40 IMAGE/nand-sysupgrade.bin := sysupgrade-tar | append-metadata
41 endef
42
43 define Device/DniImage
44 KERNEL_SUFFIX := -fit-uImage.itb
45 KERNEL = kernel-bin | gzip | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb
46 KERNEL_NAME := Image
47 NETGEAR_BOARD_ID :=
48 NETGEAR_HW_ID :=
49 IMAGES := factory.img sysupgrade.bin
50 IMAGE/factory.img := append-kernel | pad-offset 64k 64 | append-uImage-fakehdr filesystem | append-rootfs | pad-rootfs | netgear-dni
51 IMAGE/sysupgrade.bin := append-kernel | pad-offset 64k 64 | append-uImage-fakehdr filesystem | append-rootfs | pad-rootfs | append-metadata
52 endef
53 DEVICE_VARS += NETGEAR_BOARD_ID NETGEAR_HW_ID
54
55 define Build/SenaoFW
56 -$(STAGING_DIR_HOST)/bin/mksenaofw \
57 -n $(BOARD_NAME) -r $(VENDOR_ID) -p $(1) \
58 -c $(DATECODE) -w $(2) -x $(CW_VER) -t 0 \
59 -e $@ \
60 -o $@.new
61 @cp $@.new $@
62 endef
63
64 define Device/8dev_jalapeno-common
65 $(call Device/FitImage)
66 $(call Device/UbiFit)
67 BLOCKSIZE := 128k
68 PAGESIZE := 2048
69 SOC := qcom-ipq4018
70 endef
71
72 define Device/8dev_jalapeno
73 $(call Device/8dev_jalapeno-common)
74 DEVICE_VENDOR := 8devices
75 DEVICE_MODEL := Jalapeno
76 endef
77 TARGET_DEVICES += 8dev_jalapeno
78
79 define Device/alfa-network_ap120c-ac
80 $(call Device/FitImage)
81 $(call Device/UbiFit)
82 DEVICE_VENDOR := ALFA Network
83 DEVICE_MODEL := AP120C-AC
84 SOC := qcom-ipq4018
85 DEVICE_PACKAGES := kmod-usb-acm \
86 kmod-tpm-i2c-atmel uboot-envtools
87 BLOCKSIZE := 128k
88 PAGESIZE := 2048
89 IMAGE_SIZE := 65536k
90 IMAGES := nand-factory.bin nand-sysupgrade.bin
91 IMAGE/nand-factory.bin := append-ubi | qsdk-ipq-factory-nand
92 endef
93 TARGET_DEVICES += alfa-network_ap120c-ac
94
95 define Device/aruba_ap-303
96 $(call Device/FitImageLzma)
97 DEVICE_VENDOR := Aruba
98 DEVICE_MODEL := AP-303
99 SOC := qcom-ipq4029
100 DEVICE_PACKAGES := ipq-wifi-aruba_ap-303
101 IMAGES := sysupgrade.bin
102 endef
103 TARGET_DEVICES += aruba_ap-303
104
105 define Device/asus_map-ac2200
106 $(call Device/FitImageLzma)
107 DEVICE_VENDOR := ASUS
108 DEVICE_MODEL := Lyra (MAP-AC2200)
109 SOC := qcom-ipq4019
110 IMAGES := sysupgrade.bin
111 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-ath3k
112 endef
113 TARGET_DEVICES += asus_map-ac2200
114
115 define Device/asus_rt-ac58u
116 $(call Device/FitImageLzma)
117 DEVICE_VENDOR := ASUS
118 DEVICE_MODEL := RT-AC58U
119 SOC := qcom-ipq4018
120 BLOCKSIZE := 128k
121 PAGESIZE := 2048
122 DTB_SIZE := 65536
123 IMAGE_SIZE := 20439364
124 FILESYSTEMS := squashfs
125 # Someone - in their infinite wisdom - decided to put the firmware
126 # version in front of the image name \03\00\00\04 => Version 3.0.0.4
127 # Since u-boot works with strings we either need another fixup step
128 # to add a version... or we are very careful not to add '\0' into that
129 # string and call it a day.... Yeah, we do the latter!
130 UIMAGE_NAME:=$(shell echo -e '\03\01\01\01RT-AC58U')
131 IMAGES := sysupgrade.bin
132 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers \
133 kmod-usb-ledtrig-usbport
134 endef
135 TARGET_DEVICES += asus_rt-ac58u
136
137 define Device/avm_fritzbox-4040
138 $(call Device/FitImageLzma)
139 DEVICE_VENDOR := AVM
140 DEVICE_MODEL := FRITZ!Box 4040
141 SOC := qcom-ipq4018
142 BOARD_NAME := fritz4040
143 IMAGE_SIZE := 29056k
144 UBOOT_PATH := $(STAGING_DIR_IMAGE)/uboot-fritz4040.bin
145 UBOOT_PARTITION_SIZE := 524288
146 IMAGES = eva.bin sysupgrade.bin
147 IMAGE/eva.bin := append-uboot | pad-to $$$$(UBOOT_PARTITION_SIZE) | append-kernel | append-rootfs | pad-rootfs
148 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
149 DEVICE_PACKAGES := fritz-tffs fritz-caldata
150 endef
151 TARGET_DEVICES += avm_fritzbox-4040
152
153 define Device/avm_fritzbox-7530
154 $(call Device/FitImageLzma)
155 DEVICE_VENDOR := AVM
156 DEVICE_MODEL := FRITZ!Box 7530
157 SOC := qcom-ipq4019
158 DEVICE_PACKAGES := fritz-caldata fritz-tffs-nand
159 IMAGES := sysupgrade.bin
160 endef
161 TARGET_DEVICES += avm_fritzbox-7530
162
163 define Device/avm_fritzrepeater-1200
164 $(call Device/FitImageLzma)
165 DEVICE_VENDOR := AVM
166 DEVICE_MODEL := FRITZ!Repeater 1200
167 SOC := qcom-ipq4019
168 DEVICE_PACKAGES := fritz-caldata fritz-tffs-nand ipq-wifi-avm_fritzrepeater-1200
169 IMAGES := sysupgrade.bin
170 endef
171 TARGET_DEVICES += avm_fritzrepeater-1200
172
173 define Device/avm_fritzrepeater-3000
174 $(call Device/FitImageLzma)
175 DEVICE_VENDOR := AVM
176 DEVICE_MODEL := FRITZ!Repeater 3000
177 SOC := qcom-ipq4019
178 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct fritz-caldata fritz-tffs-nand
179 IMAGES := sysupgrade.bin
180 endef
181 TARGET_DEVICES += avm_fritzrepeater-3000
182
183 define Device/cilab_meshpoint-one
184 $(call Device/8dev_jalapeno-common)
185 DEVICE_VENDOR := Crisis Innovation Lab
186 DEVICE_MODEL := MeshPoint.One
187 DEVICE_PACKAGES := kmod-i2c-gpio kmod-iio-bmp280-i2c kmod-hwmon-ina2xx kmod-rtc-pcf2127
188 endef
189 TARGET_DEVICES += cilab_meshpoint-one
190
191 define Device/compex_wpj419
192 $(call Device/FitImage)
193 $(call Device/UbiFit)
194 DEVICE_VENDOR := Compex
195 DEVICE_MODEL := WPJ419
196 SOC := qcom-ipq4019
197 DEVICE_DTS_CONFIG := config@12
198 KERNEL_INSTALL := 1
199 BLOCKSIZE := 128k
200 PAGESIZE := 2048
201 FILESYSTEMS := squashfs
202 endef
203 TARGET_DEVICES += compex_wpj419
204
205 define Device/compex_wpj428
206 $(call Device/FitImage)
207 DEVICE_VENDOR := Compex
208 DEVICE_MODEL := WPJ428
209 SOC := qcom-ipq4028
210 DEVICE_DTS_CONFIG := config@4
211 BLOCKSIZE := 64k
212 IMAGE_SIZE := 31232k
213 KERNEL_SIZE := 4096k
214 IMAGES = sysupgrade.bin
215 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
216 DEVICE_PACKAGES := kmod-gpio-beeper
217 endef
218 TARGET_DEVICES += compex_wpj428
219
220 define Device/engenius_eap1300
221 $(call Device/FitImage)
222 DEVICE_VENDOR := EnGenius
223 DEVICE_MODEL := EAP1300
224 DEVICE_DTS_CONFIG := config@4
225 BOARD_NAME := eap1300
226 SOC := qcom-ipq4018
227 KERNEL_SIZE := 5120k
228 IMAGE_SIZE := 25344k
229 IMAGES := sysupgrade.bin
230 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
231 endef
232 TARGET_DEVICES += engenius_eap1300
233
234 define Device/engenius_ens620ext
235 $(call Device/FitImage)
236 DEVICE_VENDOR := EnGenius
237 DEVICE_MODEL := ENS620EXT
238 SOC := qcom-ipq4018
239 DEVICE_DTS_CONFIG := config@4
240 BLOCKSIZE := 64k
241 PAGESIZE := 256
242 BOARD_NAME := ENS620EXT
243 VENDOR_ID := 0x0101
244 PRODUCT_ID := 0x79
245 PRODUCT_ID_NEW := 0xA4
246 DATECODE := 190507
247 FW_VER := 3.1.2
248 FW_VER_NEW := 3.5.6
249 CW_VER := 1.8.99
250 IMAGE_SIZE := 21312k
251 KERNEL_SIZE := 5120k
252 FILESYSTEMS := squashfs
253 IMAGES := sysupgrade.bin factory_30.bin factory_35.bin
254 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | append-metadata
255 IMAGE/factory_30.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | SenaoFW $$$$(PRODUCT_ID) $$$$(FW_VER)
256 IMAGE/factory_35.bin := qsdk-ipq-factory-nor | check-size $$$$(IMAGE_SIZE) | SenaoFW $$$$(PRODUCT_ID_NEW) $$$$(FW_VER_NEW)
257 endef
258 TARGET_DEVICES += engenius_ens620ext
259
260 define Device/ezviz_cs-w3-wd1200g-eup
261 $(call Device/FitImage)
262 DEVICE_VENDOR := EZVIZ
263 DEVICE_MODEL := CS-W3-WD1200G
264 DEVICE_VARIANT := EUP
265 DEVICE_DTS_CONFIG := config@4
266 IMAGE_SIZE := 14848k
267 SOC := qcom-ipq4018
268 IMAGES := sysupgrade.bin
269 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
270 append-metadata
271 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers \
272 ipq-wifi-ezviz_cs-w3-wd1200g-eup
273 endef
274 TARGET_DEVICES += ezviz_cs-w3-wd1200g-eup
275
276 define Device/glinet_gl-b1300
277 $(call Device/FitImage)
278 DEVICE_VENDOR := GL.iNet
279 DEVICE_MODEL := GL-B1300
280 BOARD_NAME := gl-b1300
281 SOC := qcom-ipq4029
282 KERNEL_SIZE := 4096k
283 IMAGE_SIZE := 26624k
284 IMAGES := sysupgrade.bin
285 IMAGE/sysupgrade.bin := append-kernel |append-rootfs | pad-rootfs | append-metadata
286 endef
287 TARGET_DEVICES += glinet_gl-b1300
288
289 define Device/linksys_ea6350v3
290 # The Linksys EA6350v3 has a uboot bootloader that does not
291 # support either booting lzma kernel images nor booting UBI
292 # partitions. This uboot, however, supports raw kernel images and
293 # gzipped images.
294 #
295 # As for the time of writing this, the device will boot the kernel
296 # from a fixed address with a fixed length of 3MiB. Also, the
297 # device has a hard-coded kernel command line that requieres the
298 # rootfs and alt_rootfs to be in mtd11 and mtd13 respectively.
299 # Oh... and the kernel partition overlaps with the rootfs
300 # partition (the same for alt_kernel and alt_rootfs).
301 #
302 # If you are planing re-partitioning the device, you may want to
303 # keep those details in mind:
304 # 1. The kernel adresses you should honor are 0x00000000 and
305 # 0x02800000 respectively.
306 # 2. The kernel size (plus the dtb) cannot exceed 3.00MiB in size.
307 # 3. You can use 'zImage', but not a raw 'Image' packed with lzma.
308 # 4. The kernel command line from uboot is harcoded to boot with
309 # rootfs either in mtd11 or mtd13.
310 $(call Device/FitzImage)
311 DEVICE_VENDOR := Linksys
312 DEVICE_MODEL := EA6350
313 DEVICE_VARIANT := v3
314 SOC := qcom-ipq4018
315 BLOCKSIZE := 128k
316 PAGESIZE := 2048
317 KERNEL_SIZE := 3072k
318 IMAGE_SIZE := 37888k
319 UBINIZE_OPTS := -E 5
320 IMAGES := factory.bin sysupgrade.bin
321 IMAGE/factory.bin := append-kernel | append-uImage-fakehdr filesystem | pad-to $$$${KERNEL_SIZE} | append-ubi | linksys-image type=EA6350v3
322 DEVICE_PACKAGES := uboot-envtools
323 endef
324 TARGET_DEVICES += linksys_ea6350v3
325
326 define Device/linksys_ea8300
327 $(call Device/FitzImage)
328 DEVICE_VENDOR := Linksys
329 DEVICE_MODEL := EA8300
330 SOC := qcom-ipq4019
331 KERNEL_SIZE := 3072k
332 IMAGE_SIZE := 87040k
333 BLOCKSIZE := 128k
334 PAGESIZE := 2048
335 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
336 IMAGES := sysupgrade.bin factory.bin
337 IMAGE/factory.bin := append-kernel | pad-to $$$${KERNEL_SIZE} | append-ubi | linksys-image type=EA8300
338 DEVICE_PACKAGES := uboot-envtools ath10k-firmware-qca9888-ct ipq-wifi-linksys_ea8300 kmod-usb-ledtrig-usbport
339 endef
340 TARGET_DEVICES += linksys_ea8300
341
342 define Device/meraki_mr33
343 $(call Device/FitImage)
344 DEVICE_VENDOR := Cisco Meraki
345 DEVICE_MODEL := MR33
346 SOC := qcom-ipq4029
347 BLOCKSIZE := 128k
348 PAGESIZE := 2048
349 IMAGES = sysupgrade.bin
350 DEVICE_PACKAGES := -swconfig ath10k-firmware-qca9887-ct
351 endef
352 TARGET_DEVICES += meraki_mr33
353
354 define Device/netgear_ex61x0v2
355 $(call Device/DniImage)
356 DEVICE_DTS_CONFIG := config@4
357 NETGEAR_BOARD_ID := EX6150v2series
358 NETGEAR_HW_ID := 29765285+16+0+128+2x2
359 SOC := qcom-ipq4018
360 endef
361
362 define Device/netgear_ex6100v2
363 $(call Device/netgear_ex61x0v2)
364 DEVICE_VENDOR := Netgear
365 DEVICE_MODEL := EX6100
366 DEVICE_VARIANT := v2
367 endef
368 TARGET_DEVICES += netgear_ex6100v2
369
370 define Device/netgear_ex6150v2
371 $(call Device/netgear_ex61x0v2)
372 DEVICE_VENDOR := Netgear
373 DEVICE_MODEL := EX6150
374 DEVICE_VARIANT := v2
375 endef
376 TARGET_DEVICES += netgear_ex6150v2
377
378 define Device/openmesh_a42
379 $(call Device/FitImageLzma)
380 DEVICE_VENDOR := OpenMesh
381 DEVICE_MODEL := A42
382 SOC := qcom-ipq4018
383 DEVICE_DTS_CONFIG := config@om.a42
384 BLOCKSIZE := 64k
385 KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
386 IMAGE_SIZE := 15616k
387 IMAGES = factory.bin sysupgrade.bin
388 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A42
389 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
390 DEVICE_PACKAGES := uboot-envtools
391 endef
392 TARGET_DEVICES += openmesh_a42
393
394 define Device/openmesh_a62
395 $(call Device/FitImageLzma)
396 DEVICE_VENDOR := OpenMesh
397 DEVICE_MODEL := A62
398 SOC := qcom-ipq4019
399 DEVICE_DTS_CONFIG := config@om.a62
400 BLOCKSIZE := 64k
401 KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
402 IMAGE_SIZE := 15552k
403 IMAGES = factory.bin sysupgrade.bin
404 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A62
405 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
406 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct uboot-envtools
407 endef
408
409 TARGET_DEVICES += openmesh_a62
410
411 define Device/qcom_ap-dk01.1-c1
412 DEVICE_VENDOR := Qualcomm Atheros
413 DEVICE_MODEL := AP-DK01.1
414 DEVICE_VARIANT := C1
415 BOARD_NAME := ap-dk01.1-c1
416 SOC := qcom-ipq4019
417 DEVICE_DTS := qcom-ipq4019-ap.dk01.1-c1
418 KERNEL_INSTALL := 1
419 KERNEL_SIZE := 4096k
420 IMAGE_SIZE := 26624k
421 $(call Device/FitImage)
422 IMAGES := sysupgrade.bin
423 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$${KERNEL_SIZE} | append-rootfs | pad-rootfs | append-metadata
424 endef
425 TARGET_DEVICES += qcom_ap-dk01.1-c1
426
427 define Device/qcom_ap-dk04.1-c1
428 $(call Device/FitImage)
429 $(call Device/UbiFit)
430 DEVICE_VENDOR := Qualcomm Atheros
431 DEVICE_MODEL := AP-DK04.1
432 DEVICE_VARIANT := C1
433 SOC := qcom-ipq4019
434 DEVICE_DTS := qcom-ipq4019-ap.dk04.1-c1
435 KERNEL_INSTALL := 1
436 KERNEL_SIZE := 4048k
437 BLOCKSIZE := 128k
438 PAGESIZE := 2048
439 BOARD_NAME := ap-dk04.1-c1
440 endef
441 TARGET_DEVICES += qcom_ap-dk04.1-c1
442
443 define Device/qxwlan_e2600ac-c1
444 $(call Device/FitImage)
445 DEVICE_VENDOR := Qxwlan
446 DEVICE_MODEL := E2600AC
447 DEVICE_VARIANT := C1
448 BOARD_NAME := e2600ac-c1
449 SOC := qcom-ipq4019
450 KERNEL_SIZE := 4096k
451 IMAGE_SIZE := 31232k
452 IMAGES := sysupgrade.bin
453 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
454 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac
455 endef
456 TARGET_DEVICES += qxwlan_e2600ac-c1
457
458 define Device/qxwlan_e2600ac-c2
459 $(call Device/FitImage)
460 $(call Device/UbiFit)
461 DEVICE_VENDOR := Qxwlan
462 DEVICE_MODEL := E2600AC
463 DEVICE_VARIANT := C2
464 SOC := qcom-ipq4019
465 KERNEL_INSTALL := 1
466 BLOCKSIZE := 128k
467 PAGESIZE := 2048
468 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac
469 endef
470 TARGET_DEVICES += qxwlan_e2600ac-c2
471
472 define Device/unielec_u4019-32m
473 $(call Device/FitImage)
474 DEVICE_VENDOR := Unielec
475 DEVICE_MODEL := U4019
476 DEVICE_VARIANT := 32M
477 BOARD_NAME := u4019-32m
478 SOC := qcom-ipq4019
479 KERNEL_SIZE := 4096k
480 IMAGE_SIZE := 31232k
481 IMAGES := sysupgrade.bin
482 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
483 endef
484 TARGET_DEVICES += unielec_u4019-32m
485
486 define Device/zyxel_nbg6617
487 $(call Device/FitImageLzma)
488 DEVICE_VENDOR := ZyXEL
489 DEVICE_MODEL := NBG6617
490 SOC := qcom-ipq4018
491 ROOTFS_SIZE := 24960k
492 RAS_BOARD := NBG6617
493 RAS_ROOTFS_SIZE := 19840k
494 RAS_VERSION := "$(VERSION_DIST) $(REVISION)"
495 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
496 IMAGES := sysupgrade.bin factory.bin
497 # The ZyXEL firmware allows flashing thru the web-gui only when the rootfs is
498 # at least as large as the one of the initial firmware image (not the current
499 # one on the device). This only applies to the Web-UI, the bootlaoder ignores
500 # this minimum-size. However, the larger image can be flashed both ways.
501 IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k | check-size $$$$(ROOTFS_SIZE) | zyxel-ras-image separate-kernel
502 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | check-size $$$$(ROOTFS_SIZE) | sysupgrade-tar rootfs=$$$$@ | append-metadata
503 DEVICE_PACKAGES := uboot-envtools kmod-usb-ledtrig-usbport
504 endef
505 TARGET_DEVICES += zyxel_nbg6617
506
507 define Device/zyxel_wre6606
508 $(call Device/FitImage)
509 DEVICE_VENDOR := ZyXEL
510 DEVICE_MODEL := WRE6606
511 DEVICE_DTS_CONFIG := config@4
512 SOC := qcom-ipq4018
513 IMAGES := sysupgrade.bin
514 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
515 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
516 endef
517 TARGET_DEVICES += zyxel_wre6606
518
519 $(eval $(call BuildImage))