blob: 750ad93fa49507bb63394fbadeb07f11c552b789 [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
33 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
34 IMAGE/sysupgrade.bin := sysupgrade-tar rootfs=$$$$(IMAGE_ROOTFS)-hashed | \
35 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
developer010cc992022-10-19 15:02:34 +080050define Device/mediatek_mt7988a-gsw-10g-spim-nand-4pcie
51 DEVICE_VENDOR := MediaTek
52 DEVICE_MODEL := mt7988a-gsw-10g-spim-nand-4pcie
53 DEVICE_DTS := mt7988a-gsw-10g-spim-nand-4pcie
54 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
55 SUPPORTED_DEVICES := mediatek,mt7988a-gsw-10g-spim-snand-4pcie
56 UBINIZE_OPTS := -E 5
57 BLOCKSIZE := 128k
58 PAGESIZE := 2048
59 IMAGE_SIZE := 65536k
60 KERNEL_IN_UBI := 1
61 IMAGES += factory.bin
62 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
63 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
64endef
65TARGET_DEVICES += mediatek_mt7988a-gsw-10g-spim-nand-4pcie
66
67define Device/mediatek_mt7988a-gsw-10g-sfp-spim-nand
68 DEVICE_VENDOR := MediaTek
69 DEVICE_MODEL := mt7988a-gsw-10g-sfp-spim-nand
70 DEVICE_DTS := mt7988a-gsw-10g-sfp-spim-nand
71 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
72 SUPPORTED_DEVICES := mediatek,mt7988a-gsw-10g-sfp-spim-snand
73 UBINIZE_OPTS := -E 5
74 BLOCKSIZE := 128k
75 PAGESIZE := 2048
76 IMAGE_SIZE := 65536k
77 KERNEL_IN_UBI := 1
78 IMAGES += factory.bin
79 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
80 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
81endef
82TARGET_DEVICES += mediatek_mt7988a-gsw-10g-sfp-spim-nand
83
84define Device/mediatek_mt7988a-dsa-10g-spim-nand
85 DEVICE_VENDOR := MediaTek
86 DEVICE_MODEL := mt7988a-dsa-10g-spim-nand
87 DEVICE_DTS := mt7988a-dsa-10g-spim-nand
88 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
89 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-10g-spim-snand
90 UBINIZE_OPTS := -E 5
91 BLOCKSIZE := 128k
92 PAGESIZE := 2048
93 IMAGE_SIZE := 65536k
94 KERNEL_IN_UBI := 1
95 IMAGES += factory.bin
96 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
97 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
98endef
99TARGET_DEVICES += mediatek_mt7988a-dsa-10g-spim-nand
100
101define Device/mediatek_mt7988a-dsa-e2p5g-spim-nand
102 DEVICE_VENDOR := MediaTek
103 DEVICE_MODEL := mt7988a-dsa-e2p5g-spim-nand
104 DEVICE_DTS := mt7988a-dsa-e2p5g-spim-nand
105 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
106 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-e2p5g-spim-nand
107 UBINIZE_OPTS := -E 5
108 BLOCKSIZE := 128k
109 PAGESIZE := 2048
110 IMAGE_SIZE := 65536k
111 KERNEL_IN_UBI := 1
112 IMAGES += factory.bin
113 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
114 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
115endef
116TARGET_DEVICES += mediatek_mt7988a-dsa-e2p5g-spim-nand
117
118define Device/mediatek_mt7988a-dsa-i2p5g-spim-nand
119 DEVICE_VENDOR := MediaTek
120 DEVICE_MODEL := mt7988a-dsa-i2p5g-spim-nand
121 DEVICE_DTS := mt7988a-dsa-i2p5g-spim-nand
122 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
123 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-i2p5g-spim-nand
124 UBINIZE_OPTS := -E 5
125 BLOCKSIZE := 128k
126 PAGESIZE := 2048
127 IMAGE_SIZE := 65536k
128 KERNEL_IN_UBI := 1
129 IMAGES += factory.bin
130 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
131 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
132endef
133TARGET_DEVICES += mediatek_mt7988a-dsa-i2p5g-spim-nand
134
135define Device/mediatek_mt7988a-dsa-10g-snfi-nand
136 DEVICE_VENDOR := MediaTek
137 DEVICE_MODEL := mt7988a-dsa-10g-snfi-nand
138 DEVICE_DTS := mt7988a-dsa-10g-snfi-nand
139 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
140 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-10g-snfi-nand
141 UBINIZE_OPTS := -E 5
142 BLOCKSIZE := 128k
143 PAGESIZE := 2048
144 IMAGE_SIZE := 65536k
145 KERNEL_IN_UBI := 1
146 IMAGES += factory.bin
147 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
148 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
149endef
150TARGET_DEVICES += mediatek_mt7988a-dsa-10g-snfi-nand
151
152define Device/mediatek_mt7988a-dsa-10g-spim-nor
153 DEVICE_VENDOR := MediaTek
154 DEVICE_MODEL := mt7988a-dsa-10g-spim-nor
155 DEVICE_DTS := mt7988a-dsa-10g-spim-nor
156 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
157 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-10g-spim-nor
158endef
159TARGET_DEVICES += mediatek_mt7988a-dsa-10g-spim-nor
160
161define Device/mediatek_mt7988a-dsa-10g-emmc
162 DEVICE_VENDOR := MediaTek
163 DEVICE_MODEL := mt7988a-dsa-10g-emmc
164 DEVICE_DTS := mt7988a-dsa-10g-emmc
165 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-10g-emmc
166 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
167 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
168 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
169 kmod-nls-iso8859-1
170 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
171endef
172TARGET_DEVICES += mediatek_mt7988a-dsa-10g-emmc
173
174define Device/mediatek_mt7988a-dsa-10g-sd
175 DEVICE_VENDOR := MediaTek
176 DEVICE_MODEL := mt7988a-dsa-10g-sd
177 DEVICE_DTS := mt7988a-dsa-10g-sd
178 SUPPORTED_DEVICES := mediatek,mt7988a-dsa-10g-sd
179 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
180 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
181 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
182 kmod-nls-iso8859-1
183 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
184endef
developeraa36a392022-10-26 17:30:21 +0800185TARGET_DEVICES += mediatek_mt7988a-dsa-10g-sd
developerc54ce9d2023-01-03 13:30:49 +0800186
187define Device/mediatek_mt7988c-gsw-10g-spim-nand
188 DEVICE_VENDOR := MediaTek
189 DEVICE_MODEL := mt7988c-gsw-10g-spim-nand
190 DEVICE_DTS := mt7988c-gsw-10g-spim-nand
191 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
192 SUPPORTED_DEVICES := mediatek,mt7988c-gsw-10g-spim-snand
193 UBINIZE_OPTS := -E 5
194 BLOCKSIZE := 128k
195 PAGESIZE := 2048
196 IMAGE_SIZE := 65536k
197 KERNEL_IN_UBI := 1
198 IMAGES += factory.bin
199 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
200 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
201endef
202TARGET_DEVICES += mediatek_mt7988c-gsw-10g-spim-nand
203
204define Device/mediatek_mt7988c-gsw-10g-sfp-spim-nand
205 DEVICE_VENDOR := MediaTek
206 DEVICE_MODEL := mt7988c-gsw-10g-sfp-spim-nand
207 DEVICE_DTS := mt7988c-gsw-10g-sfp-spim-nand
208 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
209 SUPPORTED_DEVICES := mediatek,mt7988c-gsw-10g-sfp-spim-snand
210 UBINIZE_OPTS := -E 5
211 BLOCKSIZE := 128k
212 PAGESIZE := 2048
213 IMAGE_SIZE := 65536k
214 KERNEL_IN_UBI := 1
215 IMAGES += factory.bin
216 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
217 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
218endef
219TARGET_DEVICES += mediatek_mt7988c-gsw-10g-sfp-spim-nand
220
221define Device/mediatek_mt7988c-dsa-10g-spim-nand
222 DEVICE_VENDOR := MediaTek
223 DEVICE_MODEL := mt7988c-dsa-10g-spim-nand
224 DEVICE_DTS := mt7988c-dsa-10g-spim-nand
225 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
226 SUPPORTED_DEVICES := mediatek,mt7988c-dsa-10g-spim-snand
227 UBINIZE_OPTS := -E 5
228 BLOCKSIZE := 128k
229 PAGESIZE := 2048
230 IMAGE_SIZE := 65536k
231 KERNEL_IN_UBI := 1
232 IMAGES += factory.bin
233 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
234 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
235endef
236TARGET_DEVICES += mediatek_mt7988c-dsa-10g-spim-nand
237
238define Device/mediatek_mt7988c-dsa-e2p5g-spim-nand
239 DEVICE_VENDOR := MediaTek
240 DEVICE_MODEL := mt7988c-dsa-e2p5g-spim-nand
241 DEVICE_DTS := mt7988c-dsa-e2p5g-spim-nand
242 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
243 SUPPORTED_DEVICES := mediatek,mt7988c-dsa-e2p5g-spim-nand
244 UBINIZE_OPTS := -E 5
245 BLOCKSIZE := 128k
246 PAGESIZE := 2048
247 IMAGE_SIZE := 65536k
248 KERNEL_IN_UBI := 1
249 IMAGES += factory.bin
250 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
251 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
252endef
253TARGET_DEVICES += mediatek_mt7988c-dsa-e2p5g-spim-nand
254
255define Device/mediatek_mt7988c-dsa-i2p5g-spim-nand
256 DEVICE_VENDOR := MediaTek
257 DEVICE_MODEL := mt7988c-dsa-i2p5g-spim-nand
258 DEVICE_DTS := mt7988c-dsa-i2p5g-spim-nand
259 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
260 SUPPORTED_DEVICES := mediatek,mt7988c-dsa-i2p5g-spim-nand
261 UBINIZE_OPTS := -E 5
262 BLOCKSIZE := 128k
263 PAGESIZE := 2048
264 IMAGE_SIZE := 65536k
265 KERNEL_IN_UBI := 1
266 IMAGES += factory.bin
267 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
268 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
269endef
270TARGET_DEVICES += mediatek_mt7988c-dsa-i2p5g-spim-nand
271
272define Device/mediatek_mt7988c-dsa-10g-snfi-nand
273 DEVICE_VENDOR := MediaTek
274 DEVICE_MODEL := mt7988c-dsa-10g-snfi-nand
275 DEVICE_DTS := mt7988c-dsa-10g-snfi-nand
276 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
277 SUPPORTED_DEVICES := mediatek,mt7988c-dsa-10g-snfi-nand
278 UBINIZE_OPTS := -E 5
279 BLOCKSIZE := 128k
280 PAGESIZE := 2048
281 IMAGE_SIZE := 65536k
282 KERNEL_IN_UBI := 1
283 IMAGES += factory.bin
284 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
285 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
286endef
287TARGET_DEVICES += mediatek_mt7988c-dsa-10g-snfi-nand
288
289define Device/mediatek_mt7988c-dsa-10g-spim-nor
290 DEVICE_VENDOR := MediaTek
291 DEVICE_MODEL := mt7988c-dsa-10g-spim-nor
292 DEVICE_DTS := mt7988c-dsa-10g-spim-nor
293 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
294 SUPPORTED_DEVICES := mediatek,mt7988c-dsa-10g-spim-nor
295endef
296TARGET_DEVICES += mediatek_mt7988c-dsa-10g-spim-nor
297
298define Device/mediatek_mt7988c-dsa-10g-emmc
299 DEVICE_VENDOR := MediaTek
300 DEVICE_MODEL := mt7988c-dsa-10g-emmc
301 DEVICE_DTS := mt7988c-dsa-10g-emmc
302 SUPPORTED_DEVICES := mediatek,mt7988c-dsa-10g-emmc
303 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
304 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
305 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
306 kmod-nls-iso8859-1
307 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
308endef
309TARGET_DEVICES += mediatek_mt7988c-dsa-10g-emmc
310
311define Device/mediatek_mt7988c-dsa-10g-sd
312 DEVICE_VENDOR := MediaTek
313 DEVICE_MODEL := mt7988c-dsa-10g-sd
314 DEVICE_DTS := mt7988c-dsa-10g-sd
315 SUPPORTED_DEVICES := mediatek,mt7988c-dsa-10g-sd
316 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
317 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
318 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
319 kmod-nls-iso8859-1
320 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
321endef
322TARGET_DEVICES += mediatek_mt7988c-dsa-10g-sd