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