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
94 IMAGES
:= sysupgrade.bin
96 TARGET_DEVICES
+= ubnt_acb-isp
98 define Device
/ubnt_airrouter
100 DEVICE_MODEL
:= AirRouter
101 SUPPORTED_DEVICES
+= airrouter
103 TARGET_DEVICES
+= ubnt_airrouter
105 define Device
/ubnt_bullet-m
107 DEVICE_MODEL
:= Bullet-M
108 DEVICE_PACKAGES
+= rssileds
109 SUPPORTED_DEVICES
+= bullet-m
111 TARGET_DEVICES
+= ubnt_bullet-m
113 define Device
/ubnt_bullet-m-xw
115 DEVICE_MODEL
:= Bullet-M
116 DEVICE_PACKAGES
+= rssileds
117 SUPPORTED_DEVICES
+= bullet-m-xw
119 TARGET_DEVICES
+= ubnt_bullet-m-xw
121 define Device
/ubnt_lap-120
123 DEVICE_MODEL
:= LiteAP ac
124 DEVICE_VARIANT
:= LAP-120
125 DEVICE_PACKAGES
+= kmod-ath10k-ct ath10k-firmware-qca988x-ct
127 TARGET_DEVICES
+= ubnt_lap-120
129 define Device
/ubnt_litebeam-ac-gen2
131 DEVICE_MODEL
:= LiteBeam AC
132 DEVICE_VARIANT
:= Gen2
133 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
135 TARGET_DEVICES
+= ubnt_litebeam-ac-gen2
137 define Device
/ubnt_nanobeam-ac
139 DEVICE_MODEL
:= NanoBeam AC
140 DEVICE_PACKAGES
+= kmod-ath10k-ct ath10k-firmware-qca988x-ct rssileds
142 TARGET_DEVICES
+= ubnt_nanobeam-ac
144 define Device
/ubnt_nanostation-ac
146 DEVICE_MODEL
:= Nanostation AC
147 DEVICE_PACKAGES
+= kmod-ath10k-ct ath10k-firmware-qca988x-ct rssileds
149 TARGET_DEVICES
+= ubnt_nanostation-ac
151 define Device
/ubnt_nanostation-ac-loco
153 DEVICE_MODEL
:= Nanostation AC loco
154 DEVICE_PACKAGES
+= kmod-ath10k-ct ath10k-firmware-qca988x-ct
156 TARGET_DEVICES
+= ubnt_nanostation-ac-loco
158 define Device
/ubnt_nanostation-m
160 DEVICE_MODEL
:= Nanostation M
161 DEVICE_PACKAGES
+= rssileds
162 SUPPORTED_DEVICES
+= nanostation-m
164 TARGET_DEVICES
+= ubnt_nanostation-m
166 define Device
/ubnt_nanostation-m-xw
168 DEVICE_MODEL
:= Nanostation M
169 DEVICE_PACKAGES
+= rssileds
170 SUPPORTED_DEVICES
+= nanostation-m-xw
172 TARGET_DEVICES
+= ubnt_nanostation-m-xw
174 define Device
/ubnt_rocket-m
176 DEVICE_MODEL
:= Rocket-M
177 DEVICE_PACKAGES
+= rssileds
178 SUPPORTED_DEVICES
+= rocket-m
180 TARGET_DEVICES
+= ubnt_rocket-m
182 define Device
/ubnt_routerstation_common
183 DEVICE_PACKAGES
:= -kmod-ath9k
-wpad-mini
-uboot-envtools kmod-usb-ohci \
185 DEVICE_VENDOR
:= Ubiquiti
188 IMAGES
:= factory.bin
189 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | mkubntimage | \
190 check-size
$$$$(IMAGE_SIZE
)
191 KERNEL
:= kernel-bin | append-dtb | lzma | pad-to
$$(BLOCKSIZE
)
192 KERNEL_INITRAMFS
:= kernel-bin | append-dtb
195 define Device
/ubnt_routerstation
196 $(Device
/ubnt_routerstation_common
)
197 DEVICE_MODEL
:= RouterStation
201 DEVICE_PACKAGES
+= -swconfig
202 SUPPORTED_DEVICES
+= routerstation
204 TARGET_DEVICES
+= ubnt_routerstation
206 define Device
/ubnt_routerstation-pro
207 $(Device
/ubnt_routerstation_common
)
208 DEVICE_MODEL
:= RouterStation Pro
211 UBNT_CHIP
:= ar7100pro
212 SUPPORTED_DEVICES
+= routerstation-pro
214 TARGET_DEVICES
+= ubnt_routerstation-pro
216 define Device
/ubnt_unifi
218 DEVICE_MODEL
:= UniFi
219 SUPPORTED_DEVICES
+= unifi
221 TARGET_DEVICES
+= ubnt_unifi
223 define Device
/ubnt_unifiac
224 DEVICE_VENDOR
:= Ubiquiti
227 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
230 define Device
/ubnt_unifiac-lite
231 $(Device
/ubnt_unifiac
)
232 DEVICE_MODEL
:= UniFi AC-Lite
233 SUPPORTED_DEVICES
+= unifiac-lite
235 TARGET_DEVICES
+= ubnt_unifiac-lite
237 define Device
/ubnt_unifiac-lr
238 $(Device
/ubnt_unifiac
)
239 DEVICE_MODEL
:= UniFi AC-LR
240 SUPPORTED_DEVICES
+= unifiac-lite ubnt
,unifiac-lite
242 TARGET_DEVICES
+= ubnt_unifiac-lr
244 define Device
/ubnt_unifiac-mesh
245 $(Device
/ubnt_unifiac
)
246 DEVICE_MODEL
:= UniFi AC-Mesh
247 SUPPORTED_DEVICES
+= ubnt-unifiac-mesh
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
+= ubnt-unifiac-mesh-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
+= ubnt-unifiac-pro
264 TARGET_DEVICES
+= ubnt_unifiac-pro