ath79: add Ubiquiti Rocket M XW as alternate name to Bullet M XW
[openwrt/staging/pepe2k.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_nanobeam-ac
69 $(Device/ubnt-wa)
70 DEVICE_MODEL := NanoBeam AC
71 DEVICE_VARIANT := Gen1
72 DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
73 endef
74 TARGET_DEVICES += ubnt_nanobeam-ac
75
76 define Device/ubnt_nanobeam-ac-gen2
77 $(Device/ubnt-wa)
78 DEVICE_MODEL := NanoBeam AC
79 DEVICE_VARIANT := Gen2
80 DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
81 endef
82 TARGET_DEVICES += ubnt_nanobeam-ac-gen2
83
84 define Device/ubnt_nanobeam-ac-xc
85 $(Device/ubnt-xc)
86 SOC := qca9558
87 DEVICE_MODEL := NanoBeam AC
88 DEVICE_VARIANT := Gen1 (XC)
89 DEVICE_PACKAGES += kmod-ath10k-ct ath10k-firmware-qca988x-ct rssileds
90 endef
91 TARGET_DEVICES += ubnt_nanobeam-ac-xc
92
93 define Device/ubnt_nanobeam-m5-xw
94 $(Device/ubnt-xw)
95 DEVICE_MODEL := NanoBeam M5
96 DEVICE_PACKAGES += rssileds
97 SUPPORTED_DEVICES += loco-m-xw
98 endef
99 TARGET_DEVICES += ubnt_nanobeam-m5-xw
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
119 SUPPORTED_DEVICES += loco-m-xw
120 endef
121 TARGET_DEVICES += ubnt_nanostation-loco-m-xw
122
123 define Device/ubnt_nanostation-m-xw
124 $(Device/ubnt-xw)
125 DEVICE_MODEL := Nanostation M
126 DEVICE_PACKAGES += rssileds
127 SUPPORTED_DEVICES += nanostation-m-xw
128 endef
129 TARGET_DEVICES += ubnt_nanostation-m-xw
130
131 define Device/ubnt_powerbeam-5ac-500
132 $(Device/ubnt-xc)
133 SOC := qca9558
134 DEVICE_MODEL := PowerBeam 5AC
135 DEVICE_VARIANT := 500
136 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
137 endef
138 TARGET_DEVICES += ubnt_powerbeam-5ac-500
139
140 define Device/ubnt_powerbeam-5ac-gen2
141 $(Device/ubnt-wa)
142 DEVICE_MODEL := PowerBeam 5AC
143 DEVICE_VARIANT := Gen2
144 DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
145 endef
146 TARGET_DEVICES += ubnt_powerbeam-5ac-gen2
147
148 define Device/ubnt_powerbeam-m2-xw
149 $(Device/ubnt-xw)
150 DEVICE_MODEL := PowerBeam M2
151 DEVICE_PACKAGES += rssileds
152 SUPPORTED_DEVICES += loco-m-xw
153 endef
154 TARGET_DEVICES += ubnt_powerbeam-m2-xw
155
156 define Device/ubnt_powerbeam-m5-xw
157 $(Device/ubnt-xw)
158 DEVICE_MODEL := PowerBeam M5
159 DEVICE_PACKAGES += rssileds
160 SUPPORTED_DEVICES += loco-m-xw
161 endef
162 TARGET_DEVICES += ubnt_powerbeam-m5-xw
163
164 define Device/ubnt_powerbridge-m
165 $(Device/ubnt-xm)
166 SOC := ar7241
167 DEVICE_MODEL := PowerBridge M
168 DEVICE_PACKAGES += rssileds
169 SUPPORTED_DEVICES += bullet-m
170 endef
171 TARGET_DEVICES += ubnt_powerbridge-m
172
173 define Device/ubnt_rocket-5ac-lite
174 $(Device/ubnt-xc)
175 SOC := qca9558
176 DEVICE_MODEL := Rocket 5AC
177 DEVICE_VARIANT := Lite
178 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
179 endef
180 TARGET_DEVICES += ubnt_rocket-5ac-lite
181
182 define Device/ubnt_rocket-m
183 $(Device/ubnt-xm)
184 SOC := ar7241
185 DEVICE_MODEL := Rocket M
186 DEVICE_PACKAGES += rssileds
187 SUPPORTED_DEVICES += rocket-m
188 endef
189 TARGET_DEVICES += ubnt_rocket-m
190
191 define Device/ubnt_routerstation_common
192 DEVICE_PACKAGES := -kmod-ath9k -wpad-basic-mbedtls -uboot-envtools kmod-usb-ohci \
193 kmod-usb2 fconfig
194 DEVICE_VENDOR := Ubiquiti
195 SOC := ar7161
196 LOADER_TYPE := bin
197 LOADER_FLASH_OFFS := 0x50000
198 COMPILE := loader-$(1).bin
199 COMPILE/loader-$(1).bin := loader-okli-compile | lzma | pad-to 128k
200 IMAGE_SIZE := 16000k
201 IMAGES += factory.bin
202 IMAGE/factory.bin := append-kernel | uImage lzma -M 0x4f4b4c49 | pad-to $$$$(BLOCKSIZE) | \
203 append-rootfs | pad-rootfs | pad-to $$$$(BLOCKSIZE) | \
204 mkubntimage $$$$(KDIR)/loader-$(1).bin | check-size
205 IMAGE/sysupgrade.bin := append-kernel | uImage lzma -M 0x4f4b4c49 | pad-to $$$$(BLOCKSIZE) | \
206 append-rootfs | pad-rootfs | pad-to $$$$(BLOCKSIZE) | check-size | \
207 sysupgrade-tar kernel=$$$$(KDIR)/loader-$(1).bin rootfs=$$$$@ | append-metadata
208 KERNEL := kernel-bin | append-dtb | lzma
209 KERNEL_INITRAMFS := kernel-bin | append-dtb
210 DEVICE_COMPAT_VERSION := 2.0
211 DEVICE_COMPAT_MESSAGE := Partition design has changed compared to older versions (19.07 and 21.02) \
212 due to kernel drivers restrictions. Upgrade via sysupgrade mechanism is one way operation. \
213 Downgrading OpenWrt version will involve usage of TFTP recovery or bootloader command line interface.
214 endef
215
216 define Device/ubnt_routerstation
217 $(Device/ubnt_routerstation_common)
218 DEVICE_MODEL := RouterStation
219 UBNT_BOARD := RS
220 UBNT_TYPE := RSx
221 UBNT_CHIP := ar7100
222 DEVICE_PACKAGES += -swconfig
223 endef
224 TARGET_DEVICES += ubnt_routerstation
225
226 define Device/ubnt_routerstation-pro
227 $(Device/ubnt_routerstation_common)
228 DEVICE_MODEL := RouterStation Pro
229 UBNT_BOARD := RSPRO
230 UBNT_TYPE := RSPRO
231 UBNT_CHIP := ar7100pro
232 endef
233 TARGET_DEVICES += ubnt_routerstation-pro
234
235 define Device/ubnt_uk-ultra
236 $(Device/ubnt_unifiac)
237 DEVICE_MODEL := UniFi Swiss Army Knife Ultra
238 DEVICE_PACKAGES += rssileds -swconfig
239 endef
240 TARGET_DEVICES += ubnt_uk-ultra
241
242 define Device/ubnt_unifi-ap
243 $(Device/ubnt-bz)
244 DEVICE_MODEL := UniFi AP
245 SUPPORTED_DEVICES += unifi ubnt,unifi
246 endef
247 TARGET_DEVICES += ubnt_unifi-ap
248
249 define Device/ubnt_unifi-ap-lr
250 $(Device/ubnt-bz)
251 DEVICE_MODEL := UniFi AP
252 DEVICE_VARIANT := LR
253 SUPPORTED_DEVICES += unifi ubnt,unifi ubnt,unifi-ap
254 endef
255 TARGET_DEVICES += ubnt_unifi-ap-lr
256
257 define Device/ubnt_unifiac-lite
258 $(Device/ubnt_unifiac)
259 DEVICE_MODEL := UniFi AC Lite
260 DEVICE_PACKAGES += -swconfig
261 SUPPORTED_DEVICES += unifiac-lite
262 endef
263 TARGET_DEVICES += ubnt_unifiac-lite
264
265 define Device/ubnt_unifiac-lr
266 $(Device/ubnt_unifiac)
267 DEVICE_MODEL := UniFi AC LR
268 DEVICE_PACKAGES += -swconfig
269 SUPPORTED_DEVICES += unifiac-lite ubnt,unifiac-lite
270 endef
271 TARGET_DEVICES += ubnt_unifiac-lr
272
273 define Device/ubnt_unifiac-mesh
274 $(Device/ubnt_unifiac)
275 DEVICE_MODEL := UniFi AC Mesh
276 DEVICE_PACKAGES += -swconfig
277 SUPPORTED_DEVICES += unifiac-lite
278 endef
279 TARGET_DEVICES += ubnt_unifiac-mesh
280
281 define Device/ubnt_unifiac-mesh-pro
282 $(Device/ubnt_unifiac)
283 DEVICE_MODEL := UniFi AC Mesh Pro
284 SUPPORTED_DEVICES += unifiac-pro
285 endef
286 TARGET_DEVICES += ubnt_unifiac-mesh-pro
287
288 define Device/ubnt_unifiac-pro
289 $(Device/ubnt_unifiac)
290 DEVICE_MODEL := UniFi AC Pro
291 DEVICE_PACKAGES += kmod-usb2
292 SUPPORTED_DEVICES += unifiac-pro
293 endef
294 TARGET_DEVICES += ubnt_unifiac-pro
295
296 define Device/ubnt_unifi-ap-outdoor-plus
297 $(Device/ubnt-bz)
298 $(Device/ubnt-unifi-jffs2)
299 DEVICE_MODEL := UniFi AP Outdoor+
300 SUPPORTED_DEVICES += unifi-outdoor-plus
301 endef
302 TARGET_DEVICES += ubnt_unifi-ap-outdoor-plus
303
304 define Device/ubnt_unifi-ap-pro
305 $(Device/ubnt-unifi-jffs2)
306 SOC := ar9344
307 DEVICE_MODEL := UniFi AP Pro
308 UBNT_CHIP := ar934x
309 SUPPORTED_DEVICES += uap-pro
310 endef
311 TARGET_DEVICES += ubnt_unifi-ap-pro