ipq40xx: add MikroTik wAP ac (RBwAPG-5HacD2HnD) support
[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_cap-ac
24 $(call Device/mikrotik_nor)
25 DEVICE_MODEL := cAP ac
26 SOC := qcom-ipq4018
27 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
28 endef
29 TARGET_DEVICES += mikrotik_cap-ac
30
31 define Device/mikrotik_hap-ac2
32 $(call Device/mikrotik_nor)
33 DEVICE_MODEL := hAP ac2
34 SOC := qcom-ipq4018
35 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
36 endef
37 TARGET_DEVICES += mikrotik_hap-ac2
38
39 define Device/mikrotik_hap-ac3
40 $(call Device/mikrotik_nand)
41 DEVICE_MODEL := hAP ac3
42 SOC := qcom-ipq4019
43 BLOCKSIZE := 128k
44 PAGESIZE := 2048
45 KERNEL_UBIFS_OPTS = -m $$(PAGESIZE) -e 124KiB -c $$(PAGESIZE) -x none
46 DEVICE_PACKAGES := kmod-ledtrig-gpio
47 endef
48 TARGET_DEVICES += mikrotik_hap-ac3
49
50 define Device/mikrotik_lhgg-60ad
51 $(call Device/mikrotik_nor)
52 DEVICE_MODEL := Wireless Wire Dish LHGG-60ad
53 DEVICE_DTS := qcom-ipq4019-lhgg-60ad
54 DEVICE_PACKAGES += -kmod-ath10k-ct -ath10k-firmware-qca4019-ct kmod-wil6210
55 endef
56 TARGET_DEVICES += mikrotik_lhgg-60ad
57
58 define Device/mikrotik_sxtsq-5-ac
59 $(call Device/mikrotik_nor)
60 DEVICE_MODEL := SXTsq 5 ac (RBSXTsqG-5acD)
61 SOC := qcom-ipq4018
62 DEVICE_PACKAGES := rssileds
63 endef
64 TARGET_DEVICES += mikrotik_sxtsq-5-ac
65
66 define Device/mikrotik_wap-ac
67 $(call Device/mikrotik_nor)
68 DEVICE_MODEL := wAP ac
69 SOC := qcom-ipq4018
70 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
71 endef
72 TARGET_DEVICES += mikrotik_wap-ac