blob: 964c4d59c5514846dc3b15de0d007b5cf45fa6eb [file] [log] [blame]
developer010cc992022-10-19 15:02:34 +08001KERNEL_LOADADDR := 0x48080000
2
3define Device/mediatek_mt7988a-gsw-10g-spim-nand
4 DEVICE_VENDOR := MediaTek
5 DEVICE_MODEL := mt7988a-gsw-10g-spim-nand
6 DEVICE_DTS := mt7988a-gsw-10g-spim-nand
7 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
8 SUPPORTED_DEVICES := mediatek,mt7988a-gsw-10g-spim-snand
9 UBINIZE_OPTS := -E 5
10 BLOCKSIZE := 128k
11 PAGESIZE := 2048
12 IMAGE_SIZE := 65536k
13 KERNEL_IN_UBI := 1
14 IMAGES += factory.bin
15 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
16 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
17endef
18TARGET_DEVICES += mediatek_mt7988a-gsw-10g-spim-nand
19
developeraa36a392022-10-26 17:30:21 +080020define Device/mediatek_mt7988a-gsw-10g-spim-nand-sb
21 DEVICE_VENDOR := MediaTek
22 DEVICE_MODEL := mt7988a-gsw-10g-spim-nand-sb
23 DEVICE_DTS := mt7988a-gsw-10g-spim-nand
24 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
25 SUPPORTED_DEVICES := mediatek,mt7988a-gsw-10g-spim-snand
26 DEVICE_PACKAGES := uboot-envtools dmsetup
27 UBINIZE_OPTS := -E 5
28 BLOCKSIZE := 128k
29 PAGESIZE := 2048
30 IMAGE_SIZE := 65536k
31 KERNEL_IN_UBI := 1
32 IMAGES += factory.bin
developer9c3f59e2023-04-27 19:32:20 +080033 IMAGE/factory.bin := append-ubi rootfs=$$$$(IMAGE_ROOTFS)-hashed-$$(firstword $$(DEVICE_DTS)) | check-size $$$$(IMAGE_SIZE)
developer0b66a352023-03-17 19:40:40 +080034 IMAGE/sysupgrade.bin := sysupgrade-tar rootfs=$$$$(IMAGE_ROOTFS)-hashed-$$(firstword $$(DEVICE_DTS)) | \
developeraa36a392022-10-26 17:30:21 +080035 append-metadata
36 FIT_KEY_DIR := $(TOPDIR)/../../keys
37 FIT_KEY_NAME := fit_key
38 ANTI_ROLLBACK_TABLE := $(TOPDIR)/../../fw_ar_table.xml
39 AUTO_AR_CONF := $(TOPDIR)/../../auto_ar_conf.mk
40 HASHED_BOOT_DEVICE := 253:0
41 BASIC_KERNEL_CMDLINE := console=ttyS0,115200n1 rootfstype=squashfs loglevel=8
42 KERNEL = kernel-bin | lzma | squashfs-hashed | fw-ar-ver | \
43 fit-sign lzma $$(KDIR)/image-sb-$$(firstword $$(DEVICE_DTS)).dtb
44 KERNEL_INITRAMFS =
45endef
46TARGET_DEVICES += mediatek_mt7988a-gsw-10g-spim-nand-sb
47DEFAULT_DEVICE_VARS += FIT_KEY_DIR FIT_KEY_NAME ANTI_ROLLBACK_TABLE \
48 AUTO_AR_CONF HASHED_BOOT_DEVICE BASIC_KERNEL_CMDLINE
49
developera0ea3012023-03-14 20:09:06 +080050define Device/mediatek_mt7988a-dsa-10g-emmc-sb
51 DEVICE_VENDOR := MediaTek
52 DEVICE_MODEL := mt7988a-dsa-10g-emmc-sb
53 DEVICE_DTS := mt7988a-dsa-10g-emmc
54 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
55 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-10g-emmc
56 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
57 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
58 kmod-nls-iso8859-1 uboot-envtools dmsetup
developer0b66a352023-03-17 19:40:40 +080059 IMAGE/sysupgrade.bin := sysupgrade-tar rootfs=$$$$(IMAGE_ROOTFS)-hashed-$$(firstword $$(DEVICE_DTS)) | \
developera0ea3012023-03-14 20:09:06 +080060 append-metadata
61 FIT_KEY_DIR := $(TOPDIR)/../../keys
62 FIT_KEY_NAME := fit_key
63 ANTI_ROLLBACK_TABLE := $(TOPDIR)/../../fw_ar_table.xml
64 AUTO_AR_CONF := $(TOPDIR)/../../auto_ar_conf.mk
65 BASIC_KERNEL_CMDLINE := console=ttyS0,115200n1 rootfstype=squashfs,f2fs loglevel=8
66 KERNEL = kernel-bin | lzma | squashfs-hashed | fw-ar-ver | \
67 fit-sign lzma $$(KDIR)/image-sb-$$(firstword $$(DEVICE_DTS)).dtb
68 KERNEL_INITRAMFS =
69endef
70TARGET_DEVICES += mediatek_mt7988a-dsa-10g-emmc-sb
71DEFAULT_DEVICE_VARS += FIT_KEY_DIR FIT_KEY_NAME ANTI_ROLLBACK_TABLE \
72 AUTO_AR_CONF BASIC_KERNEL_CMDLINE
73
developer010cc992022-10-19 15:02:34 +080074define Device/mediatek_mt7988a-gsw-10g-spim-nand-4pcie
75 DEVICE_VENDOR := MediaTek
76 DEVICE_MODEL := mt7988a-gsw-10g-spim-nand-4pcie
77 DEVICE_DTS := mt7988a-gsw-10g-spim-nand-4pcie
78 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
79 SUPPORTED_DEVICES := mediatek,mt7988a-gsw-10g-spim-snand-4pcie
80 UBINIZE_OPTS := -E 5
81 BLOCKSIZE := 128k
82 PAGESIZE := 2048
83 IMAGE_SIZE := 65536k
84 KERNEL_IN_UBI := 1
85 IMAGES += factory.bin
86 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
87 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
88endef
89TARGET_DEVICES += mediatek_mt7988a-gsw-10g-spim-nand-4pcie
90
91define Device/mediatek_mt7988a-gsw-10g-sfp-spim-nand
92 DEVICE_VENDOR := MediaTek
93 DEVICE_MODEL := mt7988a-gsw-10g-sfp-spim-nand
94 DEVICE_DTS := mt7988a-gsw-10g-sfp-spim-nand
95 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
96 SUPPORTED_DEVICES := mediatek,mt7988a-gsw-10g-sfp-spim-snand
97 UBINIZE_OPTS := -E 5
98 BLOCKSIZE := 128k
99 PAGESIZE := 2048
100 IMAGE_SIZE := 65536k
101 KERNEL_IN_UBI := 1
102 IMAGES += factory.bin
103 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
104 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
105endef
106TARGET_DEVICES += mediatek_mt7988a-gsw-10g-sfp-spim-nand
107
108define Device/mediatek_mt7988a-dsa-10g-spim-nand
109 DEVICE_VENDOR := MediaTek
110 DEVICE_MODEL := mt7988a-dsa-10g-spim-nand
111 DEVICE_DTS := mt7988a-dsa-10g-spim-nand
112 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
113 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-10g-spim-snand
114 UBINIZE_OPTS := -E 5
115 BLOCKSIZE := 128k
116 PAGESIZE := 2048
117 IMAGE_SIZE := 65536k
118 KERNEL_IN_UBI := 1
119 IMAGES += factory.bin
120 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
121 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
122endef
123TARGET_DEVICES += mediatek_mt7988a-dsa-10g-spim-nand
124
developer0d09a902023-05-05 17:32:24 +0800125define Device/mediatek_mt7988a-88d-10g-spim-nand
126 DEVICE_VENDOR := MediaTek
127 DEVICE_MODEL := mt7988a-88d-10g-spim-nand
128 DEVICE_DTS := mt7988a-88d-10g-spim-nand
129 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
130 SUPPORTED_DEVICES := mediatek,mt7988a-88d-10g-spim-snand
131 UBINIZE_OPTS := -E 5
132 BLOCKSIZE := 128k
133 PAGESIZE := 2048
134 IMAGE_SIZE := 65536k
135 KERNEL_IN_UBI := 1
136 IMAGES += factory.bin
137 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
138 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
139endef
140TARGET_DEVICES += mediatek_mt7988a-88d-10g-spim-nand
141
developer010cc992022-10-19 15:02:34 +0800142define Device/mediatek_mt7988a-dsa-e2p5g-spim-nand
143 DEVICE_VENDOR := MediaTek
144 DEVICE_MODEL := mt7988a-dsa-e2p5g-spim-nand
145 DEVICE_DTS := mt7988a-dsa-e2p5g-spim-nand
146 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
147 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-e2p5g-spim-nand
148 UBINIZE_OPTS := -E 5
149 BLOCKSIZE := 128k
150 PAGESIZE := 2048
151 IMAGE_SIZE := 65536k
152 KERNEL_IN_UBI := 1
153 IMAGES += factory.bin
154 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
155 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
156endef
157TARGET_DEVICES += mediatek_mt7988a-dsa-e2p5g-spim-nand
158
159define Device/mediatek_mt7988a-dsa-i2p5g-spim-nand
160 DEVICE_VENDOR := MediaTek
161 DEVICE_MODEL := mt7988a-dsa-i2p5g-spim-nand
162 DEVICE_DTS := mt7988a-dsa-i2p5g-spim-nand
163 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
164 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-i2p5g-spim-nand
165 UBINIZE_OPTS := -E 5
166 BLOCKSIZE := 128k
167 PAGESIZE := 2048
168 IMAGE_SIZE := 65536k
169 KERNEL_IN_UBI := 1
170 IMAGES += factory.bin
171 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
172 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
173endef
174TARGET_DEVICES += mediatek_mt7988a-dsa-i2p5g-spim-nand
175
176define Device/mediatek_mt7988a-dsa-10g-snfi-nand
177 DEVICE_VENDOR := MediaTek
178 DEVICE_MODEL := mt7988a-dsa-10g-snfi-nand
179 DEVICE_DTS := mt7988a-dsa-10g-snfi-nand
180 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
181 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-10g-snfi-nand
182 UBINIZE_OPTS := -E 5
183 BLOCKSIZE := 128k
184 PAGESIZE := 2048
185 IMAGE_SIZE := 65536k
186 KERNEL_IN_UBI := 1
187 IMAGES += factory.bin
188 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
189 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
190endef
191TARGET_DEVICES += mediatek_mt7988a-dsa-10g-snfi-nand
192
193define Device/mediatek_mt7988a-dsa-10g-spim-nor
194 DEVICE_VENDOR := MediaTek
195 DEVICE_MODEL := mt7988a-dsa-10g-spim-nor
196 DEVICE_DTS := mt7988a-dsa-10g-spim-nor
197 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
198 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-10g-spim-nor
199endef
200TARGET_DEVICES += mediatek_mt7988a-dsa-10g-spim-nor
201
202define Device/mediatek_mt7988a-dsa-10g-emmc
203 DEVICE_VENDOR := MediaTek
204 DEVICE_MODEL := mt7988a-dsa-10g-emmc
205 DEVICE_DTS := mt7988a-dsa-10g-emmc
206 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-10g-emmc
207 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
208 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
209 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
210 kmod-nls-iso8859-1
211 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
212endef
213TARGET_DEVICES += mediatek_mt7988a-dsa-10g-emmc
214
215define Device/mediatek_mt7988a-dsa-10g-sd
216 DEVICE_VENDOR := MediaTek
217 DEVICE_MODEL := mt7988a-dsa-10g-sd
218 DEVICE_DTS := mt7988a-dsa-10g-sd
219 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-10g-sd
220 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
221 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
222 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
223 kmod-nls-iso8859-1
224 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
225endef
developeraa36a392022-10-26 17:30:21 +0800226TARGET_DEVICES += mediatek_mt7988a-dsa-10g-sd
developerc54ce9d2023-01-03 13:30:49 +0800227
228define Device/mediatek_mt7988c-gsw-10g-spim-nand
229 DEVICE_VENDOR := MediaTek
230 DEVICE_MODEL := mt7988c-gsw-10g-spim-nand
231 DEVICE_DTS := mt7988c-gsw-10g-spim-nand
232 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
233 SUPPORTED_DEVICES := mediatek,mt7988c-gsw-10g-spim-snand
234 UBINIZE_OPTS := -E 5
235 BLOCKSIZE := 128k
236 PAGESIZE := 2048
237 IMAGE_SIZE := 65536k
238 KERNEL_IN_UBI := 1
239 IMAGES += factory.bin
240 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
241 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
242endef
243TARGET_DEVICES += mediatek_mt7988c-gsw-10g-spim-nand
244
245define Device/mediatek_mt7988c-gsw-10g-sfp-spim-nand
246 DEVICE_VENDOR := MediaTek
247 DEVICE_MODEL := mt7988c-gsw-10g-sfp-spim-nand
248 DEVICE_DTS := mt7988c-gsw-10g-sfp-spim-nand
249 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
250 SUPPORTED_DEVICES := mediatek,mt7988c-gsw-10g-sfp-spim-snand
251 UBINIZE_OPTS := -E 5
252 BLOCKSIZE := 128k
253 PAGESIZE := 2048
254 IMAGE_SIZE := 65536k
255 KERNEL_IN_UBI := 1
256 IMAGES += factory.bin
257 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
258 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
259endef
260TARGET_DEVICES += mediatek_mt7988c-gsw-10g-sfp-spim-nand
261
262define Device/mediatek_mt7988c-dsa-10g-spim-nand
263 DEVICE_VENDOR := MediaTek
264 DEVICE_MODEL := mt7988c-dsa-10g-spim-nand
265 DEVICE_DTS := mt7988c-dsa-10g-spim-nand
266 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
267 SUPPORTED_DEVICES := mediatek,mt7988c-dsa-10g-spim-snand
268 UBINIZE_OPTS := -E 5
269 BLOCKSIZE := 128k
270 PAGESIZE := 2048
271 IMAGE_SIZE := 65536k
272 KERNEL_IN_UBI := 1
273 IMAGES += factory.bin
274 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
275 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
276endef
277TARGET_DEVICES += mediatek_mt7988c-dsa-10g-spim-nand
278
279define Device/mediatek_mt7988c-dsa-e2p5g-spim-nand
280 DEVICE_VENDOR := MediaTek
281 DEVICE_MODEL := mt7988c-dsa-e2p5g-spim-nand
282 DEVICE_DTS := mt7988c-dsa-e2p5g-spim-nand
283 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
284 SUPPORTED_DEVICES := mediatek,mt7988c-dsa-e2p5g-spim-nand
285 UBINIZE_OPTS := -E 5
286 BLOCKSIZE := 128k
287 PAGESIZE := 2048
288 IMAGE_SIZE := 65536k
289 KERNEL_IN_UBI := 1
290 IMAGES += factory.bin
291 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
292 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
293endef
294TARGET_DEVICES += mediatek_mt7988c-dsa-e2p5g-spim-nand
295
developerc54ce9d2023-01-03 13:30:49 +0800296define Device/mediatek_mt7988c-dsa-10g-snfi-nand
297 DEVICE_VENDOR := MediaTek
298 DEVICE_MODEL := mt7988c-dsa-10g-snfi-nand
299 DEVICE_DTS := mt7988c-dsa-10g-snfi-nand
300 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
301 SUPPORTED_DEVICES := mediatek,mt7988c-dsa-10g-snfi-nand
302 UBINIZE_OPTS := -E 5
303 BLOCKSIZE := 128k
304 PAGESIZE := 2048
305 IMAGE_SIZE := 65536k
306 KERNEL_IN_UBI := 1
307 IMAGES += factory.bin
308 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
309 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
310endef
311TARGET_DEVICES += mediatek_mt7988c-dsa-10g-snfi-nand
312
313define Device/mediatek_mt7988c-dsa-10g-spim-nor
314 DEVICE_VENDOR := MediaTek
315 DEVICE_MODEL := mt7988c-dsa-10g-spim-nor
316 DEVICE_DTS := mt7988c-dsa-10g-spim-nor
317 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
318 SUPPORTED_DEVICES := mediatek,mt7988c-dsa-10g-spim-nor
319endef
320TARGET_DEVICES += mediatek_mt7988c-dsa-10g-spim-nor
321
322define Device/mediatek_mt7988c-dsa-10g-emmc
323 DEVICE_VENDOR := MediaTek
324 DEVICE_MODEL := mt7988c-dsa-10g-emmc
325 DEVICE_DTS := mt7988c-dsa-10g-emmc
326 SUPPORTED_DEVICES := mediatek,mt7988c-dsa-10g-emmc
327 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
328 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
329 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
330 kmod-nls-iso8859-1
331 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
332endef
333TARGET_DEVICES += mediatek_mt7988c-dsa-10g-emmc
334
335define Device/mediatek_mt7988c-dsa-10g-sd
336 DEVICE_VENDOR := MediaTek
337 DEVICE_MODEL := mt7988c-dsa-10g-sd
338 DEVICE_DTS := mt7988c-dsa-10g-sd
339 SUPPORTED_DEVICES := mediatek,mt7988c-dsa-10g-sd
340 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
341 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
342 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
343 kmod-nls-iso8859-1
344 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
345endef
346TARGET_DEVICES += mediatek_mt7988c-dsa-10g-sd