blob: a02d00ee3f91c09cc59641ee87447687ffad38bb [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
developer0d09a902023-05-05 17:32:24 +0800148define Device/mediatek_mt7988a-88d-10g-spim-nand
149 DEVICE_VENDOR := MediaTek
150 DEVICE_MODEL := mt7988a-88d-10g-spim-nand
151 DEVICE_DTS := mt7988a-88d-10g-spim-nand
152 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
153 SUPPORTED_DEVICES := mediatek,mt7988a-88d-10g-spim-snand
154 UBINIZE_OPTS := -E 5
155 BLOCKSIZE := 128k
156 PAGESIZE := 2048
157 IMAGE_SIZE := 65536k
158 KERNEL_IN_UBI := 1
159 IMAGES += factory.bin
160 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
161 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
162endef
163TARGET_DEVICES += mediatek_mt7988a-88d-10g-spim-nand
164
developer010cc992022-10-19 15:02:34 +0800165define Device/mediatek_mt7988a-dsa-e2p5g-spim-nand
166 DEVICE_VENDOR := MediaTek
167 DEVICE_MODEL := mt7988a-dsa-e2p5g-spim-nand
168 DEVICE_DTS := mt7988a-dsa-e2p5g-spim-nand
169 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
170 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-e2p5g-spim-nand
171 UBINIZE_OPTS := -E 5
172 BLOCKSIZE := 128k
173 PAGESIZE := 2048
174 IMAGE_SIZE := 65536k
175 KERNEL_IN_UBI := 1
176 IMAGES += factory.bin
177 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
178 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
179endef
180TARGET_DEVICES += mediatek_mt7988a-dsa-e2p5g-spim-nand
181
182define Device/mediatek_mt7988a-dsa-i2p5g-spim-nand
183 DEVICE_VENDOR := MediaTek
184 DEVICE_MODEL := mt7988a-dsa-i2p5g-spim-nand
185 DEVICE_DTS := mt7988a-dsa-i2p5g-spim-nand
186 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
187 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-i2p5g-spim-nand
188 UBINIZE_OPTS := -E 5
189 BLOCKSIZE := 128k
190 PAGESIZE := 2048
191 IMAGE_SIZE := 65536k
192 KERNEL_IN_UBI := 1
193 IMAGES += factory.bin
194 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
195 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
196endef
197TARGET_DEVICES += mediatek_mt7988a-dsa-i2p5g-spim-nand
198
199define Device/mediatek_mt7988a-dsa-10g-snfi-nand
200 DEVICE_VENDOR := MediaTek
201 DEVICE_MODEL := mt7988a-dsa-10g-snfi-nand
202 DEVICE_DTS := mt7988a-dsa-10g-snfi-nand
203 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
204 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-10g-snfi-nand
205 UBINIZE_OPTS := -E 5
206 BLOCKSIZE := 128k
207 PAGESIZE := 2048
208 IMAGE_SIZE := 65536k
209 KERNEL_IN_UBI := 1
210 IMAGES += factory.bin
211 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
212 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
213endef
214TARGET_DEVICES += mediatek_mt7988a-dsa-10g-snfi-nand
215
216define Device/mediatek_mt7988a-dsa-10g-spim-nor
217 DEVICE_VENDOR := MediaTek
218 DEVICE_MODEL := mt7988a-dsa-10g-spim-nor
219 DEVICE_DTS := mt7988a-dsa-10g-spim-nor
220 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
221 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-10g-spim-nor
222endef
223TARGET_DEVICES += mediatek_mt7988a-dsa-10g-spim-nor
224
225define Device/mediatek_mt7988a-dsa-10g-emmc
226 DEVICE_VENDOR := MediaTek
227 DEVICE_MODEL := mt7988a-dsa-10g-emmc
228 DEVICE_DTS := mt7988a-dsa-10g-emmc
229 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-10g-emmc
230 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
231 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
232 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
233 kmod-nls-iso8859-1
234 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
235endef
236TARGET_DEVICES += mediatek_mt7988a-dsa-10g-emmc
237
238define Device/mediatek_mt7988a-dsa-10g-sd
239 DEVICE_VENDOR := MediaTek
240 DEVICE_MODEL := mt7988a-dsa-10g-sd
241 DEVICE_DTS := mt7988a-dsa-10g-sd
242 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-10g-sd
243 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
244 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
245 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
246 kmod-nls-iso8859-1
247 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
248endef
developeraa36a392022-10-26 17:30:21 +0800249TARGET_DEVICES += mediatek_mt7988a-dsa-10g-sd
developerc54ce9d2023-01-03 13:30:49 +0800250
developer3f9a06c2023-05-23 15:16:44 +0800251define Device/mediatek_mt7988d-gsw-10g-spim-nand
developerc54ce9d2023-01-03 13:30:49 +0800252 DEVICE_VENDOR := MediaTek
developer3f9a06c2023-05-23 15:16:44 +0800253 DEVICE_MODEL := mt7988d-gsw-10g-spim-nand
254 DEVICE_DTS := mt7988d-gsw-10g-spim-nand
developerc54ce9d2023-01-03 13:30:49 +0800255 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer3f9a06c2023-05-23 15:16:44 +0800256 SUPPORTED_DEVICES := mediatek,mt7988d-gsw-10g-spim-snand
developerc54ce9d2023-01-03 13:30:49 +0800257 UBINIZE_OPTS := -E 5
258 BLOCKSIZE := 128k
259 PAGESIZE := 2048
260 IMAGE_SIZE := 65536k
261 KERNEL_IN_UBI := 1
262 IMAGES += factory.bin
263 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
264 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
265endef
developer3f9a06c2023-05-23 15:16:44 +0800266TARGET_DEVICES += mediatek_mt7988d-gsw-10g-spim-nand
developerc54ce9d2023-01-03 13:30:49 +0800267
developer3f9a06c2023-05-23 15:16:44 +0800268define Device/mediatek_mt7988d-gsw-10g-sfp-spim-nand
developerc54ce9d2023-01-03 13:30:49 +0800269 DEVICE_VENDOR := MediaTek
developer3f9a06c2023-05-23 15:16:44 +0800270 DEVICE_MODEL := mt7988d-gsw-10g-sfp-spim-nand
271 DEVICE_DTS := mt7988d-gsw-10g-sfp-spim-nand
developerc54ce9d2023-01-03 13:30:49 +0800272 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer3f9a06c2023-05-23 15:16:44 +0800273 SUPPORTED_DEVICES := mediatek,mt7988d-gsw-10g-sfp-spim-snand
developerc54ce9d2023-01-03 13:30:49 +0800274 UBINIZE_OPTS := -E 5
275 BLOCKSIZE := 128k
276 PAGESIZE := 2048
277 IMAGE_SIZE := 65536k
278 KERNEL_IN_UBI := 1
279 IMAGES += factory.bin
280 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
281 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
282endef
developer3f9a06c2023-05-23 15:16:44 +0800283TARGET_DEVICES += mediatek_mt7988d-gsw-10g-sfp-spim-nand
developerc54ce9d2023-01-03 13:30:49 +0800284
developerd4f92102023-09-11 09:26:54 +0800285define Device/mediatek_mt7988d-dsa-10g-sfp-spim-nand
286 DEVICE_VENDOR := MediaTek
287 DEVICE_MODEL := mt7988d-dsa-10g-sfp-spim-nand
288 DEVICE_DTS := mt7988d-dsa-10g-sfp-spim-nand
289 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
290 SUPPORTED_DEVICES := mediatek,mt7988d-dsa-10g-sfp-spim-snand
291 UBINIZE_OPTS := -E 5
292 BLOCKSIZE := 128k
293 PAGESIZE := 2048
294 IMAGE_SIZE := 65536k
295 KERNEL_IN_UBI := 1
296 IMAGES += factory.bin
297 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
298 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
299endef
300TARGET_DEVICES += mediatek_mt7988d-dsa-10g-sfp-spim-nand
301
developer3f9a06c2023-05-23 15:16:44 +0800302define Device/mediatek_mt7988d-dsa-10g-spim-nand
developerc54ce9d2023-01-03 13:30:49 +0800303 DEVICE_VENDOR := MediaTek
developer3f9a06c2023-05-23 15:16:44 +0800304 DEVICE_MODEL := mt7988d-dsa-10g-spim-nand
305 DEVICE_DTS := mt7988d-dsa-10g-spim-nand
developerc54ce9d2023-01-03 13:30:49 +0800306 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer3f9a06c2023-05-23 15:16:44 +0800307 SUPPORTED_DEVICES := mediatek,mt7988d-dsa-10g-spim-snand
developerc54ce9d2023-01-03 13:30:49 +0800308 UBINIZE_OPTS := -E 5
309 BLOCKSIZE := 128k
310 PAGESIZE := 2048
311 IMAGE_SIZE := 65536k
312 KERNEL_IN_UBI := 1
313 IMAGES += factory.bin
314 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
315 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
316endef
developer3f9a06c2023-05-23 15:16:44 +0800317TARGET_DEVICES += mediatek_mt7988d-dsa-10g-spim-nand
developerc54ce9d2023-01-03 13:30:49 +0800318
developer3f9a06c2023-05-23 15:16:44 +0800319define Device/mediatek_mt7988d-dsa-e2p5g-spim-nand
developerc54ce9d2023-01-03 13:30:49 +0800320 DEVICE_VENDOR := MediaTek
developer3f9a06c2023-05-23 15:16:44 +0800321 DEVICE_MODEL := mt7988d-dsa-e2p5g-spim-nand
322 DEVICE_DTS := mt7988d-dsa-e2p5g-spim-nand
developerc54ce9d2023-01-03 13:30:49 +0800323 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer3f9a06c2023-05-23 15:16:44 +0800324 SUPPORTED_DEVICES := mediatek,mt7988d-dsa-e2p5g-spim-nand
developerc54ce9d2023-01-03 13:30:49 +0800325 UBINIZE_OPTS := -E 5
326 BLOCKSIZE := 128k
327 PAGESIZE := 2048
328 IMAGE_SIZE := 65536k
329 KERNEL_IN_UBI := 1
330 IMAGES += factory.bin
331 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
332 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
333endef
developer3f9a06c2023-05-23 15:16:44 +0800334TARGET_DEVICES += mediatek_mt7988d-dsa-e2p5g-spim-nand
developerc54ce9d2023-01-03 13:30:49 +0800335
developer3f9a06c2023-05-23 15:16:44 +0800336define Device/mediatek_mt7988d-dsa-10g-snfi-nand
developerc54ce9d2023-01-03 13:30:49 +0800337 DEVICE_VENDOR := MediaTek
developer3f9a06c2023-05-23 15:16:44 +0800338 DEVICE_MODEL := mt7988d-dsa-10g-snfi-nand
339 DEVICE_DTS := mt7988d-dsa-10g-snfi-nand
developerc54ce9d2023-01-03 13:30:49 +0800340 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer3f9a06c2023-05-23 15:16:44 +0800341 SUPPORTED_DEVICES := mediatek,mt7988d-dsa-10g-snfi-nand
developerc54ce9d2023-01-03 13:30:49 +0800342 UBINIZE_OPTS := -E 5
343 BLOCKSIZE := 128k
344 PAGESIZE := 2048
345 IMAGE_SIZE := 65536k
346 KERNEL_IN_UBI := 1
347 IMAGES += factory.bin
348 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
349 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
350endef
developer3f9a06c2023-05-23 15:16:44 +0800351TARGET_DEVICES += mediatek_mt7988d-dsa-10g-snfi-nand
developerc54ce9d2023-01-03 13:30:49 +0800352
developer3f9a06c2023-05-23 15:16:44 +0800353define Device/mediatek_mt7988d-dsa-10g-spim-nor
developerc54ce9d2023-01-03 13:30:49 +0800354 DEVICE_VENDOR := MediaTek
developer3f9a06c2023-05-23 15:16:44 +0800355 DEVICE_MODEL := mt7988d-dsa-10g-spim-nor
356 DEVICE_DTS := mt7988d-dsa-10g-spim-nor
developerc54ce9d2023-01-03 13:30:49 +0800357 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer3f9a06c2023-05-23 15:16:44 +0800358 SUPPORTED_DEVICES := mediatek,mt7988d-dsa-10g-spim-nor
developerc54ce9d2023-01-03 13:30:49 +0800359endef
developer3f9a06c2023-05-23 15:16:44 +0800360TARGET_DEVICES += mediatek_mt7988d-dsa-10g-spim-nor
developerc54ce9d2023-01-03 13:30:49 +0800361
developer3f9a06c2023-05-23 15:16:44 +0800362define Device/mediatek_mt7988d-dsa-10g-emmc
developerc54ce9d2023-01-03 13:30:49 +0800363 DEVICE_VENDOR := MediaTek
developer3f9a06c2023-05-23 15:16:44 +0800364 DEVICE_MODEL := mt7988d-dsa-10g-emmc
365 DEVICE_DTS := mt7988d-dsa-10g-emmc
366 SUPPORTED_DEVICES := mediatek,mt7988d-dsa-10g-emmc
developerc54ce9d2023-01-03 13:30:49 +0800367 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
368 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
369 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
370 kmod-nls-iso8859-1
371 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
372endef
developer3f9a06c2023-05-23 15:16:44 +0800373TARGET_DEVICES += mediatek_mt7988d-dsa-10g-emmc
developerc54ce9d2023-01-03 13:30:49 +0800374
developer3f9a06c2023-05-23 15:16:44 +0800375define Device/mediatek_mt7988d-dsa-10g-sd
developerc54ce9d2023-01-03 13:30:49 +0800376 DEVICE_VENDOR := MediaTek
developer3f9a06c2023-05-23 15:16:44 +0800377 DEVICE_MODEL := mt7988d-dsa-10g-sd
378 DEVICE_DTS := mt7988d-dsa-10g-sd
379 SUPPORTED_DEVICES := mediatek,mt7988d-dsa-10g-sd
developerc54ce9d2023-01-03 13:30:49 +0800380 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
381 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
382 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
383 kmod-nls-iso8859-1
384 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
385endef
developer3f9a06c2023-05-23 15:16:44 +0800386TARGET_DEVICES += mediatek_mt7988d-dsa-10g-sd