blob: ab3ed5b42f074c612789bed6013e045cd176f8e2 [file] [log] [blame]
developer59f8e0b2021-10-19 14:45:01 +08001KERNEL_LOADADDR := 0x48080000
developer6747cdd2021-09-29 17:00:51 +08002
developer63866c92021-11-15 12:05:13 +08003define Device/mt7981-spim-nor-rfb
developer6747cdd2021-09-29 17:00:51 +08004 DEVICE_VENDOR := MediaTek
developer63866c92021-11-15 12:05:13 +08005 DEVICE_MODEL := mt7981-spim-nor-rfb
developer6747cdd2021-09-29 17:00:51 +08006 DEVICE_DTS := mt7981-spim-nor-rfb
7 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developera1c200a2022-03-04 20:10:00 +08008 SUPPORTED_DEVICES := mediatek,mt7981-spim-nor-rfb
developer6747cdd2021-09-29 17:00:51 +08009endef
developer63866c92021-11-15 12:05:13 +080010TARGET_DEVICES += mt7981-spim-nor-rfb
developer6747cdd2021-09-29 17:00:51 +080011
developer63866c92021-11-15 12:05:13 +080012define Device/mt7981-spim-nand-2500wan-gmac2
developer6747cdd2021-09-29 17:00:51 +080013 DEVICE_VENDOR := MediaTek
developer63866c92021-11-15 12:05:13 +080014 DEVICE_MODEL := mt7981-spim-nand-2500wan-gmac2
15 DEVICE_DTS := mt7981-spim-nand-2500wan-gmac2
developer6747cdd2021-09-29 17:00:51 +080016 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developera1c200a2022-03-04 20:10:00 +080017 SUPPORTED_DEVICES := mediatek,mt7981-spim-snand-2500wan-gmac2-rfb
developer6747cdd2021-09-29 17:00:51 +080018 UBINIZE_OPTS := -E 5
19 BLOCKSIZE := 128k
20 PAGESIZE := 2048
21 IMAGE_SIZE := 65536k
22 KERNEL_IN_UBI := 1
23 IMAGES += factory.bin
24 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
25 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
26endef
developer63866c92021-11-15 12:05:13 +080027TARGET_DEVICES += mt7981-spim-nand-2500wan-gmac2
developer6747cdd2021-09-29 17:00:51 +080028
developer63866c92021-11-15 12:05:13 +080029define Device/mt7981-spim-nand-rfb
developer6747cdd2021-09-29 17:00:51 +080030 DEVICE_VENDOR := MediaTek
developer63866c92021-11-15 12:05:13 +080031 DEVICE_MODEL := mt7981-spim-nand-rfb
developer6747cdd2021-09-29 17:00:51 +080032 DEVICE_DTS := mt7981-spim-nand-rfb
33 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developera1c200a2022-03-04 20:10:00 +080034 SUPPORTED_DEVICES := mediatek,mt7981-spim-snand-rfb
developer6747cdd2021-09-29 17:00:51 +080035 UBINIZE_OPTS := -E 5
36 BLOCKSIZE := 128k
37 PAGESIZE := 2048
38 IMAGE_SIZE := 65536k
39 KERNEL_IN_UBI := 1
40 IMAGES += factory.bin
41 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
42 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
43endef
developer63866c92021-11-15 12:05:13 +080044TARGET_DEVICES += mt7981-spim-nand-rfb
developer6747cdd2021-09-29 17:00:51 +080045
developer978a0512022-03-08 15:20:03 +080046define Device/mt7981-spim-nand-gsw
47 DEVICE_VENDOR := MediaTek
48 DEVICE_MODEL := mt7981-spim-nand-gsw
49 DEVICE_DTS := mt7981-spim-nand-gsw
50 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
51 SUPPORTED_DEVICES := mediatek,mt7981-rfb,ubi
52 UBINIZE_OPTS := -E 5
53 BLOCKSIZE := 128k
54 PAGESIZE := 2048
55 IMAGE_SIZE := 65536k
56 KERNEL_IN_UBI := 1
57 IMAGES += factory.bin
58 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
59 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
60endef
61TARGET_DEVICES += mt7981-spim-nand-gsw
62
developer63866c92021-11-15 12:05:13 +080063define Device/mt7981-emmc-rfb
developer6747cdd2021-09-29 17:00:51 +080064 DEVICE_VENDOR := MediaTek
developer63866c92021-11-15 12:05:13 +080065 DEVICE_MODEL := mt7981-emmc-rfb
developer6747cdd2021-09-29 17:00:51 +080066 DEVICE_DTS := mt7981-emmc-rfb
developerd3cc7552021-12-12 23:29:45 +080067 SUPPORTED_DEVICES := mediatek,mt7981-emmc-rfb
developer6747cdd2021-09-29 17:00:51 +080068 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developerd3cc7552021-12-12 23:29:45 +080069 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
70 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
71 kmod-nls-iso8859-1
72 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
developer6747cdd2021-09-29 17:00:51 +080073endef
developer63866c92021-11-15 12:05:13 +080074TARGET_DEVICES += mt7981-emmc-rfb
developer6747cdd2021-09-29 17:00:51 +080075
developerd3cc7552021-12-12 23:29:45 +080076define Device/mt7981-sd-rfb
77 DEVICE_VENDOR := MediaTek
78 DEVICE_MODEL := mt7981-sd-rfb
79 DEVICE_DTS := mt7981-sd-rfb
80 SUPPORTED_DEVICES := mediatek,mt7981-sd-rfb
81 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
82 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
83 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
84 kmod-nls-iso8859-1
85 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
86endef
87TARGET_DEVICES += mt7981-sd-rfb
88
developer63866c92021-11-15 12:05:13 +080089define Device/mt7981-snfi-nand-2500wan-p5
developer6747cdd2021-09-29 17:00:51 +080090 DEVICE_VENDOR := MediaTek
developer63866c92021-11-15 12:05:13 +080091 DEVICE_MODEL := mt7981-snfi-nand-2500wan-p5
92 DEVICE_DTS := mt7981-snfi-nand-2500wan-p5
developer6747cdd2021-09-29 17:00:51 +080093 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developera1c200a2022-03-04 20:10:00 +080094 SUPPORTED_DEVICES := mediatek,mt7981-snfi-snand-pcie-2500wan-p5-rfb
developer6747cdd2021-09-29 17:00:51 +080095 UBINIZE_OPTS := -E 5
96 BLOCKSIZE := 128k
97 PAGESIZE := 2048
98 IMAGE_SIZE := 65536k
99 KERNEL_IN_UBI := 1
100 IMAGES += factory.bin
101 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
102 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
103endef
developer63866c92021-11-15 12:05:13 +0800104TARGET_DEVICES += mt7981-snfi-nand-2500wan-p5
developer6747cdd2021-09-29 17:00:51 +0800105
106define Device/mt7981-fpga-spim-nor
107 DEVICE_VENDOR := MediaTek
108 DEVICE_MODEL := mt7981-fpga-spim-nor
109 DEVICE_DTS := mt7981-fpga-spim-nor
110 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developera1c200a2022-03-04 20:10:00 +0800111 SUPPORTED_DEVICES := mediatek,mt7981-fpga-nor
developer6747cdd2021-09-29 17:00:51 +0800112endef
113TARGET_DEVICES += mt7981-fpga-spim-nor
114
115define Device/mt7981-fpga-snfi-nand
116 DEVICE_VENDOR := MediaTek
117 DEVICE_MODEL := mt7981-fpga-snfi-nand
118 DEVICE_DTS := mt7981-fpga-snfi-nand
119 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developera1c200a2022-03-04 20:10:00 +0800120 SUPPORTED_DEVICES := mediatek,mt7981-fpga-snfi-snand
developer6747cdd2021-09-29 17:00:51 +0800121 UBINIZE_OPTS := -E 5
122 BLOCKSIZE := 128k
123 PAGESIZE := 2048
124 IMAGE_SIZE := 65536k
125 KERNEL_IN_UBI := 1
126 IMAGES += factory.bin
127 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
128 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
129endef
130TARGET_DEVICES += mt7981-fpga-snfi-nand
131
132define Device/mt7981-fpga-spim-nand
133 DEVICE_VENDOR := MediaTek
134 DEVICE_MODEL := mt7981-fpga-spim-nand
135 DEVICE_DTS := mt7981-fpga-spim-nand
136 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developera1c200a2022-03-04 20:10:00 +0800137 SUPPORTED_DEVICES := mediatek,mt7981-fpga-spim-snand
developer6747cdd2021-09-29 17:00:51 +0800138 UBINIZE_OPTS := -E 5
139 BLOCKSIZE := 128k
140 PAGESIZE := 2048
141 IMAGE_SIZE := 65536k
142 KERNEL_IN_UBI := 1
143 IMAGES += factory.bin
144 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
145 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
146endef
147TARGET_DEVICES += mt7981-fpga-spim-nand
148
149define Device/mt7981-fpga-emmc
150 DEVICE_VENDOR := MediaTek
151 DEVICE_MODEL := mt7981-fpga-emmc
152 DEVICE_DTS := mt7981-fpga-emmc
developer1bbf4ff2022-02-11 14:59:47 +0800153 SUPPORTED_DEVICES := mediatek,mt7981-fpga-emmc
developer6747cdd2021-09-29 17:00:51 +0800154 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer1bbf4ff2022-02-11 14:59:47 +0800155 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
156 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
157 kmod-nls-iso8859-1
158 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
developer6747cdd2021-09-29 17:00:51 +0800159endef
160TARGET_DEVICES += mt7981-fpga-emmc
developer1bbf4ff2022-02-11 14:59:47 +0800161
162define Device/mt7981-fpga-sd
163 DEVICE_VENDOR := MediaTek
164 DEVICE_MODEL := mt7981-fpga-sd
165 DEVICE_DTS := mt7981-fpga-sd
166 SUPPORTED_DEVICES := mediatek,mt7981-fpga-sd
167 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
168 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
169 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
170 kmod-nls-iso8859-1
171 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
172endef
173TARGET_DEVICES += mt7981-fpga-sd