1 DEVICE_VARS
+= UBNT_BOARD UBNT_CHIP UBNT_TYPE UBNT_VERSION UBNT_REVISION
3 # On M (XW) devices the U-Boot as of version 1.1.4-s1039 doesn't like
4 # VERSION_DIST being on the place of major(?) version number, so we need to
6 UBNT_REVISION
:= $(VERSION_DIST
)-$(REVISION
)
8 # mkubntimage is using the kernel image direct
9 # routerboard creates partitions out of the ubnt header
10 define Build
/mkubntimage
11 -$(STAGING_DIR_HOST
)/bin
/mkfwimage
-B
$(UBNT_BOARD
) \
12 -v
$(UBNT_TYPE
).
$(UBNT_CHIP
).v6.0
.0-$(VERSION_DIST
)-$(REVISION
) \
13 -k
$(IMAGE_KERNEL
) -r
$@
-o
$@
16 # all UBNT XM/WA devices expect the kernel image to have 1024k while flash, when
17 # booting the image, the size doesn't matter.
18 define Build
/mkubntimage-split
20 dd if
=$@ of
=$@.old1 bs
=1024k count
=1; \
21 dd if
=$@ of
=$@.old2 bs
=1024k skip
=1; \
22 $(STAGING_DIR_HOST
)/bin
/mkfwimage
-B
$(UBNT_BOARD
) \
23 -v
$(UBNT_TYPE
).
$(UBNT_CHIP
).v
$(UBNT_VERSION
)-$(UBNT_REVISION
) \
24 -k
$@.old1
-r
$@.old2
-o
$@
; \
28 # UBNT_BOARD e.g. one of (XS2, XS5, RS, XM)
29 # UBNT_TYPE e.g. one of (BZ, XM, XW)
30 # UBNT_CHIP e.g. one of (ar7240, ar933x, ar934x)
31 # UBNT_VERSION e.g. one of (6.0.0, 8.5.0)
33 DEVICE_VENDOR
:= Ubiquiti
34 DEVICE_PACKAGES
:= kmod-usb2
36 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(BLOCKSIZE
) | \
37 append-rootfs | pad-rootfs | check-size
$$$$(IMAGE_SIZE
) | mkubntimage-split
64 DEVICE_PACKAGES
+= kmod-usb-ohci
70 KERNEL
:= kernel-bin | append-dtb | relocate-kernel | lzma | uImage lzma
80 UBNT_REVISION
:= 42.
$(UBNT_REVISION
)
85 define Device
/ubnt_acb-isp
88 DEVICE_MODEL
:= airCube ISP
95 TARGET_DEVICES
+= ubnt_acb-isp
97 define Device
/ubnt_airrouter
99 DEVICE_MODEL
:= AirRouter
100 SUPPORTED_DEVICES
+= airrouter
102 TARGET_DEVICES
+= ubnt_airrouter
104 define Device
/ubnt_bullet-m
106 DEVICE_MODEL
:= Bullet-M
107 DEVICE_PACKAGES
+= rssileds
108 SUPPORTED_DEVICES
+= bullet-m
110 TARGET_DEVICES
+= ubnt_bullet-m
112 define Device
/ubnt_bullet-m-xw
114 DEVICE_MODEL
:= Bullet-M
115 DEVICE_PACKAGES
+= rssileds
116 SUPPORTED_DEVICES
+= bullet-m-xw
118 TARGET_DEVICES
+= ubnt_bullet-m-xw
120 define Device
/ubnt_lap-120
122 DEVICE_MODEL
:= LiteAP ac
123 DEVICE_VARIANT
:= LAP-120
124 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
126 TARGET_DEVICES
+= ubnt_lap-120
128 define Device
/ubnt_litebeam-ac-gen2
130 DEVICE_MODEL
:= LiteBeam AC
131 DEVICE_VARIANT
:= Gen2
132 DEVICE_PACKAGES
:= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
134 TARGET_DEVICES
+= ubnt_litebeam-ac-gen2
136 define Device
/ubnt_nanobeam-ac
138 DEVICE_MODEL
:= NanoBeam AC
139 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
141 TARGET_DEVICES
+= ubnt_nanobeam-ac
143 define Device
/ubnt_nanostation-ac
145 DEVICE_MODEL
:= Nanostation AC
146 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
148 TARGET_DEVICES
+= ubnt_nanostation-ac
150 define Device
/ubnt_nanostation-ac-loco
152 DEVICE_MODEL
:= Nanostation AC loco
153 DEVICE_PACKAGES
+= kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
155 TARGET_DEVICES
+= ubnt_nanostation-ac-loco
157 define Device
/ubnt_nanostation-m
159 DEVICE_MODEL
:= Nanostation M
160 DEVICE_PACKAGES
+= rssileds
161 SUPPORTED_DEVICES
+= nanostation-m
163 TARGET_DEVICES
+= ubnt_nanostation-m
165 define Device
/ubnt_nanostation-m-xw
167 DEVICE_MODEL
:= Nanostation M
168 DEVICE_PACKAGES
+= rssileds
169 SUPPORTED_DEVICES
+= nanostation-m-xw
171 TARGET_DEVICES
+= ubnt_nanostation-m-xw
173 define Device
/ubnt_rocket-m
175 DEVICE_MODEL
:= Rocket-M
176 DEVICE_PACKAGES
+= rssileds
177 SUPPORTED_DEVICES
+= rocket-m
179 TARGET_DEVICES
+= ubnt_rocket-m
181 define Device
/ubnt_routerstation_common
182 DEVICE_PACKAGES
:= -kmod-ath9k
-wpad-mini
-uboot-envtools kmod-usb-ohci \
184 DEVICE_VENDOR
:= Ubiquiti
187 IMAGES
:= factory.bin
188 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | mkubntimage | \
189 check-size
$$$$(IMAGE_SIZE
)
190 KERNEL
:= kernel-bin | append-dtb | lzma | pad-to
$$(BLOCKSIZE
)
191 KERNEL_INITRAMFS
:= kernel-bin | append-dtb
194 define Device
/ubnt_routerstation
195 $(Device
/ubnt_routerstation_common
)
196 DEVICE_MODEL
:= RouterStation
200 DEVICE_PACKAGES
+= -swconfig
201 SUPPORTED_DEVICES
+= routerstation
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
211 SUPPORTED_DEVICES
+= routerstation-pro
213 TARGET_DEVICES
+= ubnt_routerstation-pro
215 define Device
/ubnt_unifi
217 DEVICE_MODEL
:= UniFi
218 SUPPORTED_DEVICES
+= unifi
220 TARGET_DEVICES
+= ubnt_unifi
222 define Device
/ubnt_unifiac
223 DEVICE_VENDOR
:= Ubiquiti
226 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
229 define Device
/ubnt_unifiac-lite
230 $(Device
/ubnt_unifiac
)
231 DEVICE_MODEL
:= UniFi AC-Lite
232 SUPPORTED_DEVICES
+= unifiac-lite
234 TARGET_DEVICES
+= ubnt_unifiac-lite
236 define Device
/ubnt_unifiac-lr
237 $(Device
/ubnt_unifiac
)
238 DEVICE_MODEL
:= UniFi AC-LR
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 SUPPORTED_DEVICES
+= ubnt-unifiac-mesh
248 TARGET_DEVICES
+= ubnt_unifiac-mesh
250 define Device
/ubnt_unifiac-mesh-pro
251 $(Device
/ubnt_unifiac
)
252 DEVICE_MODEL
:= UniFi AC-Mesh Pro
253 SUPPORTED_DEVICES
+= ubnt-unifiac-mesh-pro
255 TARGET_DEVICES
+= ubnt_unifiac-mesh-pro
257 define Device
/ubnt_unifiac-pro
258 $(Device
/ubnt_unifiac
)
259 DEVICE_MODEL
:= UniFi AC-Pro
260 DEVICE_PACKAGES
+= kmod-usb2
261 SUPPORTED_DEVICES
+= ubnt-unifiac-pro
263 TARGET_DEVICES
+= ubnt_unifiac-pro