mediatek: include "kmod-mt7915e" package per device
[openwrt/openwrt.git] / target / linux / ath79 / image / generic-ubnt.mk
1 include ./common-ubnt.mk
2
3 define Device/ubnt_aircube-ac
4 $(Device/ubnt-acb)
5 SOC := ar9342
6 DEVICE_MODEL := airCube AC
7 UBNT_CHIP := ar9342
8 DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
9 endef
10 TARGET_DEVICES += ubnt_aircube-ac
11
12 define Device/ubnt_aircube-isp
13 $(Device/ubnt-acb)
14 SOC := qca9533
15 DEVICE_MODEL := airCube ISP
16 UBNT_CHIP := qca9533
17 SUPPORTED_DEVICES += ubnt,acb-isp
18 endef
19 TARGET_DEVICES += ubnt_aircube-isp
20
21 define Device/ubnt_bullet-ac
22 $(Device/ubnt-2wa)
23 DEVICE_MODEL := Bullet AC
24 DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
25 endef
26 TARGET_DEVICES += ubnt_bullet-ac
27
28 define Device/ubnt_bullet-m-xw
29 $(Device/ubnt-xw)
30 DEVICE_MODEL := Bullet M
31 DEVICE_ALT0_VENDOR := Ubiquiti
32 DEVICE_ALT0_MODEL := Rocket M
33 DEVICE_ALT0_VARIANT := XW
34 DEVICE_PACKAGES += rssileds
35 SUPPORTED_DEVICES += bullet-m-xw
36 endef
37 TARGET_DEVICES += ubnt_bullet-m-xw
38
39 define Device/ubnt_edgeswitch-5xp
40 $(Device/ubnt-sw)
41 DEVICE_MODEL := EdgeSwitch 5XP
42 endef
43 TARGET_DEVICES += ubnt_edgeswitch-5xp
44
45 define Device/ubnt_edgeswitch-8xp
46 $(Device/ubnt-sw)
47 DEVICE_MODEL := EdgeSwitch 8XP
48 DEVICE_PACKAGES += kmod-switch-bcm53xx-mdio
49 DEFAULT := n
50 endef
51 TARGET_DEVICES += ubnt_edgeswitch-8xp
52
53 define Device/ubnt_lap-120
54 $(Device/ubnt-wa)
55 DEVICE_MODEL := LiteAP ac (LAP-120)
56 DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
57 endef
58 TARGET_DEVICES += ubnt_lap-120
59
60 define Device/ubnt_litebeam-ac-gen2
61 $(Device/ubnt-wa)
62 DEVICE_MODEL := LiteBeam AC
63 DEVICE_VARIANT := Gen2
64 DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
65 endef
66 TARGET_DEVICES += ubnt_litebeam-ac-gen2
67
68 define Device/ubnt_litebeam-m5-xw
69 $(Device/ubnt-xw)
70 DEVICE_MODEL := LiteBeam M5
71 SUPPORTED_DEVICES += lbe-m5
72 DEVICE_PACKAGES := -kmod-usb2
73 endef
74 TARGET_DEVICES += ubnt_litebeam-m5-xw
75
76 define Device/ubnt_nanobeam-ac
77 $(Device/ubnt-wa)
78 DEVICE_MODEL := NanoBeam AC
79 DEVICE_VARIANT := Gen1
80 DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
81 endef
82 TARGET_DEVICES += ubnt_nanobeam-ac
83
84 define Device/ubnt_nanobeam-ac-gen2
85 $(Device/ubnt-wa)
86 DEVICE_MODEL := NanoBeam AC
87 DEVICE_VARIANT := Gen2
88 DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
89 endef
90 TARGET_DEVICES += ubnt_nanobeam-ac-gen2
91
92 define Device/ubnt_nanobeam-ac-xc
93 $(Device/ubnt-xc)
94 SOC := qca9558
95 DEVICE_MODEL := NanoBeam AC
96 DEVICE_VARIANT := Gen1 (XC)
97 DEVICE_PACKAGES += kmod-ath10k-ct ath10k-firmware-qca988x-ct rssileds
98 endef
99 TARGET_DEVICES += ubnt_nanobeam-ac-xc
100
101 define Device/ubnt_nanostation-ac
102 $(Device/ubnt-wa)
103 DEVICE_MODEL := Nanostation AC
104 DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
105 endef
106 TARGET_DEVICES += ubnt_nanostation-ac
107
108 define Device/ubnt_nanostation-ac-loco
109 $(Device/ubnt-wa)
110 DEVICE_MODEL := Nanostation AC loco
111 DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
112 endef
113 TARGET_DEVICES += ubnt_nanostation-ac-loco
114
115 define Device/ubnt_nanostation-loco-m-xw
116 $(Device/ubnt-xw)
117 DEVICE_MODEL := Nanostation Loco M
118 DEVICE_PACKAGES += rssileds -kmod-usb2
119 DEVICE_ALT0_VENDOR := Ubiquiti
120 DEVICE_ALT0_MODEL := AirGrid M5 HP
121 DEVICE_ALT0_VARIANT := XW
122 DEVICE_ALT1_VENDOR := Ubiquiti
123 DEVICE_ALT1_MODEL := PowerBeam M5 300
124 DEVICE_ALT1_VARIANT := XW
125 DEVICE_ALT2_VENDOR := Ubiquiti
126 DEVICE_ALT2_MODEL := NanoBeam M5
127 DEVICE_ALT2_VARIANT := XW
128 SUPPORTED_DEVICES += loco-m-xw nanostation-m-xw ubnt,nanobeam-m5-xw
129 endef
130 TARGET_DEVICES += ubnt_nanostation-loco-m-xw
131
132 define Device/ubnt_nanostation-m-xw
133 $(Device/ubnt-xw)
134 DEVICE_MODEL := Nanostation M
135 DEVICE_PACKAGES += rssileds
136 SUPPORTED_DEVICES += nanostation-m-xw
137 endef
138 TARGET_DEVICES += ubnt_nanostation-m-xw
139
140 define Device/ubnt_powerbeam-5ac-500
141 $(Device/ubnt-xc)
142 SOC := qca9558
143 DEVICE_MODEL := PowerBeam 5AC
144 DEVICE_VARIANT := 500
145 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
146 endef
147 TARGET_DEVICES += ubnt_powerbeam-5ac-500
148
149 define Device/ubnt_powerbeam-5ac-gen2
150 $(Device/ubnt-wa)
151 DEVICE_MODEL := PowerBeam 5AC
152 DEVICE_VARIANT := Gen2
153 DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
154 endef
155 TARGET_DEVICES += ubnt_powerbeam-5ac-gen2
156
157 define Device/ubnt_powerbeam-m2-xw
158 $(Device/ubnt-xw)
159 DEVICE_MODEL := PowerBeam M2
160 DEVICE_PACKAGES += rssileds
161 SUPPORTED_DEVICES += loco-m-xw
162 endef
163 TARGET_DEVICES += ubnt_powerbeam-m2-xw
164
165 define Device/ubnt_powerbeam-m5-xw
166 $(Device/ubnt-xw)
167 DEVICE_MODEL := PowerBeam M5
168 DEVICE_PACKAGES += rssileds
169 SUPPORTED_DEVICES += loco-m-xw
170 endef
171 TARGET_DEVICES += ubnt_powerbeam-m5-xw
172
173 define Device/ubnt_powerbridge-m
174 $(Device/ubnt-xm)
175 SOC := ar7241
176 DEVICE_MODEL := PowerBridge M
177 DEVICE_PACKAGES += rssileds
178 SUPPORTED_DEVICES += bullet-m
179 endef
180 TARGET_DEVICES += ubnt_powerbridge-m
181
182 define Device/ubnt_rocket-5ac-lite
183 $(Device/ubnt-xc)
184 SOC := qca9558
185 DEVICE_MODEL := Rocket 5AC
186 DEVICE_VARIANT := Lite
187 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
188 endef
189 TARGET_DEVICES += ubnt_rocket-5ac-lite
190
191 define Device/ubnt_rocket-m
192 $(Device/ubnt-xm)
193 SOC := ar7241
194 DEVICE_MODEL := Rocket M
195 DEVICE_PACKAGES += rssileds
196 SUPPORTED_DEVICES += rocket-m
197 endef
198 TARGET_DEVICES += ubnt_rocket-m
199
200 define Device/ubnt_routerstation_common
201 DEVICE_PACKAGES := -kmod-ath9k -wpad-basic-mbedtls -uboot-envtools kmod-usb-ohci \
202 kmod-usb2 fconfig
203 DEVICE_VENDOR := Ubiquiti
204 SOC := ar7161
205 LOADER_TYPE := bin
206 LOADER_FLASH_OFFS := 0x50000
207 COMPILE := loader-$(1).bin
208 COMPILE/loader-$(1).bin := loader-okli-compile | lzma | pad-to 128k
209 IMAGE_SIZE := 16000k
210 IMAGES += factory.bin
211 IMAGE/factory.bin := append-kernel | uImage lzma -M 0x4f4b4c49 | pad-to $$$$(BLOCKSIZE) | \
212 append-rootfs | pad-rootfs | pad-to $$$$(BLOCKSIZE) | \
213 mkubntimage $$$$(KDIR)/loader-$(1).bin | check-size
214 IMAGE/sysupgrade.bin := append-kernel | uImage lzma -M 0x4f4b4c49 | pad-to $$$$(BLOCKSIZE) | \
215 append-rootfs | pad-rootfs | pad-to $$$$(BLOCKSIZE) | check-size | \
216 sysupgrade-tar kernel=$$$$(KDIR)/loader-$(1).bin rootfs=$$$$@ | append-metadata
217 KERNEL := kernel-bin | append-dtb | lzma
218 KERNEL_INITRAMFS := kernel-bin | append-dtb
219 DEVICE_COMPAT_VERSION := 2.0
220 DEVICE_COMPAT_MESSAGE := Partition design has changed compared to older versions (19.07 and 21.02) \
221 due to kernel drivers restrictions. Upgrade via sysupgrade mechanism is one way operation. \
222 Downgrading OpenWrt version will involve usage of TFTP recovery or bootloader command line interface.
223 endef
224
225 define Device/ubnt_routerstation
226 $(Device/ubnt_routerstation_common)
227 DEVICE_MODEL := RouterStation
228 UBNT_BOARD := RS
229 UBNT_TYPE := RSx
230 UBNT_CHIP := ar7100
231 DEVICE_PACKAGES += -swconfig
232 endef
233 TARGET_DEVICES += ubnt_routerstation
234
235 define Device/ubnt_routerstation-pro
236 $(Device/ubnt_routerstation_common)
237 DEVICE_MODEL := RouterStation Pro
238 UBNT_BOARD := RSPRO
239 UBNT_TYPE := RSPRO
240 UBNT_CHIP := ar7100pro
241 endef
242 TARGET_DEVICES += ubnt_routerstation-pro
243
244 define Device/ubnt_uk-ultra
245 $(Device/ubnt_unifiac)
246 DEVICE_MODEL := UniFi Swiss Army Knife Ultra
247 DEVICE_PACKAGES += rssileds -swconfig
248 endef
249 TARGET_DEVICES += ubnt_uk-ultra
250
251 define Device/ubnt_unifi-ap
252 $(Device/ubnt-bz)
253 DEVICE_MODEL := UniFi AP
254 SUPPORTED_DEVICES += unifi ubnt,unifi
255 endef
256 TARGET_DEVICES += ubnt_unifi-ap
257
258 define Device/ubnt_unifi-ap-lr
259 $(Device/ubnt-bz)
260 DEVICE_MODEL := UniFi AP
261 DEVICE_VARIANT := LR
262 SUPPORTED_DEVICES += unifi ubnt,unifi ubnt,unifi-ap
263 endef
264 TARGET_DEVICES += ubnt_unifi-ap-lr
265
266 define Device/ubnt_unifiac-lite
267 $(Device/ubnt_unifiac)
268 DEVICE_MODEL := UniFi AC Lite
269 DEVICE_PACKAGES += -swconfig
270 SUPPORTED_DEVICES += unifiac-lite
271 endef
272 TARGET_DEVICES += ubnt_unifiac-lite
273
274 define Device/ubnt_unifiac-lr
275 $(Device/ubnt_unifiac)
276 DEVICE_MODEL := UniFi AC LR
277 DEVICE_PACKAGES += -swconfig
278 SUPPORTED_DEVICES += unifiac-lite ubnt,unifiac-lite
279 endef
280 TARGET_DEVICES += ubnt_unifiac-lr
281
282 define Device/ubnt_unifiac-mesh
283 $(Device/ubnt_unifiac)
284 DEVICE_MODEL := UniFi AC Mesh
285 DEVICE_PACKAGES += -swconfig
286 SUPPORTED_DEVICES += unifiac-lite
287 endef
288 TARGET_DEVICES += ubnt_unifiac-mesh
289
290 define Device/ubnt_unifiac-mesh-pro
291 $(Device/ubnt_unifiac)
292 DEVICE_MODEL := UniFi AC Mesh Pro
293 SUPPORTED_DEVICES += unifiac-pro
294 endef
295 TARGET_DEVICES += ubnt_unifiac-mesh-pro
296
297 define Device/ubnt_unifiac-pro
298 $(Device/ubnt_unifiac)
299 DEVICE_MODEL := UniFi AC Pro
300 DEVICE_PACKAGES += kmod-usb2
301 SUPPORTED_DEVICES += unifiac-pro
302 endef
303 TARGET_DEVICES += ubnt_unifiac-pro
304
305 define Device/ubnt_unifi-ap-outdoor-plus
306 $(Device/ubnt-bz)
307 $(Device/ubnt-unifi-jffs2)
308 DEVICE_MODEL := UniFi AP Outdoor+
309 SUPPORTED_DEVICES += unifi-outdoor-plus
310 endef
311 TARGET_DEVICES += ubnt_unifi-ap-outdoor-plus
312
313 define Device/ubnt_unifi-ap-pro
314 $(Device/ubnt-unifi-jffs2)
315 SOC := ar9344
316 DEVICE_MODEL := UniFi AP Pro
317 UBNT_CHIP := ar934x
318 SUPPORTED_DEVICES += uap-pro
319 endef
320 TARGET_DEVICES += ubnt_unifi-ap-pro