1 DEVICE_VARS
+= UBNT_BOARD UBNT_CHIP UBNT_TYPE
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 device 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
).v6.0
.0-$(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)
31 DEVICE_PACKAGES
:= kmod-usb-core kmod-usb2
35 IMAGE
/factory.bin
:= append-kernel | pad-to
$$$$(BLOCKSIZE
) | \
36 append-rootfs | pad-rootfs | check-size
$$$$(IMAGE_SIZE
) | mkubntimage-split
41 DEVICE_PACKAGES
+= kmod-usb-ohci
45 KERNEL
:= kernel-bin | append-dtb | relocate-kernel | lzma | uImage lzma
55 define Device
/ubnt_bullet-m
57 DEVICE_TITLE
:= Ubiquiti Bullet-M
58 SUPPORTED_DEVICES
+= bullet-m
60 TARGET_DEVICES
+= ubnt_bullet-m
62 define Device
/ubnt_rocket-m
64 DEVICE_TITLE
:= Ubiquiti Rocket-M
65 SUPPORTED_DEVICES
+= rocket-m
67 TARGET_DEVICES
+= ubnt_rocket-m
69 define Device
/ubnt_nano-m
71 DEVICE_TITLE
:= Ubiquiti Nano-M
72 SUPPORTED_DEVICES
+= nano-m
74 TARGET_DEVICES
+= ubnt_nano-m
76 define Device
/ubnt_unifi
78 DEVICE_TITLE
:= Ubiquiti UniFi
79 SUPPORTED_DEVICES
+= unifi
81 TARGET_DEVICES
+= ubnt_unifi
83 define Device
/ubnt_unifiac
86 IMAGES
:= sysupgrade.bin
87 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
$$$$(BLOCKSIZE
) | append-rootfs | pad-rootfs | append-metadata | check-size
$$$$(IMAGE_SIZE
)
88 DEVICE_PACKAGES
:= kmod-ath10k ath10k-firmware-qca988x
92 define Device
/ubnt_unifiac-lite
93 $(Device
/ubnt_unifiac
)
94 DEVICE_TITLE
:= Ubiquiti UniFi AC-Lite
95 SUPPORTED_DEVICES
+= ubnt-unifiac-lite
97 TARGET_DEVICES
+= ubnt_unifiac-lite
99 define Device
/ubnt_unifiac-pro
100 $(Device
/ubnt_unifiac
)
101 DEVICE_TITLE
:= Ubiquiti UniFi AC-Pro
102 DEVICE_PACKAGES
+= kmod-usb-core kmod-usb2
103 SUPPORTED_DEVICES
+= ubnt-unifiac-pro
105 TARGET_DEVICES
+= ubnt_unifiac-pro