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 \
12 -B
$(UBNT_BOARD
) -v
$(UBNT_TYPE
).
$(UBNT_CHIP
).v6.0
.0-$(VERSION_DIST
)-$(REVISION
) \
18 # all UBNT XM/WA devices expect the kernel image to have 1024k while flash, when
19 # booting the image, the size doesn't matter.
20 define Build
/mkubntimage-split
22 dd if
=$@ of
=$@.old1 bs
=1024k count
=1; \
23 dd if
=$@ of
=$@.old2 bs
=1024k skip
=1; \
24 $(STAGING_DIR_HOST
)/bin
/mkfwimage \
25 -B
$(UBNT_BOARD
) -v
$(UBNT_TYPE
).
$(UBNT_CHIP
).v
$(UBNT_VERSION
)-$(UBNT_REVISION
) \
32 # UBNT_BOARD e.g. one of (XS2, XS5, RS, XM)
33 # UBNT_TYPE e.g. one of (BZ, XM, XW)
34 # UBNT_CHIP e.g. one of (ar7240, ar933x, ar934x)
35 # UBNT_VERSION e.g. one of (6.0.0, 8.5.0)
37 DEVICE_VENDOR
:= Ubiquiti
38 DEVICE_PACKAGES
:= kmod-usb2
40 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(BLOCKSIZE
) | \
41 append-rootfs | pad-rootfs | check-size
$$$$(IMAGE_SIZE
) | mkubntimage-split
68 DEVICE_PACKAGES
+= kmod-usb-ohci
74 KERNEL
:= kernel-bin | append-dtb | relocate-kernel | lzma | uImage lzma
84 UBNT_REVISION
:= 42.
$(UBNT_REVISION
)
89 define Device
/ubnt_acb-isp
92 DEVICE_MODEL
:= airCube ISP
98 IMAGES
:= sysupgrade.bin
100 TARGET_DEVICES
+= ubnt_acb-isp
102 define Device
/ubnt_airrouter
104 DEVICE_MODEL
:= AirRouter
105 SUPPORTED_DEVICES
+= airrouter
107 TARGET_DEVICES
+= ubnt_airrouter
109 define Device
/ubnt_bullet-m
111 DEVICE_MODEL
:= Bullet-M
112 DEVICE_PACKAGES
+= rssileds
113 SUPPORTED_DEVICES
+= bullet-m
115 TARGET_DEVICES
+= ubnt_bullet-m
117 define Device
/ubnt_bullet-m-xw
119 DEVICE_MODEL
:= Bullet-M
120 DEVICE_PACKAGES
+= rssileds
121 SUPPORTED_DEVICES
+= bullet-m-xw
123 TARGET_DEVICES
+= ubnt_bullet-m-xw
125 define Device
/ubnt_lap-120
127 DEVICE_MODEL
:= LiteAP ac
128 DEVICE_VARIANT
:= LAP-120
129 DEVICE_PACKAGES
+= kmod-ath10k-ct ath10k-firmware-qca988x-ct
131 TARGET_DEVICES
+= ubnt_lap-120
133 define Device
/ubnt_litebeam-ac-gen2
135 DEVICE_MODEL
:= LiteBeam AC
136 DEVICE_VARIANT
:= Gen2
137 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
139 TARGET_DEVICES
+= ubnt_litebeam-ac-gen2
141 define Device
/ubnt_nanobeam-ac
143 DEVICE_MODEL
:= NanoBeam AC
144 DEVICE_PACKAGES
+= kmod-ath10k-ct ath10k-firmware-qca988x-ct rssileds
146 TARGET_DEVICES
+= ubnt_nanobeam-ac
148 define Device
/ubnt_nanostation-ac
150 DEVICE_MODEL
:= Nanostation AC
151 DEVICE_PACKAGES
+= kmod-ath10k-ct ath10k-firmware-qca988x-ct rssileds
153 TARGET_DEVICES
+= ubnt_nanostation-ac
155 define Device
/ubnt_nanostation-ac-loco
157 DEVICE_MODEL
:= Nanostation AC loco
158 DEVICE_PACKAGES
+= kmod-ath10k-ct ath10k-firmware-qca988x-ct
160 TARGET_DEVICES
+= ubnt_nanostation-ac-loco
162 define Device
/ubnt_nanostation-m
164 DEVICE_MODEL
:= Nanostation M
165 DEVICE_PACKAGES
+= rssileds
166 SUPPORTED_DEVICES
+= nanostation-m
168 TARGET_DEVICES
+= ubnt_nanostation-m
170 define Device
/ubnt_nanostation-m-xw
172 DEVICE_MODEL
:= Nanostation M
173 DEVICE_PACKAGES
+= rssileds
174 SUPPORTED_DEVICES
+= nanostation-m-xw
176 TARGET_DEVICES
+= ubnt_nanostation-m-xw
178 define Device
/ubnt_rocket-m
180 DEVICE_MODEL
:= Rocket-M
181 DEVICE_PACKAGES
+= rssileds
182 SUPPORTED_DEVICES
+= rocket-m
184 TARGET_DEVICES
+= ubnt_rocket-m
186 define Device
/ubnt_routerstation_common
187 DEVICE_PACKAGES
:= -kmod-ath9k
-wpad-mini
-uboot-envtools kmod-usb-ohci kmod-usb2 fconfig
188 DEVICE_VENDOR
:= Ubiquiti
191 IMAGES
:= factory.bin
192 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | mkubntimage | check-size
$$$$(IMAGE_SIZE
)
193 KERNEL
:= kernel-bin | append-dtb | lzma | pad-to
$$(BLOCKSIZE
)
194 KERNEL_INITRAMFS
:= kernel-bin | append-dtb
197 define Device
/ubnt_routerstation
198 $(Device
/ubnt_routerstation_common
)
199 DEVICE_MODEL
:= RouterStation
203 DEVICE_PACKAGES
+= -swconfig
204 SUPPORTED_DEVICES
+= routerstation
206 TARGET_DEVICES
+= ubnt_routerstation
208 define Device
/ubnt_routerstation-pro
209 $(Device
/ubnt_routerstation_common
)
210 DEVICE_MODEL
:= RouterStation Pro
213 UBNT_CHIP
:= ar7100pro
214 SUPPORTED_DEVICES
+= routerstation-pro
216 TARGET_DEVICES
+= ubnt_routerstation-pro
218 define Device
/ubnt_unifi
220 DEVICE_MODEL
:= UniFi
221 SUPPORTED_DEVICES
+= unifi
223 TARGET_DEVICES
+= ubnt_unifi
225 define Device
/ubnt_unifiac
226 DEVICE_VENDOR
:= Ubiquiti
229 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
232 define Device
/ubnt_unifiac-lite
233 $(Device
/ubnt_unifiac
)
234 DEVICE_MODEL
:= UniFi AC-Lite
235 SUPPORTED_DEVICES
+= unifiac-lite
237 TARGET_DEVICES
+= ubnt_unifiac-lite
239 define Device
/ubnt_unifiac-lr
240 $(Device
/ubnt_unifiac
)
241 DEVICE_MODEL
:= UniFi AC-LR
242 SUPPORTED_DEVICES
+= unifiac-lite ubnt
,unifiac-lite
244 TARGET_DEVICES
+= ubnt_unifiac-lr
246 define Device
/ubnt_unifiac-mesh
247 $(Device
/ubnt_unifiac
)
248 DEVICE_MODEL
:= UniFi AC-Mesh
249 SUPPORTED_DEVICES
+= ubnt-unifiac-mesh
251 TARGET_DEVICES
+= ubnt_unifiac-mesh
253 define Device
/ubnt_unifiac-mesh-pro
254 $(Device
/ubnt_unifiac
)
255 DEVICE_MODEL
:= UniFi AC-Mesh Pro
256 SUPPORTED_DEVICES
+= ubnt-unifiac-mesh-pro
258 TARGET_DEVICES
+= ubnt_unifiac-mesh-pro
260 define Device
/ubnt_unifiac-pro
261 $(Device
/ubnt_unifiac
)
262 DEVICE_MODEL
:= UniFi AC-Pro
263 DEVICE_PACKAGES
+= kmod-usb2
264 SUPPORTED_DEVICES
+= ubnt-unifiac-pro
266 TARGET_DEVICES
+= ubnt_unifiac-pro