ipq807x: add Spectrum SAX1V1K
[openwrt/staging/blocktrron.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/spectrum_sax1v1k
251 $(call Device/FitImage)
252 $(call Device/EmmcImage)
253 DEVICE_VENDOR := Spectrum
254 DEVICE_MODEL := SAX1V1K
255 DEVICE_DTS_CONFIG := config@rt5010w-d187-rev6
256 SOC := ipq8072
257 IMAGES := sysupgrade.bin
258 DEVICE_PACKAGES := ipq-wifi-spectrum_sax1v1k
259 endef
260 TARGET_DEVICES += spectrum_sax1v1k
261
262 define Device/xiaomi_ax3600
263 $(call Device/FitImage)
264 $(call Device/UbiFit)
265 DEVICE_VENDOR := Xiaomi
266 DEVICE_MODEL := AX3600
267 BLOCKSIZE := 128k
268 PAGESIZE := 2048
269 DEVICE_DTS_CONFIG := config@ac04
270 SOC := ipq8071
271 KERNEL_SIZE := 36608k
272 DEVICE_PACKAGES := ipq-wifi-xiaomi_ax3600 kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9887-ct
273 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
274 ARTIFACTS := initramfs-factory.ubi
275 ARTIFACT/initramfs-factory.ubi := append-image-stage initramfs-uImage.itb | ubinize-kernel
276 endif
277 endef
278 TARGET_DEVICES += xiaomi_ax3600
279
280 define Device/xiaomi_ax9000
281 $(call Device/FitImage)
282 $(call Device/UbiFit)
283 DEVICE_VENDOR := Xiaomi
284 DEVICE_MODEL := AX9000
285 BLOCKSIZE := 128k
286 PAGESIZE := 2048
287 DEVICE_DTS_CONFIG := config@hk14
288 SOC := ipq8072
289 KERNEL_SIZE := 57344k
290 DEVICE_PACKAGES := ipq-wifi-xiaomi_ax9000 kmod-ath11k-pci ath11k-firmware-qcn9074 \
291 kmod-ath10k-ct ath10k-firmware-qca9887-ct
292 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
293 ARTIFACTS := initramfs-factory.ubi
294 ARTIFACT/initramfs-factory.ubi := append-image-stage initramfs-uImage.itb | ubinize-kernel
295 endif
296 endef
297 TARGET_DEVICES += xiaomi_ax9000
298
299 define Device/yuncore_ax880
300 $(call Device/FitImage)
301 $(call Device/UbiFit)
302 DEVICE_VENDOR := Yuncore
303 DEVICE_MODEL := AX880
304 BLOCKSIZE := 128k
305 PAGESIZE := 2048
306 DEVICE_DTS_CONFIG := config@hk09
307 SOC := ipq8072
308 DEVICE_PACKAGES := ipq-wifi-yuncore_ax880
309 IMAGES += factory.bin
310 IMAGE/factory.bin := append-ubi | qsdk-ipq-factory-nand
311 endef
312 TARGET_DEVICES += yuncore_ax880
313
314 define Device/zbtlink_zbt-z800ax
315 $(call Device/FitImage)
316 $(call Device/UbiFit)
317 DEVICE_VENDOR := Zbtlink
318 DEVICE_MODEL := ZBT-Z800AX
319 BLOCKSIZE := 128k
320 PAGESIZE := 2048
321 DEVICE_DTS_CONFIG := config@hk09
322 SOC := ipq8072
323 DEVICE_PACKAGES := ipq-wifi-zbtlink_zbt-z800ax
324 IMAGES += factory.bin
325 IMAGE/factory.bin := append-ubi | qsdk-ipq-factory-nand
326 endef
327 TARGET_DEVICES += zbtlink_zbt-z800ax
328
329 define Device/zte_mf269
330 $(call Device/FitImage)
331 $(call Device/UbiFit)
332 DEVICE_VENDOR := ZTE
333 DEVICE_MODEL := MF269
334 BLOCKSIZE := 128k
335 PAGESIZE := 2048
336 DEVICE_DTS_CONFIG := config@ac04
337 SOC := ipq8071
338 KERNEL_SIZE := 53248k
339 DEVICE_PACKAGES := ipq-wifi-zte_mf269
340 endef
341 TARGET_DEVICES += zte_mf269
342
343 define Device/zyxel_nbg7815
344 $(call Device/FitImage)
345 $(call Device/EmmcImage)
346 DEVICE_VENDOR := ZYXEL
347 DEVICE_MODEL := NBG7815
348 DEVICE_DTS_CONFIG := config@nbg7815
349 SOC := ipq8074
350 DEVICE_PACKAGES := ipq-wifi-zyxel_nbg7815 kmod-ath11k-pci \
351 kmod-bluetooth kmod-hwmon-tmp103
352 endef
353 TARGET_DEVICES += zyxel_nbg7815