ipq40xx: add support for MikroTik hAP ac3
[openwrt/openwrt.git] / target / linux / ipq40xx / image / mikrotik.mk
1 define Device/mikrotik_nor
2 DEVICE_VENDOR := MikroTik
3 BLOCKSIZE := 64k
4 IMAGE_SIZE := 16128k
5 KERNEL_NAME := vmlinux
6 KERNEL := kernel-bin | append-dtb-elf
7 IMAGES = sysupgrade.bin
8 IMAGE/sysupgrade.bin := append-kernel | kernel2minor -s 1024 | \
9 pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | \
10 check-size | append-metadata
11 endef
12
13 define Device/mikrotik_nand
14 DEVICE_VENDOR := MikroTik
15 KERNEL_NAME := vmlinux
16 KERNEL_INITRAMFS := kernel-bin | append-dtb-elf
17 KERNEL := kernel-bin | append-dtb-elf | package-kernel-ubifs | \
18 ubinize-kernel
19 IMAGES := nand-sysupgrade.bin
20 IMAGE/nand-sysupgrade.bin := sysupgrade-tar | append-metadata
21 endef
22
23 define Device/mikrotik_hap-ac2
24 $(call Device/mikrotik_nor)
25 DEVICE_MODEL := hAP ac2
26 SOC := qcom-ipq4018
27 DEVICE_PACKAGES := ipq-wifi-mikrotik_hap-ac2 -kmod-ath10k-ct \
28 kmod-ath10k-ct-smallbuffers
29 endef
30 TARGET_DEVICES += mikrotik_hap-ac2
31
32 define Device/mikrotik_hap-ac3
33 $(call Device/mikrotik_nand)
34 DEVICE_MODEL := hAP ac3
35 SOC := qcom-ipq4019
36 BLOCKSIZE := 128k
37 PAGESIZE := 2048
38 KERNEL_UBIFS_OPTS = -m $$(PAGESIZE) -e 124KiB -c $$(PAGESIZE) -x none
39 DEVICE_PACKAGES := kmod-ledtrig-gpio ipq-wifi-mikrotik_hap-ac3
40 endef
41 TARGET_DEVICES += mikrotik_hap-ac3
42
43 define Device/mikrotik_sxtsq-5-ac
44 $(call Device/mikrotik_nor)
45 DEVICE_MODEL := SXTsq 5 ac (RBSXTsqG-5acD)
46 SOC := qcom-ipq4018
47 DEVICE_PACKAGES := ipq-wifi-mikrotik_sxtsq-5-ac rssileds
48 endef
49 TARGET_DEVICES += mikrotik_sxtsq-5-ac