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_litebeam-m5-xw
67 DEVICE_MODEL
:= LiteBeam M5
68 SUPPORTED_DEVICES
+= lbe-m5
69 DEVICE_PACKAGES
:= -kmod-usb2
71 TARGET_DEVICES
+= ubnt_litebeam-m5-xw
73 define Device
/ubnt_nanobeam-ac
75 DEVICE_MODEL
:= NanoBeam AC
76 DEVICE_VARIANT
:= Gen1
77 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
79 TARGET_DEVICES
+= ubnt_nanobeam-ac
81 define Device
/ubnt_nanobeam-ac-gen2
83 DEVICE_MODEL
:= NanoBeam AC
84 DEVICE_VARIANT
:= Gen2
85 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
87 TARGET_DEVICES
+= ubnt_nanobeam-ac-gen2
89 define Device
/ubnt_nanobeam-ac-xc
92 DEVICE_MODEL
:= NanoBeam AC
93 DEVICE_VARIANT
:= Gen1
(XC
)
94 DEVICE_PACKAGES
+= kmod-ath10k-ct ath10k-firmware-qca988x-ct rssileds
96 TARGET_DEVICES
+= ubnt_nanobeam-ac-xc
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
-kmod-usb2
116 DEVICE_ALT0_VENDOR
:= Ubiquiti
117 DEVICE_ALT0_MODEL
:= AirGrid M5 HP
118 DEVICE_ALT0_VARIANT
:= XW
119 DEVICE_ALT1_VENDOR
:= Ubiquiti
120 DEVICE_ALT1_MODEL
:= PowerBeam M5
300
121 DEVICE_ALT1_VARIANT
:= XW
122 DEVICE_ALT2_VENDOR
:= Ubiquiti
123 DEVICE_ALT2_MODEL
:= NanoBeam M5
124 DEVICE_ALT2_VARIANT
:= XW
125 SUPPORTED_DEVICES
+= loco-m-xw nanostation-m-xw ubnt
,nanobeam-m5-xw
127 TARGET_DEVICES
+= ubnt_nanostation-loco-m-xw
129 define Device
/ubnt_nanostation-m-xw
131 DEVICE_MODEL
:= Nanostation M
132 DEVICE_PACKAGES
+= rssileds
133 SUPPORTED_DEVICES
+= nanostation-m-xw
135 TARGET_DEVICES
+= ubnt_nanostation-m-xw
137 define Device
/ubnt_powerbeam-5ac-500
140 DEVICE_MODEL
:= PowerBeam
5AC
141 DEVICE_VARIANT
:= 500
142 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
144 TARGET_DEVICES
+= ubnt_powerbeam-5ac-500
146 define Device
/ubnt_powerbeam-5ac-gen2
148 DEVICE_MODEL
:= PowerBeam
5AC
149 DEVICE_VARIANT
:= Gen2
150 DEVICE_PACKAGES
:= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
152 TARGET_DEVICES
+= ubnt_powerbeam-5ac-gen2
154 define Device
/ubnt_powerbeam-m2-xw
156 DEVICE_MODEL
:= PowerBeam M2
157 DEVICE_PACKAGES
+= rssileds
158 SUPPORTED_DEVICES
+= loco-m-xw
160 TARGET_DEVICES
+= ubnt_powerbeam-m2-xw
162 define Device
/ubnt_powerbeam-m5-xw
164 DEVICE_MODEL
:= PowerBeam M5
165 DEVICE_PACKAGES
+= rssileds
166 SUPPORTED_DEVICES
+= loco-m-xw
168 TARGET_DEVICES
+= ubnt_powerbeam-m5-xw
170 define Device
/ubnt_powerbridge-m
173 DEVICE_MODEL
:= PowerBridge M
174 DEVICE_PACKAGES
+= rssileds
175 SUPPORTED_DEVICES
+= bullet-m
177 TARGET_DEVICES
+= ubnt_powerbridge-m
179 define Device
/ubnt_rocket-5ac-lite
182 DEVICE_MODEL
:= Rocket
5AC
183 DEVICE_VARIANT
:= Lite
184 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
186 TARGET_DEVICES
+= ubnt_rocket-5ac-lite
188 define Device
/ubnt_rocket-m
191 DEVICE_MODEL
:= Rocket M
192 DEVICE_PACKAGES
+= rssileds
193 SUPPORTED_DEVICES
+= rocket-m
195 TARGET_DEVICES
+= ubnt_rocket-m
197 define Device
/ubnt_routerstation_common
198 DEVICE_PACKAGES
:= -kmod-ath9k
-wpad-basic-mbedtls
-uboot-envtools kmod-usb-ohci \
200 DEVICE_VENDOR
:= Ubiquiti
203 LOADER_FLASH_OFFS
:= 0x50000
204 COMPILE
:= loader-
$(1).bin
205 COMPILE
/loader-
$(1).bin
:= loader-okli-compile | lzma | pad-to
128k
207 IMAGES
+= factory.bin
208 IMAGE
/factory.bin
:= append-kernel | uImage lzma
-M
0x4f4b4c49 | pad-to
$$$$(BLOCKSIZE
) | \
209 append-rootfs | pad-rootfs | pad-to
$$$$(BLOCKSIZE
) | \
210 mkubntimage
$$$$(KDIR
)/loader-
$(1).bin | check-size
211 IMAGE
/sysupgrade.bin
:= append-kernel | uImage lzma
-M
0x4f4b4c49 | pad-to
$$$$(BLOCKSIZE
) | \
212 append-rootfs | pad-rootfs | pad-to
$$$$(BLOCKSIZE
) | check-size | \
213 sysupgrade-tar kernel
=$$$$(KDIR
)/loader-
$(1).bin rootfs
=$$$$@ | append-metadata
214 KERNEL
:= kernel-bin | append-dtb | lzma
215 KERNEL_INITRAMFS
:= kernel-bin | append-dtb
216 DEVICE_COMPAT_VERSION
:= 2.0
217 DEVICE_COMPAT_MESSAGE
:= Partition design has changed compared to older versions
(19.07 and
21.02) \
218 due to kernel drivers restrictions. Upgrade via sysupgrade mechanism is one way operation. \
219 Downgrading OpenWrt version will involve usage of TFTP recovery or bootloader command line interface.
222 define Device
/ubnt_routerstation
223 $(Device
/ubnt_routerstation_common
)
224 DEVICE_MODEL
:= RouterStation
228 DEVICE_PACKAGES
+= -swconfig
230 TARGET_DEVICES
+= ubnt_routerstation
232 define Device
/ubnt_routerstation-pro
233 $(Device
/ubnt_routerstation_common
)
234 DEVICE_MODEL
:= RouterStation Pro
237 UBNT_CHIP
:= ar7100pro
239 TARGET_DEVICES
+= ubnt_routerstation-pro
241 define Device
/ubnt_uk-ultra
242 $(Device
/ubnt_unifiac
)
243 DEVICE_MODEL
:= UniFi Swiss Army Knife Ultra
244 DEVICE_PACKAGES
+= rssileds
-swconfig
246 TARGET_DEVICES
+= ubnt_uk-ultra
248 define Device
/ubnt_unifi-ap
250 DEVICE_MODEL
:= UniFi AP
251 SUPPORTED_DEVICES
+= unifi ubnt
,unifi
253 TARGET_DEVICES
+= ubnt_unifi-ap
255 define Device
/ubnt_unifi-ap-lr
257 DEVICE_MODEL
:= UniFi AP
259 SUPPORTED_DEVICES
+= unifi ubnt
,unifi ubnt
,unifi-ap
261 TARGET_DEVICES
+= ubnt_unifi-ap-lr
263 define Device
/ubnt_unifiac-lite
264 $(Device
/ubnt_unifiac
)
265 DEVICE_MODEL
:= UniFi AC Lite
266 DEVICE_PACKAGES
+= -swconfig
267 SUPPORTED_DEVICES
+= unifiac-lite
269 TARGET_DEVICES
+= ubnt_unifiac-lite
271 define Device
/ubnt_unifiac-lr
272 $(Device
/ubnt_unifiac
)
273 DEVICE_MODEL
:= UniFi AC LR
274 DEVICE_PACKAGES
+= -swconfig
275 SUPPORTED_DEVICES
+= unifiac-lite ubnt
,unifiac-lite
277 TARGET_DEVICES
+= ubnt_unifiac-lr
279 define Device
/ubnt_unifiac-mesh
280 $(Device
/ubnt_unifiac
)
281 DEVICE_MODEL
:= UniFi AC Mesh
282 DEVICE_PACKAGES
+= -swconfig
283 SUPPORTED_DEVICES
+= unifiac-lite
285 TARGET_DEVICES
+= ubnt_unifiac-mesh
287 define Device
/ubnt_unifiac-mesh-pro
288 $(Device
/ubnt_unifiac
)
289 DEVICE_MODEL
:= UniFi AC Mesh Pro
290 SUPPORTED_DEVICES
+= unifiac-pro
292 TARGET_DEVICES
+= ubnt_unifiac-mesh-pro
294 define Device
/ubnt_unifiac-pro
295 $(Device
/ubnt_unifiac
)
296 DEVICE_MODEL
:= UniFi AC Pro
297 DEVICE_PACKAGES
+= kmod-usb2
298 SUPPORTED_DEVICES
+= unifiac-pro
300 TARGET_DEVICES
+= ubnt_unifiac-pro
302 define Device
/ubnt_unifi-ap-outdoor-plus
304 $(Device
/ubnt-unifi-jffs2
)
305 DEVICE_MODEL
:= UniFi AP Outdoor
+
306 SUPPORTED_DEVICES
+= unifi-outdoor-plus
308 TARGET_DEVICES
+= ubnt_unifi-ap-outdoor-plus
310 define Device
/ubnt_unifi-ap-pro
311 $(Device
/ubnt-unifi-jffs2
)
313 DEVICE_MODEL
:= UniFi AP Pro
315 SUPPORTED_DEVICES
+= uap-pro
317 TARGET_DEVICES
+= ubnt_unifi-ap-pro