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
42 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(BLOCKSIZE
) | \
43 append-rootfs | pad-rootfs | check-size
$$$$(IMAGE_SIZE
) | mkubntimage-split
67 DEVICE_PACKAGES
+= kmod-usb-ohci
72 KERNEL
:= kernel-bin | append-dtb | relocate-kernel | lzma | uImage lzma
83 UBNT_REVISION
:= 42.
$(UBNT_REVISION
)
87 define Device
/ubnt_acb-isp
91 DEVICE_MODEL
:= airCube ISP
95 IMAGES
:= sysupgrade.bin
97 TARGET_DEVICES
+= ubnt_acb-isp
99 define Device
/ubnt_airrouter
101 DEVICE_MODEL
:= AirRouter
102 SUPPORTED_DEVICES
+= airrouter
104 TARGET_DEVICES
+= ubnt_airrouter
106 define Device
/ubnt_bullet-m
108 DEVICE_MODEL
:= Bullet-M
109 DEVICE_PACKAGES
+= rssileds
110 SUPPORTED_DEVICES
+= bullet-m
112 TARGET_DEVICES
+= ubnt_bullet-m
114 define Device
/ubnt_bullet-m-xw
116 DEVICE_MODEL
:= Bullet-M
117 DEVICE_PACKAGES
+= rssileds
118 SUPPORTED_DEVICES
+= bullet-m-xw
120 TARGET_DEVICES
+= ubnt_bullet-m-xw
122 define Device
/ubnt_lap-120
124 DEVICE_MODEL
:= LiteAP ac
125 DEVICE_VARIANT
:= LAP-120
126 DEVICE_PACKAGES
+= kmod-ath10k-ct ath10k-firmware-qca988x-ct
128 TARGET_DEVICES
+= ubnt_lap-120
130 define Device
/ubnt_litebeam-ac-gen2
132 DEVICE_MODEL
:= LiteBeam AC
133 DEVICE_VARIANT
:= Gen2
134 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
136 TARGET_DEVICES
+= ubnt_litebeam-ac-gen2
138 define Device
/ubnt_nanobeam-ac
140 DEVICE_MODEL
:= NanoBeam AC
141 DEVICE_PACKAGES
+= kmod-ath10k-ct ath10k-firmware-qca988x-ct rssileds
143 TARGET_DEVICES
+= ubnt_nanobeam-ac
145 define Device
/ubnt_nanostation-ac
147 DEVICE_MODEL
:= Nanostation AC
148 DEVICE_PACKAGES
+= kmod-ath10k-ct ath10k-firmware-qca988x-ct rssileds
150 TARGET_DEVICES
+= ubnt_nanostation-ac
152 define Device
/ubnt_nanostation-ac-loco
154 DEVICE_MODEL
:= Nanostation AC loco
155 DEVICE_PACKAGES
+= kmod-ath10k-ct ath10k-firmware-qca988x-ct
157 TARGET_DEVICES
+= ubnt_nanostation-ac-loco
159 define Device
/ubnt_nanostation-m
161 DEVICE_MODEL
:= Nanostation M
162 DEVICE_PACKAGES
+= rssileds
163 SUPPORTED_DEVICES
+= nanostation-m
165 TARGET_DEVICES
+= ubnt_nanostation-m
167 define Device
/ubnt_nanostation-m-xw
169 DEVICE_MODEL
:= Nanostation M
170 DEVICE_PACKAGES
+= rssileds
171 SUPPORTED_DEVICES
+= nanostation-m-xw
173 TARGET_DEVICES
+= ubnt_nanostation-m-xw
175 define Device
/ubnt_rocket-m
177 DEVICE_MODEL
:= Rocket-M
178 DEVICE_PACKAGES
+= rssileds
179 SUPPORTED_DEVICES
+= rocket-m
181 TARGET_DEVICES
+= ubnt_rocket-m
183 define Device
/ubnt_routerstation_common
184 DEVICE_PACKAGES
:= -kmod-ath9k
-wpad-mini
-uboot-envtools kmod-usb-ohci kmod-usb2 fconfig
185 DEVICE_VENDOR
:= Ubiquiti
188 IMAGES
:= factory.bin
189 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | mkubntimage | 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