blob: 28414e26ad658628c86680ca409746678f543920 [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