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