blob: e1a727503165a15a9fb01c66a4aad43c2cdd42d9 [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
developereeec1bd2023-10-12 17:46:09 +080037 ROE_KEY_DIR := $(TOPDIR)/../../keys
developeraa36a392022-10-26 17:30:21 +080038 FIT_KEY_NAME := fit_key
developereeec1bd2023-10-12 17:46:09 +080039 ROE_KEY_NAME := roe_key
40 FIRMWARE_ENC_ALGO := tee_aes256
developeraa36a392022-10-26 17:30:21 +080041 ANTI_ROLLBACK_TABLE := $(TOPDIR)/../../fw_ar_table.xml
42 AUTO_AR_CONF := $(TOPDIR)/../../auto_ar_conf.mk
43 HASHED_BOOT_DEVICE := 253:0
44 BASIC_KERNEL_CMDLINE := console=ttyS0,115200n1 rootfstype=squashfs loglevel=8
developer2622d462023-06-08 09:28:30 +080045 KERNEL = append-opteenode $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb | \
developereeec1bd2023-10-12 17:46:09 +080046 kernel-bin | lzma | squashfs-hashed | fw-ar-ver | hkdf | \
developeraa36a392022-10-26 17:30:21 +080047 fit-sign lzma $$(KDIR)/image-sb-$$(firstword $$(DEVICE_DTS)).dtb
48 KERNEL_INITRAMFS =
49endef
50TARGET_DEVICES += mediatek_mt7988a-gsw-10g-spim-nand-sb
51DEFAULT_DEVICE_VARS += FIT_KEY_DIR FIT_KEY_NAME ANTI_ROLLBACK_TABLE \
developereeec1bd2023-10-12 17:46:09 +080052 AUTO_AR_CONF HASHED_BOOT_DEVICE BASIC_KERNEL_CMDLINE ROE_KEY_DIR \
53 ROE_KEY_NAME FIRMWARE_ENC_ALGO
developeraa36a392022-10-26 17:30:21 +080054
developera0ea3012023-03-14 20:09:06 +080055define Device/mediatek_mt7988a-dsa-10g-emmc-sb
56 DEVICE_VENDOR := MediaTek
57 DEVICE_MODEL := mt7988a-dsa-10g-emmc-sb
58 DEVICE_DTS := mt7988a-dsa-10g-emmc
59 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
60 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-10g-emmc
61 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
62 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
63 kmod-nls-iso8859-1 uboot-envtools dmsetup
developer0b66a352023-03-17 19:40:40 +080064 IMAGE/sysupgrade.bin := sysupgrade-tar rootfs=$$$$(IMAGE_ROOTFS)-hashed-$$(firstword $$(DEVICE_DTS)) | \
developera0ea3012023-03-14 20:09:06 +080065 append-metadata
66 FIT_KEY_DIR := $(TOPDIR)/../../keys
67 FIT_KEY_NAME := fit_key
68 ANTI_ROLLBACK_TABLE := $(TOPDIR)/../../fw_ar_table.xml
69 AUTO_AR_CONF := $(TOPDIR)/../../auto_ar_conf.mk
70 BASIC_KERNEL_CMDLINE := console=ttyS0,115200n1 rootfstype=squashfs,f2fs loglevel=8
developer2622d462023-06-08 09:28:30 +080071 KERNEL = append-opteenode $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb | \
72 kernel-bin | lzma | squashfs-hashed | fw-ar-ver | \
developera0ea3012023-03-14 20:09:06 +080073 fit-sign lzma $$(KDIR)/image-sb-$$(firstword $$(DEVICE_DTS)).dtb
74 KERNEL_INITRAMFS =
75endef
76TARGET_DEVICES += mediatek_mt7988a-dsa-10g-emmc-sb
77DEFAULT_DEVICE_VARS += FIT_KEY_DIR FIT_KEY_NAME ANTI_ROLLBACK_TABLE \
78 AUTO_AR_CONF BASIC_KERNEL_CMDLINE
79
developer010cc992022-10-19 15:02:34 +080080define Device/mediatek_mt7988a-gsw-10g-spim-nand-4pcie
81 DEVICE_VENDOR := MediaTek
82 DEVICE_MODEL := mt7988a-gsw-10g-spim-nand-4pcie
83 DEVICE_DTS := mt7988a-gsw-10g-spim-nand-4pcie
84 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
85 SUPPORTED_DEVICES := mediatek,mt7988a-gsw-10g-spim-snand-4pcie
86 UBINIZE_OPTS := -E 5
87 BLOCKSIZE := 128k
88 PAGESIZE := 2048
89 IMAGE_SIZE := 65536k
90 KERNEL_IN_UBI := 1
91 IMAGES += factory.bin
92 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
93 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
94endef
95TARGET_DEVICES += mediatek_mt7988a-gsw-10g-spim-nand-4pcie
96
97define Device/mediatek_mt7988a-gsw-10g-sfp-spim-nand
98 DEVICE_VENDOR := MediaTek
99 DEVICE_MODEL := mt7988a-gsw-10g-sfp-spim-nand
100 DEVICE_DTS := mt7988a-gsw-10g-sfp-spim-nand
101 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
102 SUPPORTED_DEVICES := mediatek,mt7988a-gsw-10g-sfp-spim-snand
103 UBINIZE_OPTS := -E 5
104 BLOCKSIZE := 128k
105 PAGESIZE := 2048
106 IMAGE_SIZE := 65536k
107 KERNEL_IN_UBI := 1
108 IMAGES += factory.bin
109 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
110 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
111endef
112TARGET_DEVICES += mediatek_mt7988a-gsw-10g-sfp-spim-nand
113
developerd4f92102023-09-11 09:26:54 +0800114define Device/mediatek_mt7988a-dsa-10g-sfp-spim-nand
115 DEVICE_VENDOR := MediaTek
116 DEVICE_MODEL := mt7988a-dsa-10g-sfp-spim-nand
117 DEVICE_DTS := mt7988a-dsa-10g-sfp-spim-nand
118 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
119 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-10g-sfp-spim-snand
120 UBINIZE_OPTS := -E 5
121 BLOCKSIZE := 128k
122 PAGESIZE := 2048
123 IMAGE_SIZE := 65536k
124 KERNEL_IN_UBI := 1
125 IMAGES += factory.bin
126 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
127 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
128endef
129TARGET_DEVICES += mediatek_mt7988a-dsa-10g-sfp-spim-nand
130
developer010cc992022-10-19 15:02:34 +0800131define Device/mediatek_mt7988a-dsa-10g-spim-nand
132 DEVICE_VENDOR := MediaTek
133 DEVICE_MODEL := mt7988a-dsa-10g-spim-nand
134 DEVICE_DTS := mt7988a-dsa-10g-spim-nand
135 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
136 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-10g-spim-snand
137 UBINIZE_OPTS := -E 5
138 BLOCKSIZE := 128k
139 PAGESIZE := 2048
140 IMAGE_SIZE := 65536k
141 KERNEL_IN_UBI := 1
142 IMAGES += factory.bin
143 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
144 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
145endef
146TARGET_DEVICES += mediatek_mt7988a-dsa-10g-spim-nand
147
developere2281fe2023-11-02 18:47:09 +0800148
149define Device/mediatek_mt7988a-dsa-10g-spim-nand-CASAN
150 DEVICE_VENDOR := MediaTek
151 DEVICE_MODEL := mt7988a-dsa-10g-spim-nand-CASAN
152 DEVICE_DTS := mt7988a-dsa-10g-spim-nand-CASAN
153 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
154 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-10g-spim-snand-CASAN
155 UBINIZE_OPTS := -E 5
156 BLOCKSIZE := 128k
157 PAGESIZE := 2048
158 IMAGE_SIZE := 65536k
159 KERNEL_IN_UBI := 1
160 IMAGES += factory.bin
161 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
162 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
163endef
164TARGET_DEVICES += mediatek_mt7988a-dsa-10g-spim-nand-CASAN
165
developer0d09a902023-05-05 17:32:24 +0800166define Device/mediatek_mt7988a-88d-10g-spim-nand
167 DEVICE_VENDOR := MediaTek
168 DEVICE_MODEL := mt7988a-88d-10g-spim-nand
169 DEVICE_DTS := mt7988a-88d-10g-spim-nand
170 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
171 SUPPORTED_DEVICES := mediatek,mt7988a-88d-10g-spim-snand
172 UBINIZE_OPTS := -E 5
173 BLOCKSIZE := 128k
174 PAGESIZE := 2048
175 IMAGE_SIZE := 65536k
176 KERNEL_IN_UBI := 1
177 IMAGES += factory.bin
178 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
179 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
180endef
181TARGET_DEVICES += mediatek_mt7988a-88d-10g-spim-nand
182
developer010cc992022-10-19 15:02:34 +0800183define Device/mediatek_mt7988a-dsa-e2p5g-spim-nand
184 DEVICE_VENDOR := MediaTek
185 DEVICE_MODEL := mt7988a-dsa-e2p5g-spim-nand
186 DEVICE_DTS := mt7988a-dsa-e2p5g-spim-nand
187 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
188 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-e2p5g-spim-nand
189 UBINIZE_OPTS := -E 5
190 BLOCKSIZE := 128k
191 PAGESIZE := 2048
192 IMAGE_SIZE := 65536k
193 KERNEL_IN_UBI := 1
194 IMAGES += factory.bin
195 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
196 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
197endef
198TARGET_DEVICES += mediatek_mt7988a-dsa-e2p5g-spim-nand
199
200define Device/mediatek_mt7988a-dsa-i2p5g-spim-nand
201 DEVICE_VENDOR := MediaTek
202 DEVICE_MODEL := mt7988a-dsa-i2p5g-spim-nand
203 DEVICE_DTS := mt7988a-dsa-i2p5g-spim-nand
204 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
205 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-i2p5g-spim-nand
206 UBINIZE_OPTS := -E 5
207 BLOCKSIZE := 128k
208 PAGESIZE := 2048
209 IMAGE_SIZE := 65536k
210 KERNEL_IN_UBI := 1
211 IMAGES += factory.bin
212 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
213 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
214endef
215TARGET_DEVICES += mediatek_mt7988a-dsa-i2p5g-spim-nand
216
217define Device/mediatek_mt7988a-dsa-10g-snfi-nand
218 DEVICE_VENDOR := MediaTek
219 DEVICE_MODEL := mt7988a-dsa-10g-snfi-nand
220 DEVICE_DTS := mt7988a-dsa-10g-snfi-nand
221 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
222 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-10g-snfi-nand
223 UBINIZE_OPTS := -E 5
224 BLOCKSIZE := 128k
225 PAGESIZE := 2048
226 IMAGE_SIZE := 65536k
227 KERNEL_IN_UBI := 1
228 IMAGES += factory.bin
229 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
230 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
231endef
232TARGET_DEVICES += mediatek_mt7988a-dsa-10g-snfi-nand
233
234define Device/mediatek_mt7988a-dsa-10g-spim-nor
235 DEVICE_VENDOR := MediaTek
236 DEVICE_MODEL := mt7988a-dsa-10g-spim-nor
237 DEVICE_DTS := mt7988a-dsa-10g-spim-nor
238 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
239 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-10g-spim-nor
240endef
241TARGET_DEVICES += mediatek_mt7988a-dsa-10g-spim-nor
242
243define Device/mediatek_mt7988a-dsa-10g-emmc
244 DEVICE_VENDOR := MediaTek
245 DEVICE_MODEL := mt7988a-dsa-10g-emmc
246 DEVICE_DTS := mt7988a-dsa-10g-emmc
247 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-10g-emmc
248 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
249 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
250 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
251 kmod-nls-iso8859-1
252 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
253endef
254TARGET_DEVICES += mediatek_mt7988a-dsa-10g-emmc
255
256define Device/mediatek_mt7988a-dsa-10g-sd
257 DEVICE_VENDOR := MediaTek
258 DEVICE_MODEL := mt7988a-dsa-10g-sd
259 DEVICE_DTS := mt7988a-dsa-10g-sd
260 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-10g-sd
261 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
262 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
263 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
264 kmod-nls-iso8859-1
265 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
266endef
developeraa36a392022-10-26 17:30:21 +0800267TARGET_DEVICES += mediatek_mt7988a-dsa-10g-sd
developerc54ce9d2023-01-03 13:30:49 +0800268
developer3f9a06c2023-05-23 15:16:44 +0800269define Device/mediatek_mt7988d-gsw-10g-spim-nand
developerc54ce9d2023-01-03 13:30:49 +0800270 DEVICE_VENDOR := MediaTek
developer3f9a06c2023-05-23 15:16:44 +0800271 DEVICE_MODEL := mt7988d-gsw-10g-spim-nand
272 DEVICE_DTS := mt7988d-gsw-10g-spim-nand
developerc54ce9d2023-01-03 13:30:49 +0800273 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer3f9a06c2023-05-23 15:16:44 +0800274 SUPPORTED_DEVICES := mediatek,mt7988d-gsw-10g-spim-snand
developerc54ce9d2023-01-03 13:30:49 +0800275 UBINIZE_OPTS := -E 5
276 BLOCKSIZE := 128k
277 PAGESIZE := 2048
278 IMAGE_SIZE := 65536k
279 KERNEL_IN_UBI := 1
280 IMAGES += factory.bin
281 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
282 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
283endef
developer3f9a06c2023-05-23 15:16:44 +0800284TARGET_DEVICES += mediatek_mt7988d-gsw-10g-spim-nand
developerc54ce9d2023-01-03 13:30:49 +0800285
developer3f9a06c2023-05-23 15:16:44 +0800286define Device/mediatek_mt7988d-gsw-10g-sfp-spim-nand
developerc54ce9d2023-01-03 13:30:49 +0800287 DEVICE_VENDOR := MediaTek
developer3f9a06c2023-05-23 15:16:44 +0800288 DEVICE_MODEL := mt7988d-gsw-10g-sfp-spim-nand
289 DEVICE_DTS := mt7988d-gsw-10g-sfp-spim-nand
developerc54ce9d2023-01-03 13:30:49 +0800290 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer3f9a06c2023-05-23 15:16:44 +0800291 SUPPORTED_DEVICES := mediatek,mt7988d-gsw-10g-sfp-spim-snand
developerc54ce9d2023-01-03 13:30:49 +0800292 UBINIZE_OPTS := -E 5
293 BLOCKSIZE := 128k
294 PAGESIZE := 2048
295 IMAGE_SIZE := 65536k
296 KERNEL_IN_UBI := 1
297 IMAGES += factory.bin
298 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
299 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
300endef
developer3f9a06c2023-05-23 15:16:44 +0800301TARGET_DEVICES += mediatek_mt7988d-gsw-10g-sfp-spim-nand
developerc54ce9d2023-01-03 13:30:49 +0800302
developerd4f92102023-09-11 09:26:54 +0800303define Device/mediatek_mt7988d-dsa-10g-sfp-spim-nand
304 DEVICE_VENDOR := MediaTek
305 DEVICE_MODEL := mt7988d-dsa-10g-sfp-spim-nand
306 DEVICE_DTS := mt7988d-dsa-10g-sfp-spim-nand
307 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
308 SUPPORTED_DEVICES := mediatek,mt7988d-dsa-10g-sfp-spim-snand
309 UBINIZE_OPTS := -E 5
310 BLOCKSIZE := 128k
311 PAGESIZE := 2048
312 IMAGE_SIZE := 65536k
313 KERNEL_IN_UBI := 1
314 IMAGES += factory.bin
315 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
316 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
317endef
318TARGET_DEVICES += mediatek_mt7988d-dsa-10g-sfp-spim-nand
319
developer3f9a06c2023-05-23 15:16:44 +0800320define Device/mediatek_mt7988d-dsa-10g-spim-nand
developerc54ce9d2023-01-03 13:30:49 +0800321 DEVICE_VENDOR := MediaTek
developer3f9a06c2023-05-23 15:16:44 +0800322 DEVICE_MODEL := mt7988d-dsa-10g-spim-nand
323 DEVICE_DTS := mt7988d-dsa-10g-spim-nand
developerc54ce9d2023-01-03 13:30:49 +0800324 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer3f9a06c2023-05-23 15:16:44 +0800325 SUPPORTED_DEVICES := mediatek,mt7988d-dsa-10g-spim-snand
developerc54ce9d2023-01-03 13:30:49 +0800326 UBINIZE_OPTS := -E 5
327 BLOCKSIZE := 128k
328 PAGESIZE := 2048
329 IMAGE_SIZE := 65536k
330 KERNEL_IN_UBI := 1
331 IMAGES += factory.bin
332 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
333 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
334endef
developer3f9a06c2023-05-23 15:16:44 +0800335TARGET_DEVICES += mediatek_mt7988d-dsa-10g-spim-nand
developerc54ce9d2023-01-03 13:30:49 +0800336
developere2281fe2023-11-02 18:47:09 +0800337define Device/mediatek_mt7988d-dsa-10g-spim-nand-CASAN
338 DEVICE_VENDOR := MediaTek
339 DEVICE_MODEL := mt7988d-dsa-10g-spim-nand-CASAN
340 DEVICE_DTS := mt7988d-dsa-10g-spim-nand-CASAN
341 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
342 SUPPORTED_DEVICES := mediatek,mt7988d-dsa-10g-spim-snand-CASAN
343 UBINIZE_OPTS := -E 5
344 BLOCKSIZE := 128k
345 PAGESIZE := 2048
346 IMAGE_SIZE := 65536k
347 KERNEL_IN_UBI := 1
348 IMAGES += factory.bin
349 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
350 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
351endef
352TARGET_DEVICES += mediatek_mt7988d-dsa-10g-spim-nand-CASAN
353
developer3f9a06c2023-05-23 15:16:44 +0800354define Device/mediatek_mt7988d-dsa-e2p5g-spim-nand
developerc54ce9d2023-01-03 13:30:49 +0800355 DEVICE_VENDOR := MediaTek
developer3f9a06c2023-05-23 15:16:44 +0800356 DEVICE_MODEL := mt7988d-dsa-e2p5g-spim-nand
357 DEVICE_DTS := mt7988d-dsa-e2p5g-spim-nand
developerc54ce9d2023-01-03 13:30:49 +0800358 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer3f9a06c2023-05-23 15:16:44 +0800359 SUPPORTED_DEVICES := mediatek,mt7988d-dsa-e2p5g-spim-nand
developerc54ce9d2023-01-03 13:30:49 +0800360 UBINIZE_OPTS := -E 5
361 BLOCKSIZE := 128k
362 PAGESIZE := 2048
363 IMAGE_SIZE := 65536k
364 KERNEL_IN_UBI := 1
365 IMAGES += factory.bin
366 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
367 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
368endef
developer3f9a06c2023-05-23 15:16:44 +0800369TARGET_DEVICES += mediatek_mt7988d-dsa-e2p5g-spim-nand
developerc54ce9d2023-01-03 13:30:49 +0800370
developer3f9a06c2023-05-23 15:16:44 +0800371define Device/mediatek_mt7988d-dsa-10g-snfi-nand
developerc54ce9d2023-01-03 13:30:49 +0800372 DEVICE_VENDOR := MediaTek
developer3f9a06c2023-05-23 15:16:44 +0800373 DEVICE_MODEL := mt7988d-dsa-10g-snfi-nand
374 DEVICE_DTS := mt7988d-dsa-10g-snfi-nand
developerc54ce9d2023-01-03 13:30:49 +0800375 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer3f9a06c2023-05-23 15:16:44 +0800376 SUPPORTED_DEVICES := mediatek,mt7988d-dsa-10g-snfi-nand
developerc54ce9d2023-01-03 13:30:49 +0800377 UBINIZE_OPTS := -E 5
378 BLOCKSIZE := 128k
379 PAGESIZE := 2048
380 IMAGE_SIZE := 65536k
381 KERNEL_IN_UBI := 1
382 IMAGES += factory.bin
383 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
384 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
385endef
developer3f9a06c2023-05-23 15:16:44 +0800386TARGET_DEVICES += mediatek_mt7988d-dsa-10g-snfi-nand
developerc54ce9d2023-01-03 13:30:49 +0800387
developer3f9a06c2023-05-23 15:16:44 +0800388define Device/mediatek_mt7988d-dsa-10g-spim-nor
developerc54ce9d2023-01-03 13:30:49 +0800389 DEVICE_VENDOR := MediaTek
developer3f9a06c2023-05-23 15:16:44 +0800390 DEVICE_MODEL := mt7988d-dsa-10g-spim-nor
391 DEVICE_DTS := mt7988d-dsa-10g-spim-nor
developerc54ce9d2023-01-03 13:30:49 +0800392 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer3f9a06c2023-05-23 15:16:44 +0800393 SUPPORTED_DEVICES := mediatek,mt7988d-dsa-10g-spim-nor
developerc54ce9d2023-01-03 13:30:49 +0800394endef
developer3f9a06c2023-05-23 15:16:44 +0800395TARGET_DEVICES += mediatek_mt7988d-dsa-10g-spim-nor
developerc54ce9d2023-01-03 13:30:49 +0800396
developer3f9a06c2023-05-23 15:16:44 +0800397define Device/mediatek_mt7988d-dsa-10g-emmc
developerc54ce9d2023-01-03 13:30:49 +0800398 DEVICE_VENDOR := MediaTek
developer3f9a06c2023-05-23 15:16:44 +0800399 DEVICE_MODEL := mt7988d-dsa-10g-emmc
400 DEVICE_DTS := mt7988d-dsa-10g-emmc
401 SUPPORTED_DEVICES := mediatek,mt7988d-dsa-10g-emmc
developerc54ce9d2023-01-03 13:30:49 +0800402 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
403 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
404 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
405 kmod-nls-iso8859-1
406 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
407endef
developer3f9a06c2023-05-23 15:16:44 +0800408TARGET_DEVICES += mediatek_mt7988d-dsa-10g-emmc
developerc54ce9d2023-01-03 13:30:49 +0800409
developer3f9a06c2023-05-23 15:16:44 +0800410define Device/mediatek_mt7988d-dsa-10g-sd
developerc54ce9d2023-01-03 13:30:49 +0800411 DEVICE_VENDOR := MediaTek
developer3f9a06c2023-05-23 15:16:44 +0800412 DEVICE_MODEL := mt7988d-dsa-10g-sd
413 DEVICE_DTS := mt7988d-dsa-10g-sd
414 SUPPORTED_DEVICES := mediatek,mt7988d-dsa-10g-sd
developerc54ce9d2023-01-03 13:30:49 +0800415 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
416 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
417 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
418 kmod-nls-iso8859-1
419 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
420endef
developer3f9a06c2023-05-23 15:16:44 +0800421TARGET_DEVICES += mediatek_mt7988d-dsa-10g-sd