ramips: image: drop redundant SUPPORTED_DEVICES
[openwrt/openwrt.git] / target / linux / ramips / image / mt76x8.mk
1 #
2 # MT76x8 Profiles
3 #
4
5 define Device/tplink
6 TPLINK_FLASHLAYOUT :=
7 TPLINK_HWID :=
8 TPLINK_HWREV :=
9 TPLINK_HWREVADD :=
10 TPLINK_HVERSION :=
11 KERNEL := $(KERNEL_DTB)
12 KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-v2-header -e
13 IMAGES += tftp-recovery.bin
14 IMAGE/factory.bin := tplink-v2-image -e
15 IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
16 IMAGE/sysupgrade.bin := tplink-v2-image -s -e | append-metadata | \
17 check-size $$$$(IMAGE_SIZE)
18 endef
19 DEVICE_VARS += TPLINK_FLASHLAYOUT TPLINK_HWID TPLINK_HWREV TPLINK_HWREVADD TPLINK_HVERSION
20
21
22 define Device/alfa-network_awusfree1
23 DTS := AWUSFREE1
24 IMAGE_SIZE := $(ralink_default_fw_size_8M)
25 DEVICE_TITLE := ALFA Network AWUSFREE1
26 DEVICE_PACKAGES := uboot-envtools
27 endef
28 TARGET_DEVICES += alfa-network_awusfree1
29
30 define Device/tama_w06
31 DTS := W06
32 IMAGE_SIZE := 15040k
33 DEVICE_TITLE := Tama W06
34 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
35 endef
36 TARGET_DEVICES += tama_w06
37
38 define Device/duzun-dm06
39 DTS := DUZUN-DM06
40 DEVICE_TITLE := DuZun DM06
41 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
42 endef
43 TARGET_DEVICES += duzun-dm06
44
45 define Device/gl-mt300n-v2
46 DTS := GL-MT300N-V2
47 IMAGE_SIZE := 16064k
48 DEVICE_TITLE := GL-iNet GL-MT300N-V2
49 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
50 endef
51 TARGET_DEVICES += gl-mt300n-v2
52
53 define Device/hc5661a
54 DTS := HC5661A
55 IMAGE_SIZE := $(ralink_default_fw_size_16M)
56 DEVICE_TITLE := HiWiFi HC5661A
57 endef
58 TARGET_DEVICES += hc5661a
59
60 define Device/LinkIt7688
61 DTS := LINKIT7688
62 IMAGE_SIZE := $(ralink_default_fw_size_32M)
63 SUPPORTED_DEVICES := linkits7688 linkits7688d
64 DEVICE_TITLE := MediaTek LinkIt Smart 7688
65 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci uboot-envtools
66 endef
67 TARGET_DEVICES += LinkIt7688
68
69 define Device/mac1200r-v2
70 DTS := MAC1200RV2
71 DEVICE_TITLE := Mercury MAC1200R v2.0
72 SUPPORTED_DEVICES := mac1200rv2
73 endef
74 TARGET_DEVICES += mac1200r-v2
75
76 define Device/miwifi-nano
77 DTS := MIWIFI-NANO
78 IMAGE_SIZE := $(ralink_default_fw_size_16M)
79 DEVICE_TITLE := Xiaomi MiWiFi Nano
80 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
81 endef
82 TARGET_DEVICES += miwifi-nano
83
84 define Device/mt7628
85 DTS := MT7628
86 BLOCKSIZE := 64k
87 IMAGE_SIZE := $(ralink_default_fw_size_4M)
88 DEVICE_TITLE := MediaTek MT7628 EVB
89 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
90 endef
91
92 define Device/omega2
93 DTS := OMEGA2
94 IMAGE_SIZE := $(ralink_default_fw_size_16M)
95 DEVICE_TITLE := Onion Omega2
96 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci uboot-envtools
97 endef
98 TARGET_DEVICES += omega2
99
100 define Device/omega2p
101 DTS := OMEGA2P
102 IMAGE_SIZE := $(ralink_default_fw_size_32M)
103 DEVICE_TITLE := Onion Omega2+
104 DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci uboot-envtools kmod-sdhci-mt7620
105 endef
106 TARGET_DEVICES += omega2p
107
108 define Device/pbr-d1
109 DTS := PBR-D1
110 IMAGE_SIZE := $(ralink_default_fw_size_16M)
111 DEVICE_TITLE := PBR-D1
112 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
113 endef
114 TARGET_DEVICES += pbr-d1
115
116 define Device/tl-wr840n-v4
117 $(Device/tplink)
118 DTS := TL-WR840NV4
119 IMAGE_SIZE := 7808k
120 DEVICE_TITLE := TP-Link TL-WR840N v4
121 TPLINK_FLASHLAYOUT := 8Mmtk
122 TPLINK_HWID := 0x08400004
123 TPLINK_HWREV := 0x1
124 TPLINK_HWREVADD := 0x4
125 TPLINK_HVERSION := 3
126 endef
127 TARGET_DEVICES += tl-wr840n-v4
128
129 define Device/tl-wr840n-v5
130 DTS := TL-WR840NV5
131 IMAGE_SIZE := 3904k
132 DEVICE_TITLE := TP-Link TL-WR840N v5
133 TPLINK_FLASHLAYOUT := 4Mmtk
134 TPLINK_HWID := 0x08400005
135 TPLINK_HWREV := 0x1
136 TPLINK_HWREVADD := 0x5
137 TPLINK_HVERSION := 3
138 KERNEL := $(KERNEL_DTB)
139 KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-v2-header -e
140 IMAGE/sysupgrade.bin := tplink-v2-image -s -e | append-metadata | \
141 check-size $$$$(IMAGE_SIZE)
142 endef
143 TARGET_DEVICES += tl-wr840n-v5
144
145 define Device/tl-wr841n-v13
146 $(Device/tplink)
147 DTS := TL-WR841NV13
148 IMAGE_SIZE := 7808k
149 DEVICE_TITLE := TP-Link TL-WR841N v13
150 TPLINK_FLASHLAYOUT := 8Mmtk
151 TPLINK_HWID := 0x08410013
152 TPLINK_HWREV := 0x268
153 TPLINK_HWREVADD := 0x13
154 TPLINK_HVERSION := 3
155 endef
156 TARGET_DEVICES += tl-wr841n-v13
157
158 define Device/tplink_c20-v4
159 $(Device/tplink)
160 DTS := ArcherC20v4
161 IMAGE_SIZE := 7808k
162 DEVICE_TITLE := TP-Link ArcherC20 v4
163 TPLINK_FLASHLAYOUT := 8Mmtk
164 TPLINK_HWID := 0xc200004
165 TPLINK_HWREV := 0x1
166 TPLINK_HWREVADD := 0x4
167 TPLINK_HVERSION := 3
168 endef
169 TARGET_DEVICES += tplink_c20-v4
170
171 define Device/tplink_c50-v3
172 $(Device/tplink)
173 DTS := ArcherC50V3
174 IMAGE_SIZE := 7808k
175 DEVICE_TITLE := TP-Link ArcherC50 v3
176 TPLINK_FLASHLAYOUT := 8Mmtk
177 TPLINK_HWID := 0x001D9BA4
178 TPLINK_HWREV := 0x79
179 TPLINK_HWREVADD := 0x1
180 TPLINK_HVERSION := 3
181 endef
182 TARGET_DEVICES += tplink_c50-v3
183
184 define Device/tplink_tl-mr3420-v5
185 $(Device/tplink)
186 DTS := TL-MR3420V5
187 IMAGE_SIZE := 7808k
188 DEVICE_TITLE := TP-Link TL-MR3420 v5
189 TPLINK_FLASHLAYOUT := 8Mmtk
190 TPLINK_HWID := 0x34200005
191 TPLINK_HWREV := 0x5
192 TPLINK_HWREVADD := 0x5
193 TPLINK_HVERSION := 3
194 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
195 endef
196 TARGET_DEVICES += tplink_tl-mr3420-v5
197
198 define Device/tplink_tl-wr902ac-v3
199 $(Device/tplink)
200 DTS := TL-WR902ACV3
201 IMAGE_SIZE := 7808k
202 DEVICE_TITLE := TP-Link TL-WR902AC v3
203 TPLINK_FLASHLAYOUT := 8Mmtk
204 TPLINK_HWID := 0x000dc88f
205 TPLINK_HWREV := 0x89
206 TPLINK_HWREVADD := 0x1
207 TPLINK_HVERSION := 3
208 IMAGES += factory.bin
209 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
210 endef
211 TARGET_DEVICES += tplink_tl-wr902ac-v3
212
213 define Device/u7628-01-128M-16M
214 DTS := U7628-01-128M-16M
215 IMAGE_SIZE := 16064k
216 DEVICE_TITLE := UniElec U7628-01 (128M RAM/16M flash)
217 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
218 endef
219 TARGET_DEVICES += u7628-01-128M-16M
220
221 define Device/vocore2
222 DTS := VOCORE2
223 IMAGE_SIZE := $(ralink_default_fw_size_16M)
224 DEVICE_TITLE := VoCore VoCore2
225 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \
226 kmod-sdhci-mt7620
227 endef
228 TARGET_DEVICES += vocore2
229
230 define Device/vocore2lite
231 DTS := VOCORE2LITE
232 IMAGE_SIZE := $(ralink_default_fw_size_16M)
233 DEVICE_TITLE := VoCore VoCore2-Lite
234 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \
235 kmod-sdhci-mt7620
236 endef
237 TARGET_DEVICES += vocore2lite
238
239 define Device/wcr-1166ds
240 DTS := WCR-1166DS
241 BUFFALO_TAG_PLATFORM := MTK
242 BUFFALO_TAG_VERSION := 9.99
243 BUFFALO_TAG_MINOR := 9.99
244 IMAGES += factory.bin
245 IMAGE/sysupgrade.bin := trx | pad-rootfs | append-metadata
246 IMAGE/factory.bin := \
247 trx -M 0x746f435c | pad-rootfs | append-metadata | \
248 buffalo-enc WCR-1166DS $$(BUFFALO_TAG_VERSION) -l | \
249 buffalo-tag-dhp WCR-1166DS JP JP | buffalo-enc-tag -l | \
250 buffalo-dhp-image
251 DEVICE_TITLE := Buffalo WCR-1166DS
252 endef
253 TARGET_DEVICES += wcr-1166ds
254
255 define Device/wl-wn575a3
256 DTS := WL-WN575A3
257 IMAGE_SIZE := $(ralink_default_fw_size_8M)
258 DEVICE_TITLE := Wavlink WL-WN575A3
259 endef
260 TARGET_DEVICES += wl-wn575a3
261
262 define Device/widora_neo-16m
263 DTS := WIDORA-NEO-16M
264 IMAGE_SIZE := $(ralink_default_fw_size_16M)
265 DEVICE_TITLE := Widora-NEO (16M)
266 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
267 SUPPORTED_DEVICES += widora-neo
268 endef
269 TARGET_DEVICES += widora_neo-16m
270
271 define Device/widora_neo-32m
272 DTS := WIDORA-NEO-32M
273 IMAGE_SIZE := $(ralink_default_fw_size_32M)
274 DEVICE_TITLE := Widora-NEO (32M)
275 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
276 endef
277 TARGET_DEVICES += widora_neo-32m
278
279 define Device/wrtnode2p
280 DTS := WRTNODE2P
281 IMAGE_SIZE := $(ralink_default_fw_size_16M)
282 DEVICE_TITLE := WRTnode 2P
283 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
284 endef
285 TARGET_DEVICES += wrtnode2p
286
287 define Device/wrtnode2r
288 DTS := WRTNODE2R
289 IMAGE_SIZE := $(ralink_default_fw_size_16M)
290 DEVICE_TITLE := WRTnode 2R
291 DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
292 endef
293 TARGET_DEVICES += wrtnode2r
294
295 define Device/zbtlink_zbt-we1226
296 DTS := ZBT-WE1226
297 IMAGE_SIZE := $(ralink_default_fw_size_8M)
298 DEVICE_TITLE := ZBTlink ZBT-WE1226
299 endef
300 TARGET_DEVICES += zbtlink_zbt-we1226