ipq807x: rename target to qualcommax
[openwrt/staging/nbd.git] / target / linux / qualcommax / 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/EmmcImage
14 IMAGES += factory.bin sysupgrade.bin
15 IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k
16 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | sysupgrade-tar rootfs=$$$$@ | append-metadata
17 endef
18
19 define Device/UbiFit
20 KERNEL_IN_UBI := 1
21 IMAGES := factory.ubi sysupgrade.bin
22 IMAGE/factory.ubi := append-ubi
23 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
24 endef
25
26 define Device/buffalo_wxr-5950ax12
27 $(call Device/FitImage)
28 DEVICE_VENDOR := Buffalo
29 DEVICE_MODEL := WXR-5950AX12
30 BLOCKSIZE := 128k
31 PAGESIZE := 2048
32 DEVICE_DTS_CONFIG := config@hk01
33 SOC := ipq8074
34 IMAGES := sysupgrade.bin
35 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
36 DEVICE_PACKAGES := ipq-wifi-buffalo_wxr-5950ax12
37 endef
38 TARGET_DEVICES += buffalo_wxr-5950ax12
39
40 define Device/compex_wpq873
41 $(call Device/FitImage)
42 $(call Device/UbiFit)
43 DEVICE_VENDOR := Compex
44 DEVICE_MODEL := WPQ873
45 BLOCKSIZE := 128k
46 PAGESIZE := 2048
47 DEVICE_DTS_CONFIG := config@hk09.wpq873
48 SOC := ipq8072
49 IMAGE/factory.ubi := append-ubi | qsdk-ipq-factory-nand
50 endef
51 TARGET_DEVICES += compex_wpq873
52
53 define Device/dynalink_dl-wrx36
54 $(call Device/FitImage)
55 $(call Device/UbiFit)
56 DEVICE_VENDOR := Dynalink
57 DEVICE_MODEL := DL-WRX36
58 BLOCKSIZE := 128k
59 PAGESIZE := 2048
60 DEVICE_DTS_CONFIG := config@rt5010w-d350-rev0
61 SOC := ipq8072
62 DEVICE_PACKAGES := ipq-wifi-dynalink_dl-wrx36
63 endef
64 TARGET_DEVICES += dynalink_dl-wrx36
65
66 define Device/edgecore_eap102
67 $(call Device/FitImage)
68 $(call Device/UbiFit)
69 DEVICE_VENDOR := Edgecore
70 DEVICE_MODEL := EAP102
71 BLOCKSIZE := 128k
72 PAGESIZE := 2048
73 DEVICE_DTS_CONFIG := config@ac02
74 SOC := ipq8071
75 DEVICE_PACKAGES := ipq-wifi-edgecore_eap102
76 IMAGE/factory.ubi := append-ubi | qsdk-ipq-factory-nand
77 endef
78 TARGET_DEVICES += edgecore_eap102
79
80 define Device/edimax_cax1800
81 $(call Device/FitImage)
82 $(call Device/UbiFit)
83 DEVICE_VENDOR := Edimax
84 DEVICE_MODEL := CAX1800
85 BLOCKSIZE := 128k
86 PAGESIZE := 2048
87 DEVICE_DTS_CONFIG := config@ac03
88 SOC := ipq8070
89 DEVICE_PACKAGES := ipq-wifi-edimax_cax1800
90 endef
91 TARGET_DEVICES += edimax_cax1800
92
93 define Device/netgear_wax218
94 $(call Device/FitImage)
95 $(call Device/UbiFit)
96 ARTIFACTS := web-ui-factory.fit
97 DEVICE_VENDOR := Netgear
98 DEVICE_MODEL := WAX218
99 DEVICE_DTS_CONFIG := config@hk07
100 BLOCKSIZE := 128k
101 PAGESIZE := 2048
102 SOC := ipq8072
103 ARTIFACT/web-ui-factory.fit := append-image initramfs-uImage.itb | \
104 ubinize-kernel | qsdk-ipq-factory-nand
105 DEVICE_PACKAGES := kmod-spi-gpio kmod-spi-bitbang kmod-gpio-nxp-74hc164 \
106 ipq-wifi-netgear_wax218
107 endef
108 TARGET_DEVICES += netgear_wax218
109
110 define Device/prpl_haze
111 $(call Device/FitImage)
112 $(call Device/EmmcImage)
113 DEVICE_VENDOR := prpl Foundation
114 DEVICE_MODEL := Haze
115 DEVICE_DTS_CONFIG := config@hk09
116 SOC := ipq8072
117 DEVICE_PACKAGES += ath11k-firmware-qcn9074 ipq-wifi-prpl_haze kmod-ath11k-pci
118 endef
119 TARGET_DEVICES += prpl_haze
120
121 define Device/qnap_301w
122 $(call Device/FitImage)
123 $(call Device/EmmcImage)
124 DEVICE_VENDOR := QNAP
125 DEVICE_MODEL := 301w
126 DEVICE_DTS_CONFIG := config@hk01
127 KERNEL_SIZE := 16384k
128 SOC := ipq8072
129 DEVICE_PACKAGES += ipq-wifi-qnap_301w
130 endef
131 TARGET_DEVICES += qnap_301w
132
133 define Device/redmi_ax6
134 $(call Device/xiaomi_ax3600)
135 DEVICE_VENDOR := Redmi
136 DEVICE_MODEL := AX6
137 DEVICE_PACKAGES := ipq-wifi-redmi_ax6
138 endef
139 TARGET_DEVICES += redmi_ax6
140
141 define Device/xiaomi_ax3600
142 $(call Device/FitImage)
143 $(call Device/UbiFit)
144 DEVICE_VENDOR := Xiaomi
145 DEVICE_MODEL := AX3600
146 BLOCKSIZE := 128k
147 PAGESIZE := 2048
148 DEVICE_DTS_CONFIG := config@ac04
149 SOC := ipq8071
150 KERNEL_SIZE := 36608k
151 DEVICE_PACKAGES := ipq-wifi-xiaomi_ax3600 kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9887-ct
152 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
153 ARTIFACTS := initramfs-factory.ubi
154 ARTIFACT/initramfs-factory.ubi := append-image-stage initramfs-uImage.itb | ubinize-kernel
155 endif
156 endef
157 TARGET_DEVICES += xiaomi_ax3600
158
159 define Device/xiaomi_ax9000
160 $(call Device/FitImage)
161 $(call Device/UbiFit)
162 DEVICE_VENDOR := Xiaomi
163 DEVICE_MODEL := AX9000
164 BLOCKSIZE := 128k
165 PAGESIZE := 2048
166 DEVICE_DTS_CONFIG := config@hk14
167 SOC := ipq8072
168 KERNEL_SIZE := 57344k
169 DEVICE_PACKAGES := ipq-wifi-xiaomi_ax9000 kmod-ath11k-pci ath11k-firmware-qcn9074 \
170 kmod-ath10k-ct ath10k-firmware-qca9887-ct
171 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
172 ARTIFACTS := initramfs-factory.ubi
173 ARTIFACT/initramfs-factory.ubi := append-image-stage initramfs-uImage.itb | ubinize-kernel
174 endif
175 endef
176 TARGET_DEVICES += xiaomi_ax9000
177
178 define Device/zyxel_nbg7815
179 $(call Device/FitImage)
180 $(call Device/EmmcImage)
181 DEVICE_VENDOR := ZYXEL
182 DEVICE_MODEL := NBG7815
183 DEVICE_DTS_CONFIG := config@nbg7815
184 SOC := ipq8074
185 DEVICE_PACKAGES += ipq-wifi-zyxel_nbg7815 kmod-ath11k-pci kmod-hwmon-tmp103 \
186 kmod-bluetooth
187 endef
188 TARGET_DEVICES += zyxel_nbg7815