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_rocket-5ac-lite
164 DEVICE_MODEL
:= Rocket
5AC
165 DEVICE_VARIANT
:= Lite
166 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
168 TARGET_DEVICES
+= ubnt_rocket-5ac-lite
170 define Device
/ubnt_routerstation_common
171 DEVICE_PACKAGES
:= -kmod-ath9k
-wpad-basic-wolfssl
-uboot-envtools kmod-usb-ohci \
173 DEVICE_VENDOR
:= Ubiquiti
176 LOADER_FLASH_OFFS
:= 0x50000
177 COMPILE
:= loader-
$(1).bin
178 COMPILE
/loader-
$(1).bin
:= loader-okli-compile | lzma | pad-to
128k
180 IMAGES
+= factory.bin
181 IMAGE
/factory.bin
:= append-kernel | uImage lzma
-M
0x4f4b4c49 | pad-to
$$$$(BLOCKSIZE
) | \
182 append-rootfs | pad-rootfs | pad-to
$$$$(BLOCKSIZE
) | \
183 mkubntimage
$$$$(KDIR
)/loader-
$(1).bin | check-size
184 IMAGE
/sysupgrade.bin
:= append-kernel | uImage lzma
-M
0x4f4b4c49 | pad-to
$$$$(BLOCKSIZE
) | \
185 append-rootfs | pad-rootfs | pad-to
$$$$(BLOCKSIZE
) | check-size | \
186 sysupgrade-tar kernel
=$$$$(KDIR
)/loader-
$(1).bin rootfs
=$$$$@ | append-metadata
187 KERNEL
:= kernel-bin | append-dtb | lzma
188 KERNEL_INITRAMFS
:= kernel-bin | append-dtb
189 DEVICE_COMPAT_VERSION
:= 2.0
190 DEVICE_COMPAT_MESSAGE
:= Partition design has changed compared to older versions
(19.07 and
21.02) \
191 due to kernel drivers restrictions. Upgrade via sysupgrade mechanism is one way operation. \
192 Downgrading OpenWrt version will involve usage of TFTP recovery or bootloader command line interface.
195 define Device
/ubnt_routerstation
196 $(Device
/ubnt_routerstation_common
)
197 DEVICE_MODEL
:= RouterStation
201 DEVICE_PACKAGES
+= -swconfig
203 TARGET_DEVICES
+= ubnt_routerstation
205 define Device
/ubnt_routerstation-pro
206 $(Device
/ubnt_routerstation_common
)
207 DEVICE_MODEL
:= RouterStation Pro
210 UBNT_CHIP
:= ar7100pro
212 TARGET_DEVICES
+= ubnt_routerstation-pro
214 define Device
/ubnt_unifi-ap
216 DEVICE_MODEL
:= UniFi AP
217 SUPPORTED_DEVICES
+= unifi ubnt
,unifi
219 TARGET_DEVICES
+= ubnt_unifi-ap
221 define Device
/ubnt_unifi-ap-lr
223 DEVICE_MODEL
:= UniFi AP
225 SUPPORTED_DEVICES
+= unifi ubnt
,unifi ubnt
,unifi-ap
227 TARGET_DEVICES
+= ubnt_unifi-ap-lr
229 define Device
/ubnt_unifiac
230 DEVICE_VENDOR
:= Ubiquiti
233 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
236 define Device
/ubnt_unifiac-lite
237 $(Device
/ubnt_unifiac
)
238 DEVICE_MODEL
:= UniFi AC Lite
239 DEVICE_PACKAGES
+= -swconfig
240 SUPPORTED_DEVICES
+= unifiac-lite
242 TARGET_DEVICES
+= ubnt_unifiac-lite
244 define Device
/ubnt_unifiac-lr
245 $(Device
/ubnt_unifiac
)
246 DEVICE_MODEL
:= UniFi AC LR
247 DEVICE_PACKAGES
+= -swconfig
248 SUPPORTED_DEVICES
+= unifiac-lite ubnt
,unifiac-lite
250 TARGET_DEVICES
+= ubnt_unifiac-lr
252 define Device
/ubnt_unifiac-mesh
253 $(Device
/ubnt_unifiac
)
254 DEVICE_MODEL
:= UniFi AC Mesh
255 DEVICE_PACKAGES
+= -swconfig
256 SUPPORTED_DEVICES
+= unifiac-lite
258 TARGET_DEVICES
+= ubnt_unifiac-mesh
260 define Device
/ubnt_unifiac-mesh-pro
261 $(Device
/ubnt_unifiac
)
262 DEVICE_MODEL
:= UniFi AC Mesh Pro
263 SUPPORTED_DEVICES
+= unifiac-pro
265 TARGET_DEVICES
+= ubnt_unifiac-mesh-pro
267 define Device
/ubnt_unifiac-pro
268 $(Device
/ubnt_unifiac
)
269 DEVICE_MODEL
:= UniFi AC Pro
270 DEVICE_PACKAGES
+= kmod-usb2
271 SUPPORTED_DEVICES
+= unifiac-pro
273 TARGET_DEVICES
+= ubnt_unifiac-pro
275 define Device
/ubnt_unifi-ap-outdoor-plus
277 $(Device
/ubnt-unifi-jffs2
)
278 DEVICE_MODEL
:= UniFi AP Outdoor
+
279 SUPPORTED_DEVICES
+= unifi-outdoor-plus
281 TARGET_DEVICES
+= ubnt_unifi-ap-outdoor-plus
283 define Device
/ubnt_unifi-ap-pro
284 $(Device
/ubnt-unifi-jffs2
)
286 DEVICE_MODEL
:= UniFi AP Pro
288 SUPPORTED_DEVICES
+= uap-pro
290 TARGET_DEVICES
+= ubnt_unifi-ap-pro