1 DEVICE_VARS
+= UBNT_BOARD UBNT_CHIP UBNT_TYPE UBNT_VERSION
3 # mkubntimage is using the kernel image direct
4 # routerboard creates partitions out of the ubnt header
5 define Build
/mkubntimage
6 -$(STAGING_DIR_HOST
)/bin
/mkfwimage \
7 -B
$(UBNT_BOARD
) -v
$(UBNT_TYPE
).
$(UBNT_CHIP
).v6.0
.0-$(VERSION_DIST
)-$(REVISION
) \
13 # all UBNT XM/WA devices expect the kernel image to have 1024k while flash, when
14 # booting the image, the size doesn't matter.
15 define Build
/mkubntimage-split
17 dd if
=$@ of
=$@.old1 bs
=1024k count
=1; \
18 dd if
=$@ of
=$@.old2 bs
=1024k skip
=1; \
19 $(STAGING_DIR_HOST
)/bin
/mkfwimage \
20 -B
$(UBNT_BOARD
) -v
$(UBNT_TYPE
).
$(UBNT_CHIP
).v
$(UBNT_VERSION
)-$(VERSION_DIST
)-$(REVISION
) \
27 # UBNT_BOARD e.g. one of (XS2, XS5, RS, XM)
28 # UBNT_TYPE e.g. one of (BZ, XM, XW)
29 # UBNT_CHIP e.g. one of (ar7240, ar933x, ar934x)
30 # UBNT_VERSION e.g. one of (6.0.0, 8.5.0)
32 DEVICE_PACKAGES
:= kmod-usb-core kmod-usb2
37 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(BLOCKSIZE
) | \
38 append-rootfs | pad-rootfs | check-size
$$$$(IMAGE_SIZE
) | mkubntimage-split
43 DEVICE_PACKAGES
+= kmod-usb-ohci rssileds
47 KERNEL
:= kernel-bin | append-dtb | relocate-kernel | lzma | uImage lzma
66 define Device
/ubnt_bullet-m
68 DEVICE_TITLE
:= Ubiquiti Bullet-M
69 SUPPORTED_DEVICES
+= bullet-m
71 TARGET_DEVICES
+= ubnt_bullet-m
73 define Device
/ubnt_rocket-m
75 DEVICE_TITLE
:= Ubiquiti Rocket-M
76 SUPPORTED_DEVICES
+= rocket-m
78 TARGET_DEVICES
+= ubnt_rocket-m
80 define Device
/ubnt_nano-m
82 DEVICE_TITLE
:= Ubiquiti Nano-M
83 SUPPORTED_DEVICES
+= nano-m
85 TARGET_DEVICES
+= ubnt_nano-m
87 define Device
/ubnt_nanostation-ac-loco
89 DEVICE_TITLE
:= Ubiquiti Nanostation AC loco
90 DEVICE_PACKAGES
+= kmod-ath10k ath10k-firmware-qca988x
93 IMAGE
/factory.bin
:= $$(IMAGE
/sysupgrade.bin
) | mkubntimage-split
95 TARGET_DEVICES
+= ubnt_nanostation-ac-loco
97 define Device
/ubnt_unifi
99 DEVICE_TITLE
:= Ubiquiti UniFi
100 SUPPORTED_DEVICES
+= unifi
102 TARGET_DEVICES
+= ubnt_unifi
104 define Device
/ubnt_unifiac
107 IMAGES
:= sysupgrade.bin
108 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
$$$$(BLOCKSIZE
) | append-rootfs | pad-rootfs | append-metadata | check-size
$$$$(IMAGE_SIZE
)
109 DEVICE_PACKAGES
:= kmod-ath10k-ct ath10k-firmware-qca988x-ct
113 define Device
/ubnt_unifiac-lite
114 $(Device
/ubnt_unifiac
)
115 DEVICE_TITLE
:= Ubiquiti UniFi AC-Lite
116 SUPPORTED_DEVICES
+= ubnt-unifiac-lite
118 TARGET_DEVICES
+= ubnt_unifiac-lite
120 define Device
/ubnt_unifiac-mesh
121 $(Device
/ubnt_unifiac
)
122 DEVICE_TITLE
:= Ubiquiti UniFi AC-Mesh
123 SUPPORTED_DEVICES
+= ubnt-unifiac-mesh
125 TARGET_DEVICES
+= ubnt_unifiac-mesh
127 define Device
/ubnt_unifiac-mesh-pro
128 $(Device
/ubnt_unifiac
)
129 DEVICE_TITLE
:= Ubiquiti UniFi AC-Mesh Pro
130 SUPPORTED_DEVICES
+= ubnt-unifiac-mesh-pro
132 TARGET_DEVICES
+= ubnt_unifiac-mesh-pro
134 define Device
/ubnt_unifiac-pro
135 $(Device
/ubnt_unifiac
)
136 DEVICE_TITLE
:= Ubiquiti UniFi AC-Pro
137 DEVICE_PACKAGES
+= kmod-usb-core kmod-usb2
138 SUPPORTED_DEVICES
+= ubnt-unifiac-pro
140 TARGET_DEVICES
+= ubnt_unifiac-pro
142 define Device
/ubnt_routerstation_common
143 DEVICE_PACKAGES
:= -kmod-ath9k
-wpad-mini
-uboot-envtools kmod-usb-ohci kmod-usb2 fconfig
146 IMAGES
:= sysupgrade.bin factory.bin
147 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | mkubntimage | check-size
$$$$(IMAGE_SIZE
)
148 IMAGE
/sysupgrade.bin
:= append-rootfs | pad-rootfs | combined-image | check-size
$$$$(IMAGE_SIZE
) | append-metadata
149 KERNEL
:= kernel-bin | append-dtb | lzma | pad-to
$$(BLOCKSIZE
)
150 KERNEL_INITRAMFS
:= kernel-bin | append-dtb
153 define Device
/ubnt_routerstation
154 $(Device
/ubnt_routerstation_common
)
155 DEVICE_TITLE
:= Ubiquiti RouterStation
159 DEVICE_PACKAGES
+= -swconfig
161 TARGET_DEVICES
+= ubnt_routerstation
163 define Device
/ubnt_routerstation-pro
164 $(Device
/ubnt_routerstation_common
)
165 DEVICE_TITLE
:= Ubiquiti RouterStation Pro
168 UBNT_CHIP
:= ar7100pro
170 TARGET_DEVICES
+= ubnt_routerstation-pro