blob: ce977b701f7f458d5062b280aff49b0bced82132 [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
8endef
developer63866c92021-11-15 12:05:13 +08009TARGET_DEVICES += mt7981-spim-nor-rfb
developer6747cdd2021-09-29 17:00:51 +080010
developer63866c92021-11-15 12:05:13 +080011define Device/mt7981-spim-nand-2500wan-gmac2
developer6747cdd2021-09-29 17:00:51 +080012 DEVICE_VENDOR := MediaTek
developer63866c92021-11-15 12:05:13 +080013 DEVICE_MODEL := mt7981-spim-nand-2500wan-gmac2
14 DEVICE_DTS := mt7981-spim-nand-2500wan-gmac2
developer6747cdd2021-09-29 17:00:51 +080015 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
16 SUPPORTED_DEVICES := mediatek,mt7981-rfb,ubi
17 UBINIZE_OPTS := -E 5
18 BLOCKSIZE := 128k
19 PAGESIZE := 2048
20 IMAGE_SIZE := 65536k
21 KERNEL_IN_UBI := 1
22 IMAGES += factory.bin
23 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
24 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
25endef
developer63866c92021-11-15 12:05:13 +080026TARGET_DEVICES += mt7981-spim-nand-2500wan-gmac2
developer6747cdd2021-09-29 17:00:51 +080027
developer63866c92021-11-15 12:05:13 +080028define Device/mt7981-spim-nand-rfb
developer6747cdd2021-09-29 17:00:51 +080029 DEVICE_VENDOR := MediaTek
developer63866c92021-11-15 12:05:13 +080030 DEVICE_MODEL := mt7981-spim-nand-rfb
developer6747cdd2021-09-29 17:00:51 +080031 DEVICE_DTS := mt7981-spim-nand-rfb
32 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
33 SUPPORTED_DEVICES := mediatek,mt7981-rfb,ubi
34 UBINIZE_OPTS := -E 5
35 BLOCKSIZE := 128k
36 PAGESIZE := 2048
37 IMAGE_SIZE := 65536k
38 KERNEL_IN_UBI := 1
39 IMAGES += factory.bin
40 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
41 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
42endef
developer63866c92021-11-15 12:05:13 +080043TARGET_DEVICES += mt7981-spim-nand-rfb
developer6747cdd2021-09-29 17:00:51 +080044
developer63866c92021-11-15 12:05:13 +080045define Device/mt7981-emmc-rfb
developer6747cdd2021-09-29 17:00:51 +080046 DEVICE_VENDOR := MediaTek
developer63866c92021-11-15 12:05:13 +080047 DEVICE_MODEL := mt7981-emmc-rfb
developer6747cdd2021-09-29 17:00:51 +080048 DEVICE_DTS := mt7981-emmc-rfb
developerd3cc7552021-12-12 23:29:45 +080049 SUPPORTED_DEVICES := mediatek,mt7981-emmc-rfb
developer6747cdd2021-09-29 17:00:51 +080050 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developerd3cc7552021-12-12 23:29:45 +080051 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
52 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
53 kmod-nls-iso8859-1
54 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
developer6747cdd2021-09-29 17:00:51 +080055endef
developer63866c92021-11-15 12:05:13 +080056TARGET_DEVICES += mt7981-emmc-rfb
developer6747cdd2021-09-29 17:00:51 +080057
developerd3cc7552021-12-12 23:29:45 +080058define Device/mt7981-sd-rfb
59 DEVICE_VENDOR := MediaTek
60 DEVICE_MODEL := mt7981-sd-rfb
61 DEVICE_DTS := mt7981-sd-rfb
62 SUPPORTED_DEVICES := mediatek,mt7981-sd-rfb
63 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
64 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
65 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
66 kmod-nls-iso8859-1
67 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
68endef
69TARGET_DEVICES += mt7981-sd-rfb
70
developer63866c92021-11-15 12:05:13 +080071define Device/mt7981-snfi-nand-2500wan-p5
developer6747cdd2021-09-29 17:00:51 +080072 DEVICE_VENDOR := MediaTek
developer63866c92021-11-15 12:05:13 +080073 DEVICE_MODEL := mt7981-snfi-nand-2500wan-p5
74 DEVICE_DTS := mt7981-snfi-nand-2500wan-p5
developer6747cdd2021-09-29 17:00:51 +080075 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
76 SUPPORTED_DEVICES := mediatek,mt7981-rfb,ubi
77 UBINIZE_OPTS := -E 5
78 BLOCKSIZE := 128k
79 PAGESIZE := 2048
80 IMAGE_SIZE := 65536k
81 KERNEL_IN_UBI := 1
82 IMAGES += factory.bin
83 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
84 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
85endef
developer63866c92021-11-15 12:05:13 +080086TARGET_DEVICES += mt7981-snfi-nand-2500wan-p5
developer6747cdd2021-09-29 17:00:51 +080087
88define Device/mt7981-fpga-spim-nor
89 DEVICE_VENDOR := MediaTek
90 DEVICE_MODEL := mt7981-fpga-spim-nor
91 DEVICE_DTS := mt7981-fpga-spim-nor
92 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
93endef
94TARGET_DEVICES += mt7981-fpga-spim-nor
95
96define Device/mt7981-fpga-snfi-nand
97 DEVICE_VENDOR := MediaTek
98 DEVICE_MODEL := mt7981-fpga-snfi-nand
99 DEVICE_DTS := mt7981-fpga-snfi-nand
100 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
101 SUPPORTED_DEVICES := mediatek,mt7981-fpga,ubi
102 UBINIZE_OPTS := -E 5
103 BLOCKSIZE := 128k
104 PAGESIZE := 2048
105 IMAGE_SIZE := 65536k
106 KERNEL_IN_UBI := 1
107 IMAGES += factory.bin
108 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
109 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
110endef
111TARGET_DEVICES += mt7981-fpga-snfi-nand
112
113define Device/mt7981-fpga-spim-nand
114 DEVICE_VENDOR := MediaTek
115 DEVICE_MODEL := mt7981-fpga-spim-nand
116 DEVICE_DTS := mt7981-fpga-spim-nand
117 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
118 SUPPORTED_DEVICES := mediatek,mt7981-fpga,ubi
119 UBINIZE_OPTS := -E 5
120 BLOCKSIZE := 128k
121 PAGESIZE := 2048
122 IMAGE_SIZE := 65536k
123 KERNEL_IN_UBI := 1
124 IMAGES += factory.bin
125 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
126 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
127endef
128TARGET_DEVICES += mt7981-fpga-spim-nand
129
130define Device/mt7981-fpga-emmc
131 DEVICE_VENDOR := MediaTek
132 DEVICE_MODEL := mt7981-fpga-emmc
133 DEVICE_DTS := mt7981-fpga-emmc
developer1bbf4ff2022-02-11 14:59:47 +0800134 SUPPORTED_DEVICES := mediatek,mt7981-fpga-emmc
developer6747cdd2021-09-29 17:00:51 +0800135 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
developer1bbf4ff2022-02-11 14:59:47 +0800136 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
137 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
138 kmod-nls-iso8859-1
139 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
developer6747cdd2021-09-29 17:00:51 +0800140endef
141TARGET_DEVICES += mt7981-fpga-emmc
developer1bbf4ff2022-02-11 14:59:47 +0800142
143define Device/mt7981-fpga-sd
144 DEVICE_VENDOR := MediaTek
145 DEVICE_MODEL := mt7981-fpga-sd
146 DEVICE_DTS := mt7981-fpga-sd
147 SUPPORTED_DEVICES := mediatek,mt7981-fpga-sd
148 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
149 DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
150 kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
151 kmod-nls-iso8859-1
152 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
153endef
154TARGET_DEVICES += mt7981-fpga-sd