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_ALT0_VENDOR
:= Ubiquiti
32 DEVICE_ALT0_MODEL
:= Rocket M
33 DEVICE_ALT0_VARIANT
:= XW
34 DEVICE_PACKAGES
+= rssileds
35 SUPPORTED_DEVICES
+= bullet-m-xw
37 TARGET_DEVICES
+= ubnt_bullet-m-xw
39 define Device
/ubnt_edgeswitch-5xp
41 DEVICE_MODEL
:= EdgeSwitch
5XP
43 TARGET_DEVICES
+= ubnt_edgeswitch-5xp
45 define Device
/ubnt_edgeswitch-8xp
47 DEVICE_MODEL
:= EdgeSwitch
8XP
48 DEVICE_PACKAGES
+= kmod-switch-bcm53xx-mdio
51 TARGET_DEVICES
+= ubnt_edgeswitch-8xp
53 define Device
/ubnt_lap-120
55 DEVICE_MODEL
:= LiteAP ac
(LAP-120
)
56 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
58 TARGET_DEVICES
+= ubnt_lap-120
60 define Device
/ubnt_litebeam-ac-gen2
62 DEVICE_MODEL
:= LiteBeam AC
63 DEVICE_VARIANT
:= Gen2
64 DEVICE_PACKAGES
:= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
66 TARGET_DEVICES
+= ubnt_litebeam-ac-gen2
68 define Device
/ubnt_litebeam-m5-xw
70 DEVICE_MODEL
:= LiteBeam M5
71 SUPPORTED_DEVICES
+= lbe-m5
72 DEVICE_PACKAGES
:= -kmod-usb2
74 TARGET_DEVICES
+= ubnt_litebeam-m5-xw
76 define Device
/ubnt_nanobeam-ac
78 DEVICE_MODEL
:= NanoBeam AC
79 DEVICE_VARIANT
:= Gen1
80 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
82 TARGET_DEVICES
+= ubnt_nanobeam-ac
84 define Device
/ubnt_nanobeam-ac-gen2
86 DEVICE_MODEL
:= NanoBeam AC
87 DEVICE_VARIANT
:= Gen2
88 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
90 TARGET_DEVICES
+= ubnt_nanobeam-ac-gen2
92 define Device
/ubnt_nanobeam-ac-xc
95 DEVICE_MODEL
:= NanoBeam AC
96 DEVICE_VARIANT
:= Gen1
(XC
)
97 DEVICE_PACKAGES
+= kmod-ath10k-ct ath10k-firmware-qca988x-ct rssileds
99 TARGET_DEVICES
+= ubnt_nanobeam-ac-xc
101 define Device
/ubnt_nanostation-ac
103 DEVICE_MODEL
:= Nanostation AC
104 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
106 TARGET_DEVICES
+= ubnt_nanostation-ac
108 define Device
/ubnt_nanostation-ac-loco
110 DEVICE_MODEL
:= Nanostation AC loco
111 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
113 TARGET_DEVICES
+= ubnt_nanostation-ac-loco
115 define Device
/ubnt_nanostation-loco-m-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
130 TARGET_DEVICES
+= ubnt_nanostation-loco-m-xw
132 define Device
/ubnt_nanostation-m-xw
134 DEVICE_MODEL
:= Nanostation M
135 DEVICE_PACKAGES
+= rssileds
136 SUPPORTED_DEVICES
+= nanostation-m-xw
138 TARGET_DEVICES
+= ubnt_nanostation-m-xw
140 define Device
/ubnt_powerbeam-5ac-500
143 DEVICE_MODEL
:= PowerBeam
5AC
144 DEVICE_VARIANT
:= 500
145 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
147 TARGET_DEVICES
+= ubnt_powerbeam-5ac-500
149 define Device
/ubnt_powerbeam-5ac-gen2
151 DEVICE_MODEL
:= PowerBeam
5AC
152 DEVICE_VARIANT
:= Gen2
153 DEVICE_PACKAGES
:= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
155 TARGET_DEVICES
+= ubnt_powerbeam-5ac-gen2
157 define Device
/ubnt_powerbeam-m2-xw
159 DEVICE_MODEL
:= PowerBeam M2
160 DEVICE_PACKAGES
+= rssileds
161 SUPPORTED_DEVICES
+= loco-m-xw
163 TARGET_DEVICES
+= ubnt_powerbeam-m2-xw
165 define Device
/ubnt_powerbeam-m5-xw
167 DEVICE_MODEL
:= PowerBeam M5
168 DEVICE_PACKAGES
+= rssileds
169 SUPPORTED_DEVICES
+= loco-m-xw
171 TARGET_DEVICES
+= ubnt_powerbeam-m5-xw
173 define Device
/ubnt_powerbridge-m
176 DEVICE_MODEL
:= PowerBridge M
177 DEVICE_PACKAGES
+= rssileds
178 SUPPORTED_DEVICES
+= bullet-m
180 TARGET_DEVICES
+= ubnt_powerbridge-m
182 define Device
/ubnt_rocket-5ac-lite
185 DEVICE_MODEL
:= Rocket
5AC
186 DEVICE_VARIANT
:= Lite
187 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
189 TARGET_DEVICES
+= ubnt_rocket-5ac-lite
191 define Device
/ubnt_rocket-m
194 DEVICE_MODEL
:= Rocket M
195 DEVICE_PACKAGES
+= rssileds
196 SUPPORTED_DEVICES
+= rocket-m
198 TARGET_DEVICES
+= ubnt_rocket-m
200 define Device
/ubnt_routerstation_common
201 DEVICE_PACKAGES
:= -kmod-ath9k
-wpad-basic-mbedtls
-uboot-envtools kmod-usb-ohci \
203 DEVICE_VENDOR
:= Ubiquiti
206 LOADER_FLASH_OFFS
:= 0x50000
207 COMPILE
:= loader-
$(1).bin
208 COMPILE
/loader-
$(1).bin
:= loader-okli-compile | lzma | pad-to
128k
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.
225 define Device
/ubnt_routerstation
226 $(Device
/ubnt_routerstation_common
)
227 DEVICE_MODEL
:= RouterStation
231 DEVICE_PACKAGES
+= -swconfig
233 TARGET_DEVICES
+= ubnt_routerstation
235 define Device
/ubnt_routerstation-pro
236 $(Device
/ubnt_routerstation_common
)
237 DEVICE_MODEL
:= RouterStation Pro
240 UBNT_CHIP
:= ar7100pro
242 TARGET_DEVICES
+= ubnt_routerstation-pro
244 define Device
/ubnt_uk-ultra
245 $(Device
/ubnt_unifiac
)
246 DEVICE_MODEL
:= UniFi Swiss Army Knife Ultra
247 DEVICE_PACKAGES
+= rssileds
-swconfig
249 TARGET_DEVICES
+= ubnt_uk-ultra
251 define Device
/ubnt_unifi-ap
253 DEVICE_MODEL
:= UniFi AP
254 SUPPORTED_DEVICES
+= unifi ubnt
,unifi
256 TARGET_DEVICES
+= ubnt_unifi-ap
258 define Device
/ubnt_unifi-ap-lr
260 DEVICE_MODEL
:= UniFi AP
262 SUPPORTED_DEVICES
+= unifi ubnt
,unifi ubnt
,unifi-ap
264 TARGET_DEVICES
+= ubnt_unifi-ap-lr
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
272 TARGET_DEVICES
+= ubnt_unifiac-lite
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
280 TARGET_DEVICES
+= ubnt_unifiac-lr
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
288 TARGET_DEVICES
+= ubnt_unifiac-mesh
290 define Device
/ubnt_unifiac-mesh-pro
291 $(Device
/ubnt_unifiac
)
292 DEVICE_MODEL
:= UniFi AC Mesh Pro
293 SUPPORTED_DEVICES
+= unifiac-pro
295 TARGET_DEVICES
+= ubnt_unifiac-mesh-pro
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
303 TARGET_DEVICES
+= ubnt_unifiac-pro
305 define Device
/ubnt_unifi-ap-outdoor-plus
307 $(Device
/ubnt-unifi-jffs2
)
308 DEVICE_MODEL
:= UniFi AP Outdoor
+
309 SUPPORTED_DEVICES
+= unifi-outdoor-plus
311 TARGET_DEVICES
+= ubnt_unifi-ap-outdoor-plus
313 define Device
/ubnt_unifi-ap-pro
314 $(Device
/ubnt-unifi-jffs2
)
316 DEVICE_MODEL
:= UniFi AP Pro
318 SUPPORTED_DEVICES
+= uap-pro
320 TARGET_DEVICES
+= ubnt_unifi-ap-pro