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