ipq807x: add support for Zbtlink ZBT-Z800AX
[openwrt/staging/pepe2k.git] / target / linux / qualcommax / image / ipq807x.mk
1 define Build/wax6xx-netgear-tar
2 mkdir $@.tmp
3 mv $@ $@.tmp/nand-ipq807x-apps.img
4 md5sum $@.tmp/nand-ipq807x-apps.img | cut -c 1-32 > $@.tmp/nand-ipq807x-apps.md5sum
5 echo $(DEVICE_MODEL) > $@.tmp/metadata.txt
6 echo $(DEVICE_MODEL)"_V9.9.9.9" > $@.tmp/version
7 tar -C $@.tmp/ -cf $@ .
8 rm -rf $@.tmp
9 endef
10
11 define Device/arcadyan_aw1000
12 $(call Device/FitImage)
13 $(call Device/UbiFit)
14 DEVICE_VENDOR := Arcadyan
15 DEVICE_MODEL := AW1000
16 BLOCKSIZE := 256k
17 PAGESIZE := 4096
18 DEVICE_DTS_CONFIG := config@hk09
19 SOC := ipq8072
20 DEVICE_PACKAGES := ipq-wifi-arcadyan_aw1000 kmod-spi-gpio \
21 kmod-gpio-nxp-74hc164 kmod-usb-serial-option uqmi
22 endef
23 TARGET_DEVICES += arcadyan_aw1000
24
25 define Device/buffalo_wxr-5950ax12
26 $(call Device/FitImage)
27 DEVICE_VENDOR := Buffalo
28 DEVICE_MODEL := WXR-5950AX12
29 BLOCKSIZE := 128k
30 PAGESIZE := 2048
31 DEVICE_DTS_CONFIG := config@hk01
32 SOC := ipq8074
33 DEVICE_PACKAGES := ipq-wifi-buffalo_wxr-5950ax12
34 endef
35 TARGET_DEVICES += buffalo_wxr-5950ax12
36
37 define Device/cmcc_rm2-6
38 $(call Device/FitImage)
39 $(call Device/UbiFit)
40 DEVICE_VENDOR := CMCC
41 DEVICE_MODEL := RM2-6
42 BLOCKSIZE := 128k
43 PAGESIZE := 2048
44 DEVICE_DTS_CONFIG := config@ac02
45 SOC := ipq8070
46 IMAGES += factory.bin
47 IMAGE/factory.bin := append-ubi | qsdk-ipq-factory-nand
48 DEVICE_PACKAGES := ipq-wifi-cmcc_rm2-6 kmod-hwmon-gpiofan
49 endef
50 TARGET_DEVICES += cmcc_rm2-6
51
52 define Device/compex_wpq873
53 $(call Device/FitImage)
54 $(call Device/UbiFit)
55 DEVICE_VENDOR := Compex
56 DEVICE_MODEL := WPQ873
57 BLOCKSIZE := 128k
58 PAGESIZE := 2048
59 DEVICE_DTS_CONFIG := config@hk09.wpq873
60 SOC := ipq8072
61 DEVICE_PACKAGES := ipq-wifi-compex_wpq873
62 IMAGE/factory.ubi := append-ubi | qsdk-ipq-factory-nand
63 endef
64 TARGET_DEVICES += compex_wpq873
65
66 define Device/dynalink_dl-wrx36
67 $(call Device/FitImage)
68 $(call Device/UbiFit)
69 DEVICE_VENDOR := Dynalink
70 DEVICE_MODEL := DL-WRX36
71 BLOCKSIZE := 128k
72 PAGESIZE := 2048
73 DEVICE_DTS_CONFIG := config@rt5010w-d350-rev0
74 SOC := ipq8072
75 DEVICE_PACKAGES := ipq-wifi-dynalink_dl-wrx36
76 endef
77 TARGET_DEVICES += dynalink_dl-wrx36
78
79 define Device/edgecore_eap102
80 $(call Device/FitImage)
81 $(call Device/UbiFit)
82 DEVICE_VENDOR := Edgecore
83 DEVICE_MODEL := EAP102
84 BLOCKSIZE := 128k
85 PAGESIZE := 2048
86 DEVICE_DTS_CONFIG := config@ac02
87 SOC := ipq8071
88 DEVICE_PACKAGES := ipq-wifi-edgecore_eap102
89 IMAGE/factory.ubi := append-ubi | qsdk-ipq-factory-nand
90 endef
91 TARGET_DEVICES += edgecore_eap102
92
93 define Device/edimax_cax1800
94 $(call Device/FitImage)
95 $(call Device/UbiFit)
96 DEVICE_VENDOR := Edimax
97 DEVICE_MODEL := CAX1800
98 BLOCKSIZE := 128k
99 PAGESIZE := 2048
100 DEVICE_DTS_CONFIG := config@ac03
101 SOC := ipq8070
102 DEVICE_PACKAGES := ipq-wifi-edimax_cax1800
103 endef
104 TARGET_DEVICES += edimax_cax1800
105
106 define Device/linksys_mx4200v1
107 $(call Device/FitImage)
108 DEVICE_VENDOR := Linksys
109 DEVICE_MODEL := MX4200
110 DEVICE_VARIANT := v1
111 BLOCKSIZE := 128k
112 PAGESIZE := 2048
113 KERNEL_SIZE := 6144k
114 IMAGE_SIZE := 147456k
115 NAND_SIZE := 512m
116 SOC := ipq8174
117 IMAGES += factory.bin
118 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=MX4200
119 DEVICE_PACKAGES := kmod-leds-pca963x ipq-wifi-linksys_mx4200 kmod-bluetooth
120 endef
121 TARGET_DEVICES += linksys_mx4200v1
122
123 define Device/linksys_mx4200v2
124 $(call Device/linksys_mx4200v1)
125 DEVICE_VARIANT := v2
126 endef
127 TARGET_DEVICES += linksys_mx4200v2
128
129 define Device/linksys_mx5300
130 $(call Device/FitImage)
131 DEVICE_VENDOR := Linksys
132 DEVICE_MODEL := MX5300
133 BLOCKSIZE := 128k
134 PAGESIZE := 2048
135 KERNEL_SIZE := 6144k
136 IMAGE_SIZE := 147456k
137 NAND_SIZE := 512m
138 SOC := ipq8072
139 IMAGES += factory.bin
140 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=MX5300
141 DEVICE_PACKAGES := kmod-leds-pca963x kmod-rtc-ds1307 \
142 ipq-wifi-linksys_mx5300 kmod-ath10k-ct ath10k-firmware-qca9984-ct
143 endef
144 TARGET_DEVICES += linksys_mx5300
145
146 define Device/netgear_rax120v2
147 $(call Device/FitImage)
148 $(call Device/UbiFit)
149 DEVICE_VENDOR := Netgear
150 DEVICE_MODEL := RAX120v2
151 BLOCKSIZE := 128k
152 PAGESIZE := 2048
153 DEVICE_DTS_CONFIG := config@hk01
154 SOC := ipq8074
155 KERNEL_SIZE := 29696k
156 NETGEAR_BOARD_ID := RAX120
157 NETGEAR_HW_ID := 29765589+0+512+1024+4x4+8x8
158 DEVICE_PACKAGES := ipq-wifi-netgear_rax120v2 kmod-spi-gpio \
159 kmod-spi-bitbang kmod-gpio-nxp-74hc164 kmod-hwmon-g761
160 IMAGES += web-ui-factory.img
161 IMAGE/web-ui-factory.img := append-image initramfs-uImage.itb | \
162 pad-offset $$$$(BLOCKSIZE) 64 | append-uImage-fakehdr filesystem | \
163 netgear-dni
164 IMAGE/sysupgrade.bin := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
165 append-uImage-fakehdr filesystem | sysupgrade-tar kernel=$$$$@ | \
166 append-metadata
167 endef
168 TARGET_DEVICES += netgear_rax120v2
169
170 define Device/netgear_wax218
171 $(call Device/FitImage)
172 $(call Device/UbiFit)
173 DEVICE_VENDOR := Netgear
174 DEVICE_MODEL := WAX218
175 DEVICE_DTS_CONFIG := config@hk07
176 BLOCKSIZE := 128k
177 PAGESIZE := 2048
178 SOC := ipq8072
179 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
180 ARTIFACTS := web-ui-factory.fit
181 ARTIFACT/web-ui-factory.fit := append-image initramfs-uImage.itb | \
182 ubinize-kernel | qsdk-ipq-factory-nand
183 endif
184 DEVICE_PACKAGES := kmod-spi-gpio kmod-spi-bitbang kmod-gpio-nxp-74hc164 \
185 ipq-wifi-netgear_wax218
186 endef
187 TARGET_DEVICES += netgear_wax218
188
189 define Device/netgear_wax620
190 $(call Device/FitImage)
191 $(call Device/UbiFit)
192 DEVICE_VENDOR := Netgear
193 DEVICE_MODEL := WAX620
194 DEVICE_DTS_CONFIG := config@hk07
195 BLOCKSIZE := 128k
196 PAGESIZE := 2048
197 SOC := ipq8072
198 DEVICE_PACKAGES := kmod-spi-gpio kmod-gpio-nxp-74hc164 \
199 ipq-wifi-netgear_wax620
200 endef
201 TARGET_DEVICES += netgear_wax620
202
203 define Device/netgear_wax630
204 $(call Device/FitImage)
205 $(call Device/UbiFit)
206 DEVICE_VENDOR := Netgear
207 DEVICE_MODEL := WAX630
208 DEVICE_DTS_CONFIG := config@hk01
209 BLOCKSIZE := 128k
210 PAGESIZE := 2048
211 SOC := ipq8074
212 IMAGES += ui-factory.tar
213 IMAGE/ui-factory.tar := append-ubi | wax6xx-netgear-tar
214 DEVICE_PACKAGES := kmod-spi-gpio ipq-wifi-netgear_wax630
215 endef
216 TARGET_DEVICES += netgear_wax630
217
218 define Device/prpl_haze
219 $(call Device/FitImage)
220 $(call Device/EmmcImage)
221 DEVICE_VENDOR := prpl Foundation
222 DEVICE_MODEL := Haze
223 DEVICE_DTS_CONFIG := config@hk09
224 SOC := ipq8072
225 DEVICE_PACKAGES := ath11k-firmware-qcn9074 ipq-wifi-prpl_haze kmod-ath11k-pci \
226 mkf2fs f2fsck kmod-fs-f2fs kmod-leds-lp5562
227 endef
228 TARGET_DEVICES += prpl_haze
229
230 define Device/qnap_301w
231 $(call Device/FitImage)
232 $(call Device/EmmcImage)
233 DEVICE_VENDOR := QNAP
234 DEVICE_MODEL := 301w
235 DEVICE_DTS_CONFIG := config@hk01
236 KERNEL_SIZE := 16384k
237 SOC := ipq8072
238 DEVICE_PACKAGES := ipq-wifi-qnap_301w
239 endef
240 TARGET_DEVICES += qnap_301w
241
242 define Device/redmi_ax6
243 $(call Device/xiaomi_ax3600)
244 DEVICE_VENDOR := Redmi
245 DEVICE_MODEL := AX6
246 DEVICE_PACKAGES := ipq-wifi-redmi_ax6
247 endef
248 TARGET_DEVICES += redmi_ax6
249
250 define Device/xiaomi_ax3600
251 $(call Device/FitImage)
252 $(call Device/UbiFit)
253 DEVICE_VENDOR := Xiaomi
254 DEVICE_MODEL := AX3600
255 BLOCKSIZE := 128k
256 PAGESIZE := 2048
257 DEVICE_DTS_CONFIG := config@ac04
258 SOC := ipq8071
259 KERNEL_SIZE := 36608k
260 DEVICE_PACKAGES := ipq-wifi-xiaomi_ax3600 kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9887-ct
261 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
262 ARTIFACTS := initramfs-factory.ubi
263 ARTIFACT/initramfs-factory.ubi := append-image-stage initramfs-uImage.itb | ubinize-kernel
264 endif
265 endef
266 TARGET_DEVICES += xiaomi_ax3600
267
268 define Device/xiaomi_ax9000
269 $(call Device/FitImage)
270 $(call Device/UbiFit)
271 DEVICE_VENDOR := Xiaomi
272 DEVICE_MODEL := AX9000
273 BLOCKSIZE := 128k
274 PAGESIZE := 2048
275 DEVICE_DTS_CONFIG := config@hk14
276 SOC := ipq8072
277 KERNEL_SIZE := 57344k
278 DEVICE_PACKAGES := ipq-wifi-xiaomi_ax9000 kmod-ath11k-pci ath11k-firmware-qcn9074 \
279 kmod-ath10k-ct ath10k-firmware-qca9887-ct
280 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
281 ARTIFACTS := initramfs-factory.ubi
282 ARTIFACT/initramfs-factory.ubi := append-image-stage initramfs-uImage.itb | ubinize-kernel
283 endif
284 endef
285 TARGET_DEVICES += xiaomi_ax9000
286
287 define Device/yuncore_ax880
288 $(call Device/FitImage)
289 $(call Device/UbiFit)
290 DEVICE_VENDOR := Yuncore
291 DEVICE_MODEL := AX880
292 BLOCKSIZE := 128k
293 PAGESIZE := 2048
294 DEVICE_DTS_CONFIG := config@hk09
295 SOC := ipq8072
296 DEVICE_PACKAGES := ipq-wifi-yuncore_ax880
297 IMAGES += factory.bin
298 IMAGE/factory.bin := append-ubi | qsdk-ipq-factory-nand
299 endef
300 TARGET_DEVICES += yuncore_ax880
301
302 define Device/zbtlink_zbt-z800ax
303 $(call Device/FitImage)
304 $(call Device/UbiFit)
305 DEVICE_VENDOR := Zbtlink
306 DEVICE_MODEL := ZBT-Z800AX
307 BLOCKSIZE := 128k
308 PAGESIZE := 2048
309 DEVICE_DTS_CONFIG := config@hk09
310 SOC := ipq8072
311 DEVICE_PACKAGES := ipq-wifi-zbtlink_zbt-z800ax
312 IMAGES += factory.bin
313 IMAGE/factory.bin := append-ubi | qsdk-ipq-factory-nand
314 endef
315 TARGET_DEVICES += zbtlink_zbt-z800ax
316
317 define Device/zte_mf269
318 $(call Device/FitImage)
319 $(call Device/UbiFit)
320 DEVICE_VENDOR := ZTE
321 DEVICE_MODEL := MF269
322 BLOCKSIZE := 128k
323 PAGESIZE := 2048
324 DEVICE_DTS_CONFIG := config@ac04
325 SOC := ipq8071
326 KERNEL_SIZE := 53248k
327 DEVICE_PACKAGES := ipq-wifi-zte_mf269
328 endef
329 TARGET_DEVICES += zte_mf269
330
331 define Device/zyxel_nbg7815
332 $(call Device/FitImage)
333 $(call Device/EmmcImage)
334 DEVICE_VENDOR := ZYXEL
335 DEVICE_MODEL := NBG7815
336 DEVICE_DTS_CONFIG := config@nbg7815
337 SOC := ipq8074
338 DEVICE_PACKAGES := ipq-wifi-zyxel_nbg7815 kmod-ath11k-pci \
339 kmod-bluetooth kmod-hwmon-tmp103
340 endef
341 TARGET_DEVICES += zyxel_nbg7815