ipq807x: Add bluetooth driver to zyxel nbg7815
[openwrt/staging/aparcar.git] / target / linux / ipq807x / image / generic.mk
1 define Device/FitImage
2 KERNEL_SUFFIX := -uImage.itb
3 KERNEL = kernel-bin | libdeflate-gzip | fit gzip $$(KDIR)/image-$$(DEVICE_DTS).dtb
4 KERNEL_NAME := Image
5 endef
6
7 define Device/FitImageLzma
8 KERNEL_SUFFIX := -uImage.itb
9 KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb
10 KERNEL_NAME := Image
11 endef
12
13 define Device/UbiFit
14 KERNEL_IN_UBI := 1
15 IMAGES := factory.ubi sysupgrade.bin
16 IMAGE/factory.ubi := append-ubi
17 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
18 endef
19
20 define Device/buffalo_wxr-5950ax12
21 $(call Device/FitImage)
22 $(call Device/UbiFit)
23 DEVICE_VENDOR := Buffalo
24 DEVICE_MODEL := WXR-5950AX12
25 BLOCKSIZE := 128k
26 PAGESIZE := 2048
27 DEVICE_DTS_CONFIG := config@hk01
28 SOC := ipq8074
29 DEVICE_PACKAGES := ipq-wifi-buffalo_wxr-5950ax12
30 endef
31 TARGET_DEVICES += buffalo_wxr-5950ax12
32
33 define Device/dynalink_dl-wrx36
34 $(call Device/FitImage)
35 $(call Device/UbiFit)
36 DEVICE_VENDOR := Dynalink
37 DEVICE_MODEL := DL-WRX36
38 BLOCKSIZE := 128k
39 PAGESIZE := 2048
40 DEVICE_DTS_CONFIG := config@rt5010w-d350-rev0
41 SOC := ipq8072
42 DEVICE_PACKAGES := ipq-wifi-dynalink_dl-wrx36
43 endef
44 TARGET_DEVICES += dynalink_dl-wrx36
45
46 define Device/edgecore_eap102
47 $(call Device/FitImage)
48 $(call Device/UbiFit)
49 DEVICE_VENDOR := Edgecore
50 DEVICE_MODEL := EAP102
51 BLOCKSIZE := 128k
52 PAGESIZE := 2048
53 DEVICE_DTS_CONFIG := config@ac02
54 SOC := ipq8071
55 DEVICE_PACKAGES := ipq-wifi-edgecore_eap102
56 IMAGE/factory.ubi := append-ubi | qsdk-ipq-factory-nand
57 endef
58 TARGET_DEVICES += edgecore_eap102
59
60 define Device/edimax_cax1800
61 $(call Device/FitImage)
62 $(call Device/UbiFit)
63 DEVICE_VENDOR := Edimax
64 DEVICE_MODEL := CAX1800
65 BLOCKSIZE := 128k
66 PAGESIZE := 2048
67 DEVICE_DTS_CONFIG := config@ac03
68 SOC := ipq8070
69 DEVICE_PACKAGES := ipq-wifi-edimax_cax1800
70 endef
71 TARGET_DEVICES += edimax_cax1800
72
73 define Device/qnap_301w
74 $(call Device/FitImage)
75 DEVICE_VENDOR := QNAP
76 DEVICE_MODEL := 301w
77 DEVICE_DTS_CONFIG := config@hk01
78 KERNEL_SIZE := 16384k
79 BLOCKSIZE := 512k
80 SOC := ipq8072
81 IMAGES += factory.bin sysupgrade.bin
82 IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k
83 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | sysupgrade-tar rootfs=$$$$@ | append-metadata
84 DEVICE_PACKAGES := ipq-wifi-qnap_301w e2fsprogs kmod-fs-ext4 losetup
85 endef
86 TARGET_DEVICES += qnap_301w
87
88 define Device/redmi_ax6
89 $(call Device/xiaomi_ax3600)
90 DEVICE_VENDOR := Redmi
91 DEVICE_MODEL := AX6
92 DEVICE_PACKAGES := ipq-wifi-redmi_ax6
93 endef
94 TARGET_DEVICES += redmi_ax6
95
96 define Device/xiaomi_ax3600
97 $(call Device/FitImage)
98 $(call Device/UbiFit)
99 DEVICE_VENDOR := Xiaomi
100 DEVICE_MODEL := AX3600
101 BLOCKSIZE := 128k
102 PAGESIZE := 2048
103 DEVICE_DTS_CONFIG := config@ac04
104 SOC := ipq8071
105 KERNEL_SIZE := 36608k
106 DEVICE_PACKAGES := ipq-wifi-xiaomi_ax3600 kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9887-ct
107 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
108 ARTIFACTS := initramfs-factory.ubi
109 ARTIFACT/initramfs-factory.ubi := append-image-stage initramfs-uImage.itb | ubinize-kernel
110 endif
111 endef
112 TARGET_DEVICES += xiaomi_ax3600
113
114 define Device/xiaomi_ax9000
115 $(call Device/FitImage)
116 $(call Device/UbiFit)
117 DEVICE_VENDOR := Xiaomi
118 DEVICE_MODEL := AX9000
119 BLOCKSIZE := 128k
120 PAGESIZE := 2048
121 DEVICE_DTS_CONFIG := config@hk14
122 SOC := ipq8072
123 KERNEL_SIZE := 57344k
124 DEVICE_PACKAGES := ipq-wifi-xiaomi_ax9000 kmod-ath11k-pci ath11k-firmware-qcn9074 \
125 kmod-ath10k-ct ath10k-firmware-qca9887-ct
126 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
127 ARTIFACTS := initramfs-factory.ubi
128 ARTIFACT/initramfs-factory.ubi := append-image-stage initramfs-uImage.itb | ubinize-kernel
129 endif
130 endef
131 TARGET_DEVICES += xiaomi_ax9000
132
133 define Device/zyxel_nbg7815
134 $(call Device/FitImage)
135 DEVICE_VENDOR := ZYXEL
136 DEVICE_MODEL := NBG7815
137 DEVICE_DTS_CONFIG := config@nbg7815
138 BLOCKSIZE := 128k
139 PAGESIZE := 2048
140 SOC := ipq8074
141 IMAGES += factory.bin sysupgrade.bin
142 IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k
143 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | sysupgrade-tar rootfs=$$$$@ | append-metadata
144 DEVICE_PACKAGES := ipq-wifi-zyxel_nbg7815 kmod-ath11k-pci e2fsprogs kmod-fs-ext4 losetup \
145 kmod-hwmon-tmp103 kmod-bluetooth
146 endef
147 TARGET_DEVICES += zyxel_nbg7815