1 include .
/common-ubnt.mk
3 define Device
/ubnt_aircube-ac
6 DEVICE_MODEL
:= airCube AC
8 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
10 TARGET_DEVICES
+= ubnt_aircube-ac
12 define Device
/ubnt_aircube-isp
15 DEVICE_MODEL
:= airCube ISP
17 SUPPORTED_DEVICES
+= ubnt
,acb-isp
19 TARGET_DEVICES
+= ubnt_aircube-isp
21 define Device
/ubnt_bullet-ac
23 DEVICE_MODEL
:= Bullet AC
24 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
26 TARGET_DEVICES
+= ubnt_bullet-ac
28 define Device
/ubnt_bullet-m-xw
30 DEVICE_MODEL
:= Bullet M
31 DEVICE_PACKAGES
+= rssileds
32 SUPPORTED_DEVICES
+= bullet-m-xw
34 TARGET_DEVICES
+= ubnt_bullet-m-xw
36 define Device
/ubnt_edgeswitch-5xp
38 DEVICE_MODEL
:= EdgeSwitch
5XP
40 TARGET_DEVICES
+= ubnt_edgeswitch-5xp
42 define Device
/ubnt_edgeswitch-8xp
44 DEVICE_MODEL
:= EdgeSwitch
8XP
45 DEVICE_PACKAGES
+= kmod-switch-bcm53xx-mdio
48 TARGET_DEVICES
+= ubnt_edgeswitch-8xp
50 define Device
/ubnt_lap-120
52 DEVICE_MODEL
:= LiteAP ac
(LAP-120
)
53 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
55 TARGET_DEVICES
+= ubnt_lap-120
57 define Device
/ubnt_litebeam-ac-gen2
59 DEVICE_MODEL
:= LiteBeam AC
60 DEVICE_VARIANT
:= Gen2
61 DEVICE_PACKAGES
:= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
63 TARGET_DEVICES
+= ubnt_litebeam-ac-gen2
65 define Device
/ubnt_nanobeam-ac
67 DEVICE_MODEL
:= NanoBeam AC
68 DEVICE_VARIANT
:= Gen1
69 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
71 TARGET_DEVICES
+= ubnt_nanobeam-ac
73 define Device
/ubnt_nanobeam-ac-gen2
75 DEVICE_MODEL
:= NanoBeam AC
76 DEVICE_VARIANT
:= Gen2
77 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
79 TARGET_DEVICES
+= ubnt_nanobeam-ac-gen2
81 define Device
/ubnt_nanobeam-ac-xc
84 DEVICE_MODEL
:= NanoBeam AC
85 DEVICE_VARIANT
:= Gen1
(XC
)
86 DEVICE_PACKAGES
+= kmod-ath10k-ct ath10k-firmware-qca988x-ct rssileds
88 TARGET_DEVICES
+= ubnt_nanobeam-ac-xc
90 define Device
/ubnt_nanobeam-m5-xw
92 DEVICE_MODEL
:= NanoBeam M5
93 DEVICE_PACKAGES
+= rssileds
94 SUPPORTED_DEVICES
+= loco-m-xw
96 TARGET_DEVICES
+= ubnt_nanobeam-m5-xw
98 define Device
/ubnt_nanostation-ac
100 DEVICE_MODEL
:= Nanostation AC
101 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
103 TARGET_DEVICES
+= ubnt_nanostation-ac
105 define Device
/ubnt_nanostation-ac-loco
107 DEVICE_MODEL
:= Nanostation AC loco
108 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
110 TARGET_DEVICES
+= ubnt_nanostation-ac-loco
112 define Device
/ubnt_nanostation-loco-m-xw
114 DEVICE_MODEL
:= Nanostation Loco M
115 DEVICE_PACKAGES
+= rssileds
116 SUPPORTED_DEVICES
+= loco-m-xw
118 TARGET_DEVICES
+= ubnt_nanostation-loco-m-xw
120 define Device
/ubnt_nanostation-m-xw
122 DEVICE_MODEL
:= Nanostation M
123 DEVICE_PACKAGES
+= rssileds
124 SUPPORTED_DEVICES
+= nanostation-m-xw
126 TARGET_DEVICES
+= ubnt_nanostation-m-xw
128 define Device
/ubnt_powerbeam-5ac-500
131 DEVICE_MODEL
:= PowerBeam
5AC
132 DEVICE_VARIANT
:= 500
133 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
135 TARGET_DEVICES
+= ubnt_powerbeam-5ac-500
137 define Device
/ubnt_powerbeam-5ac-gen2
139 DEVICE_MODEL
:= PowerBeam
5AC
140 DEVICE_VARIANT
:= Gen2
141 DEVICE_PACKAGES
:= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
143 TARGET_DEVICES
+= ubnt_powerbeam-5ac-gen2
145 define Device
/ubnt_powerbeam-m2-xw
147 DEVICE_MODEL
:= PowerBeam M2
148 DEVICE_PACKAGES
+= rssileds
149 SUPPORTED_DEVICES
+= loco-m-xw
151 TARGET_DEVICES
+= ubnt_powerbeam-m2-xw
153 define Device
/ubnt_powerbeam-m5-xw
155 DEVICE_MODEL
:= PowerBeam M5
156 DEVICE_PACKAGES
+= rssileds
157 SUPPORTED_DEVICES
+= loco-m-xw
159 TARGET_DEVICES
+= ubnt_powerbeam-m5-xw
161 define Device
/ubnt_powerbridge-m
164 DEVICE_MODEL
:= PowerBridge M
165 DEVICE_PACKAGES
+= rssileds
166 SUPPORTED_DEVICES
+= bullet-m
168 TARGET_DEVICES
+= ubnt_powerbridge-m
170 define Device
/ubnt_rocket-5ac-lite
173 DEVICE_MODEL
:= Rocket
5AC
174 DEVICE_VARIANT
:= Lite
175 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
177 TARGET_DEVICES
+= ubnt_rocket-5ac-lite
179 define Device
/ubnt_rocket-m
182 DEVICE_MODEL
:= Rocket M
183 DEVICE_PACKAGES
+= rssileds
184 SUPPORTED_DEVICES
+= rocket-m
186 TARGET_DEVICES
+= ubnt_rocket-m
188 define Device
/ubnt_routerstation_common
189 DEVICE_PACKAGES
:= -kmod-ath9k
-wpad-basic-mbedtls
-uboot-envtools kmod-usb-ohci \
191 DEVICE_VENDOR
:= Ubiquiti
194 LOADER_FLASH_OFFS
:= 0x50000
195 COMPILE
:= loader-
$(1).bin
196 COMPILE
/loader-
$(1).bin
:= loader-okli-compile | lzma | pad-to
128k
198 IMAGES
+= factory.bin
199 IMAGE
/factory.bin
:= append-kernel | uImage lzma
-M
0x4f4b4c49 | pad-to
$$$$(BLOCKSIZE
) | \
200 append-rootfs | pad-rootfs | pad-to
$$$$(BLOCKSIZE
) | \
201 mkubntimage
$$$$(KDIR
)/loader-
$(1).bin | check-size
202 IMAGE
/sysupgrade.bin
:= append-kernel | uImage lzma
-M
0x4f4b4c49 | pad-to
$$$$(BLOCKSIZE
) | \
203 append-rootfs | pad-rootfs | pad-to
$$$$(BLOCKSIZE
) | check-size | \
204 sysupgrade-tar kernel
=$$$$(KDIR
)/loader-
$(1).bin rootfs
=$$$$@ | append-metadata
205 KERNEL
:= kernel-bin | append-dtb | lzma
206 KERNEL_INITRAMFS
:= kernel-bin | append-dtb
207 DEVICE_COMPAT_VERSION
:= 2.0
208 DEVICE_COMPAT_MESSAGE
:= Partition design has changed compared to older versions
(19.07 and
21.02) \
209 due to kernel drivers restrictions. Upgrade via sysupgrade mechanism is one way operation. \
210 Downgrading OpenWrt version will involve usage of TFTP recovery or bootloader command line interface.
213 define Device
/ubnt_routerstation
214 $(Device
/ubnt_routerstation_common
)
215 DEVICE_MODEL
:= RouterStation
219 DEVICE_PACKAGES
+= -swconfig
221 TARGET_DEVICES
+= ubnt_routerstation
223 define Device
/ubnt_routerstation-pro
224 $(Device
/ubnt_routerstation_common
)
225 DEVICE_MODEL
:= RouterStation Pro
228 UBNT_CHIP
:= ar7100pro
230 TARGET_DEVICES
+= ubnt_routerstation-pro
232 define Device
/ubnt_unifi-ap
234 DEVICE_MODEL
:= UniFi AP
235 SUPPORTED_DEVICES
+= unifi ubnt
,unifi
237 TARGET_DEVICES
+= ubnt_unifi-ap
239 define Device
/ubnt_unifi-ap-lr
241 DEVICE_MODEL
:= UniFi AP
243 SUPPORTED_DEVICES
+= unifi ubnt
,unifi ubnt
,unifi-ap
245 TARGET_DEVICES
+= ubnt_unifi-ap-lr
247 define Device
/ubnt_unifiac
248 DEVICE_VENDOR
:= Ubiquiti
251 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
254 define Device
/ubnt_unifiac-lite
255 $(Device
/ubnt_unifiac
)
256 DEVICE_MODEL
:= UniFi AC Lite
257 DEVICE_PACKAGES
+= -swconfig
258 SUPPORTED_DEVICES
+= unifiac-lite
260 TARGET_DEVICES
+= ubnt_unifiac-lite
262 define Device
/ubnt_unifiac-lr
263 $(Device
/ubnt_unifiac
)
264 DEVICE_MODEL
:= UniFi AC LR
265 DEVICE_PACKAGES
+= -swconfig
266 SUPPORTED_DEVICES
+= unifiac-lite ubnt
,unifiac-lite
268 TARGET_DEVICES
+= ubnt_unifiac-lr
270 define Device
/ubnt_unifiac-mesh
271 $(Device
/ubnt_unifiac
)
272 DEVICE_MODEL
:= UniFi AC Mesh
273 DEVICE_PACKAGES
+= -swconfig
274 SUPPORTED_DEVICES
+= unifiac-lite
276 TARGET_DEVICES
+= ubnt_unifiac-mesh
278 define Device
/ubnt_unifiac-mesh-pro
279 $(Device
/ubnt_unifiac
)
280 DEVICE_MODEL
:= UniFi AC Mesh Pro
281 SUPPORTED_DEVICES
+= unifiac-pro
283 TARGET_DEVICES
+= ubnt_unifiac-mesh-pro
285 define Device
/ubnt_unifiac-pro
286 $(Device
/ubnt_unifiac
)
287 DEVICE_MODEL
:= UniFi AC Pro
288 DEVICE_PACKAGES
+= kmod-usb2
289 SUPPORTED_DEVICES
+= unifiac-pro
291 TARGET_DEVICES
+= ubnt_unifiac-pro
293 define Device
/ubnt_unifi-ap-outdoor-plus
295 $(Device
/ubnt-unifi-jffs2
)
296 DEVICE_MODEL
:= UniFi AP Outdoor
+
297 SUPPORTED_DEVICES
+= unifi-outdoor-plus
299 TARGET_DEVICES
+= ubnt_unifi-ap-outdoor-plus
301 define Device
/ubnt_unifi-ap-pro
302 $(Device
/ubnt-unifi-jffs2
)
304 DEVICE_MODEL
:= UniFi AP Pro
306 SUPPORTED_DEVICES
+= uap-pro
308 TARGET_DEVICES
+= ubnt_unifi-ap-pro