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
47 TARGET_DEVICES
+= ubnt_edgeswitch-8xp
49 define Device
/ubnt_lap-120
51 DEVICE_MODEL
:= LiteAP ac
(LAP-120
)
52 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
54 TARGET_DEVICES
+= ubnt_lap-120
56 define Device
/ubnt_litebeam-ac-gen2
58 DEVICE_MODEL
:= LiteBeam AC
59 DEVICE_VARIANT
:= Gen2
60 DEVICE_PACKAGES
:= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
62 TARGET_DEVICES
+= ubnt_litebeam-ac-gen2
64 define Device
/ubnt_nanobeam-ac
66 DEVICE_MODEL
:= NanoBeam AC
67 DEVICE_VARIANT
:= Gen1
68 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
70 TARGET_DEVICES
+= ubnt_nanobeam-ac
72 define Device
/ubnt_nanobeam-ac-gen2
74 DEVICE_MODEL
:= NanoBeam AC
75 DEVICE_VARIANT
:= Gen2
76 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
78 TARGET_DEVICES
+= ubnt_nanobeam-ac-gen2
80 define Device
/ubnt_nanobeam-ac-xc
83 DEVICE_MODEL
:= NanoBeam AC
84 DEVICE_VARIANT
:= Gen1
(XC
)
85 DEVICE_PACKAGES
+= kmod-ath10k-ct ath10k-firmware-qca988x-ct rssileds
87 TARGET_DEVICES
+= ubnt_nanobeam-ac-xc
89 define Device
/ubnt_nanobeam-m5-xw
91 DEVICE_MODEL
:= NanoBeam M5
92 DEVICE_PACKAGES
+= rssileds
93 SUPPORTED_DEVICES
+= loco-m-xw
95 TARGET_DEVICES
+= ubnt_nanobeam-m5-xw
97 define Device
/ubnt_nanostation-ac
99 DEVICE_MODEL
:= Nanostation AC
100 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
102 TARGET_DEVICES
+= ubnt_nanostation-ac
104 define Device
/ubnt_nanostation-ac-loco
106 DEVICE_MODEL
:= Nanostation AC loco
107 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
109 TARGET_DEVICES
+= ubnt_nanostation-ac-loco
111 define Device
/ubnt_nanostation-loco-m-xw
113 DEVICE_MODEL
:= Nanostation Loco M
114 DEVICE_PACKAGES
+= rssileds
115 SUPPORTED_DEVICES
+= loco-m-xw
117 TARGET_DEVICES
+= ubnt_nanostation-loco-m-xw
119 define Device
/ubnt_nanostation-m-xw
121 DEVICE_MODEL
:= Nanostation M
122 DEVICE_PACKAGES
+= rssileds
123 SUPPORTED_DEVICES
+= nanostation-m-xw
125 TARGET_DEVICES
+= ubnt_nanostation-m-xw
127 define Device
/ubnt_powerbeam-5ac-500
130 DEVICE_MODEL
:= PowerBeam
5AC
131 DEVICE_VARIANT
:= 500
132 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
134 TARGET_DEVICES
+= ubnt_powerbeam-5ac-500
136 define Device
/ubnt_powerbeam-5ac-gen2
138 DEVICE_MODEL
:= PowerBeam
5AC
139 DEVICE_VARIANT
:= Gen2
140 DEVICE_PACKAGES
:= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
142 TARGET_DEVICES
+= ubnt_powerbeam-5ac-gen2
144 define Device
/ubnt_powerbeam-m2-xw
146 DEVICE_MODEL
:= PowerBeam M2
147 DEVICE_PACKAGES
+= rssileds
148 SUPPORTED_DEVICES
+= loco-m-xw
150 TARGET_DEVICES
+= ubnt_powerbeam-m2-xw
152 define Device
/ubnt_powerbeam-m5-xw
154 DEVICE_MODEL
:= PowerBeam M5
155 DEVICE_PACKAGES
+= rssileds
156 SUPPORTED_DEVICES
+= loco-m-xw
158 TARGET_DEVICES
+= ubnt_powerbeam-m5-xw
160 define Device
/ubnt_rocket-5ac-lite
163 DEVICE_MODEL
:= Rocket
5AC
164 DEVICE_VARIANT
:= Lite
165 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
167 TARGET_DEVICES
+= ubnt_rocket-5ac-lite
169 define Device
/ubnt_routerstation_common
170 DEVICE_PACKAGES
:= -kmod-ath9k
-wpad-basic-wolfssl
-uboot-envtools kmod-usb-ohci \
172 DEVICE_VENDOR
:= Ubiquiti
175 LOADER_FLASH_OFFS
:= 0x50000
176 COMPILE
:= loader-
$(1).bin
177 COMPILE
/loader-
$(1).bin
:= loader-okli-compile | lzma | pad-to
128k
179 IMAGES
+= factory.bin
180 IMAGE
/factory.bin
:= append-kernel | uImage lzma
-M
0x4f4b4c49 | pad-to
$$$$(BLOCKSIZE
) | \
181 append-rootfs | pad-rootfs | pad-to
$$$$(BLOCKSIZE
) | \
182 mkubntimage
$$$$(KDIR
)/loader-
$(1).bin | check-size
183 IMAGE
/sysupgrade.bin
:= append-kernel | uImage lzma
-M
0x4f4b4c49 | pad-to
$$$$(BLOCKSIZE
) | \
184 append-rootfs | pad-rootfs | pad-to
$$$$(BLOCKSIZE
) | check-size | \
185 sysupgrade-tar kernel
=$$$$(KDIR
)/loader-
$(1).bin rootfs
=$$$$@ | append-metadata
186 KERNEL
:= kernel-bin | append-dtb | lzma
187 KERNEL_INITRAMFS
:= kernel-bin | append-dtb
188 DEVICE_COMPAT_VERSION
:= 2.0
189 DEVICE_COMPAT_MESSAGE
:= Partition design has changed compared to older versions
(19.07 and
21.02) \
190 due to kernel drivers restrictions. Upgrade via sysupgrade mechanism is one way operation. \
191 Downgrading OpenWrt version will involve usage of TFTP recovery or bootloader command line interface.
194 define Device
/ubnt_routerstation
195 $(Device
/ubnt_routerstation_common
)
196 DEVICE_MODEL
:= RouterStation
200 DEVICE_PACKAGES
+= -swconfig
202 TARGET_DEVICES
+= ubnt_routerstation
204 define Device
/ubnt_routerstation-pro
205 $(Device
/ubnt_routerstation_common
)
206 DEVICE_MODEL
:= RouterStation Pro
209 UBNT_CHIP
:= ar7100pro
211 TARGET_DEVICES
+= ubnt_routerstation-pro
213 define Device
/ubnt_unifi
215 DEVICE_MODEL
:= UniFi AP
216 SUPPORTED_DEVICES
+= unifi
218 TARGET_DEVICES
+= ubnt_unifi
220 define Device
/ubnt_unifiac
221 DEVICE_VENDOR
:= Ubiquiti
224 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
227 define Device
/ubnt_unifiac-lite
228 $(Device
/ubnt_unifiac
)
229 DEVICE_MODEL
:= UniFi AC Lite
230 DEVICE_PACKAGES
+= -swconfig
231 SUPPORTED_DEVICES
+= unifiac-lite
233 TARGET_DEVICES
+= ubnt_unifiac-lite
235 define Device
/ubnt_unifiac-lr
236 $(Device
/ubnt_unifiac
)
237 DEVICE_MODEL
:= UniFi AC LR
238 DEVICE_PACKAGES
+= -swconfig
239 SUPPORTED_DEVICES
+= unifiac-lite ubnt
,unifiac-lite
241 TARGET_DEVICES
+= ubnt_unifiac-lr
243 define Device
/ubnt_unifiac-mesh
244 $(Device
/ubnt_unifiac
)
245 DEVICE_MODEL
:= UniFi AC Mesh
246 DEVICE_PACKAGES
+= -swconfig
247 SUPPORTED_DEVICES
+= unifiac-lite
249 TARGET_DEVICES
+= ubnt_unifiac-mesh
251 define Device
/ubnt_unifiac-mesh-pro
252 $(Device
/ubnt_unifiac
)
253 DEVICE_MODEL
:= UniFi AC Mesh Pro
254 SUPPORTED_DEVICES
+= unifiac-pro
256 TARGET_DEVICES
+= ubnt_unifiac-mesh-pro
258 define Device
/ubnt_unifiac-pro
259 $(Device
/ubnt_unifiac
)
260 DEVICE_MODEL
:= UniFi AC Pro
261 DEVICE_PACKAGES
+= kmod-usb2
262 SUPPORTED_DEVICES
+= unifiac-pro
264 TARGET_DEVICES
+= ubnt_unifiac-pro
266 define Device
/ubnt_unifi-ap-outdoor-plus
268 $(Device
/ubnt-unifi-jffs2
)
269 DEVICE_MODEL
:= UniFi AP Outdoor
+
270 SUPPORTED_DEVICES
+= unifi-outdoor-plus
272 TARGET_DEVICES
+= ubnt_unifi-ap-outdoor-plus
274 define Device
/ubnt_unifi-ap-pro
275 $(Device
/ubnt-unifi-jffs2
)
277 DEVICE_MODEL
:= UniFi AP Pro
279 SUPPORTED_DEVICES
+= uap-pro
281 TARGET_DEVICES
+= ubnt_unifi-ap-pro