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
127 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | mkubntimage-split
129 TARGET_DEVICES
+= ubnt_lap-120
131 define Device
/ubnt_nanobeam-ac
133 DEVICE_MODEL
:= NanoBeam AC
134 DEVICE_PACKAGES
+= kmod-ath10k-ct ath10k-firmware-qca988x-ct rssileds
135 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | mkubntimage-split
137 TARGET_DEVICES
+= ubnt_nanobeam-ac
139 define Device
/ubnt_nanostation-ac
141 DEVICE_MODEL
:= Nanostation AC
142 DEVICE_PACKAGES
+= kmod-ath10k-ct ath10k-firmware-qca988x-ct rssileds
143 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | mkubntimage-split
145 TARGET_DEVICES
+= ubnt_nanostation-ac
147 define Device
/ubnt_nanostation-ac-loco
149 DEVICE_MODEL
:= Nanostation AC loco
150 DEVICE_PACKAGES
+= kmod-ath10k-ct ath10k-firmware-qca988x-ct
151 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | mkubntimage-split
153 TARGET_DEVICES
+= ubnt_nanostation-ac-loco
155 define Device
/ubnt_nanostation-m
157 DEVICE_MODEL
:= Nanostation M
158 DEVICE_PACKAGES
+= rssileds
159 SUPPORTED_DEVICES
+= nanostation-m
161 TARGET_DEVICES
+= ubnt_nanostation-m
163 define Device
/ubnt_nanostation-m-xw
165 DEVICE_MODEL
:= Nanostation M
166 DEVICE_PACKAGES
+= rssileds
167 SUPPORTED_DEVICES
+= nanostation-m-xw
169 TARGET_DEVICES
+= ubnt_nanostation-m-xw
171 define Device
/ubnt_rocket-m
173 DEVICE_MODEL
:= Rocket-M
174 DEVICE_PACKAGES
+= rssileds
175 SUPPORTED_DEVICES
+= rocket-m
177 TARGET_DEVICES
+= ubnt_rocket-m
179 define Device
/ubnt_routerstation_common
180 DEVICE_PACKAGES
:= -kmod-ath9k
-wpad-mini
-uboot-envtools kmod-usb-ohci kmod-usb2 fconfig
181 DEVICE_VENDOR
:= Ubiquiti
184 IMAGES
:= factory.bin
185 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | mkubntimage | check-size
$$$$(IMAGE_SIZE
)
186 KERNEL
:= kernel-bin | append-dtb | lzma | pad-to
$$(BLOCKSIZE
)
187 KERNEL_INITRAMFS
:= kernel-bin | append-dtb
190 define Device
/ubnt_routerstation
191 $(Device
/ubnt_routerstation_common
)
192 DEVICE_MODEL
:= RouterStation
196 DEVICE_PACKAGES
+= -swconfig
197 SUPPORTED_DEVICES
+= routerstation
199 TARGET_DEVICES
+= ubnt_routerstation
201 define Device
/ubnt_routerstation-pro
202 $(Device
/ubnt_routerstation_common
)
203 DEVICE_MODEL
:= RouterStation Pro
206 UBNT_CHIP
:= ar7100pro
207 SUPPORTED_DEVICES
+= routerstation-pro
209 TARGET_DEVICES
+= ubnt_routerstation-pro
211 define Device
/ubnt_unifi
213 DEVICE_MODEL
:= UniFi
214 SUPPORTED_DEVICES
+= unifi
216 TARGET_DEVICES
+= ubnt_unifi
218 define Device
/ubnt_unifiac
219 DEVICE_VENDOR
:= Ubiquiti
222 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
225 define Device
/ubnt_unifiac-lite
226 $(Device
/ubnt_unifiac
)
227 DEVICE_MODEL
:= UniFi AC-Lite
228 SUPPORTED_DEVICES
+= unifiac-lite
230 TARGET_DEVICES
+= ubnt_unifiac-lite
232 define Device
/ubnt_unifiac-lr
233 $(Device
/ubnt_unifiac
)
234 DEVICE_MODEL
:= UniFi AC-LR
235 SUPPORTED_DEVICES
+= unifiac-lite ubnt
,unifiac-lite
237 TARGET_DEVICES
+= ubnt_unifiac-lr
239 define Device
/ubnt_unifiac-mesh
240 $(Device
/ubnt_unifiac
)
241 DEVICE_MODEL
:= UniFi AC-Mesh
242 SUPPORTED_DEVICES
+= ubnt-unifiac-mesh
244 TARGET_DEVICES
+= ubnt_unifiac-mesh
246 define Device
/ubnt_unifiac-mesh-pro
247 $(Device
/ubnt_unifiac
)
248 DEVICE_MODEL
:= UniFi AC-Mesh Pro
249 SUPPORTED_DEVICES
+= ubnt-unifiac-mesh-pro
251 TARGET_DEVICES
+= ubnt_unifiac-mesh-pro
253 define Device
/ubnt_unifiac-pro
254 $(Device
/ubnt_unifiac
)
255 DEVICE_MODEL
:= UniFi AC-Pro
256 DEVICE_PACKAGES
+= kmod-usb2
257 SUPPORTED_DEVICES
+= ubnt-unifiac-pro
259 TARGET_DEVICES
+= ubnt_unifiac-pro