blob: f42ca75367b5c7de7828da01b1160866e5dd4e1c [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
49 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
50 DEVICE_PACKAGES := mkf2fs e2fsprogs kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1 kmod-mmc
51 IMAGES := sysupgrade-emmc.bin.gz
52 IMAGE/sysupgrade-emmc.bin.gz := sysupgrade-emmc | gzip | append-metadata
53endef
developer63866c92021-11-15 12:05:13 +080054TARGET_DEVICES += mt7981-emmc-rfb
developer6747cdd2021-09-29 17:00:51 +080055
developer63866c92021-11-15 12:05:13 +080056define Device/mt7981-snfi-nand-2500wan-p5
developer6747cdd2021-09-29 17:00:51 +080057 DEVICE_VENDOR := MediaTek
developer63866c92021-11-15 12:05:13 +080058 DEVICE_MODEL := mt7981-snfi-nand-2500wan-p5
59 DEVICE_DTS := mt7981-snfi-nand-2500wan-p5
developer6747cdd2021-09-29 17:00:51 +080060 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
61 SUPPORTED_DEVICES := mediatek,mt7981-rfb,ubi
62 UBINIZE_OPTS := -E 5
63 BLOCKSIZE := 128k
64 PAGESIZE := 2048
65 IMAGE_SIZE := 65536k
66 KERNEL_IN_UBI := 1
67 IMAGES += factory.bin
68 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
69 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
70endef
developer63866c92021-11-15 12:05:13 +080071TARGET_DEVICES += mt7981-snfi-nand-2500wan-p5
developer6747cdd2021-09-29 17:00:51 +080072
73define Device/mt7981-fpga-spim-nor
74 DEVICE_VENDOR := MediaTek
75 DEVICE_MODEL := mt7981-fpga-spim-nor
76 DEVICE_DTS := mt7981-fpga-spim-nor
77 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
78endef
79TARGET_DEVICES += mt7981-fpga-spim-nor
80
81define Device/mt7981-fpga-snfi-nand
82 DEVICE_VENDOR := MediaTek
83 DEVICE_MODEL := mt7981-fpga-snfi-nand
84 DEVICE_DTS := mt7981-fpga-snfi-nand
85 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
86 SUPPORTED_DEVICES := mediatek,mt7981-fpga,ubi
87 UBINIZE_OPTS := -E 5
88 BLOCKSIZE := 128k
89 PAGESIZE := 2048
90 IMAGE_SIZE := 65536k
91 KERNEL_IN_UBI := 1
92 IMAGES += factory.bin
93 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
94 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
95endef
96TARGET_DEVICES += mt7981-fpga-snfi-nand
97
98define Device/mt7981-fpga-spim-nand
99 DEVICE_VENDOR := MediaTek
100 DEVICE_MODEL := mt7981-fpga-spim-nand
101 DEVICE_DTS := mt7981-fpga-spim-nand
102 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
103 SUPPORTED_DEVICES := mediatek,mt7981-fpga,ubi
104 UBINIZE_OPTS := -E 5
105 BLOCKSIZE := 128k
106 PAGESIZE := 2048
107 IMAGE_SIZE := 65536k
108 KERNEL_IN_UBI := 1
109 IMAGES += factory.bin
110 IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
111 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
112endef
113TARGET_DEVICES += mt7981-fpga-spim-nand
114
115define Device/mt7981-fpga-emmc
116 DEVICE_VENDOR := MediaTek
117 DEVICE_MODEL := mt7981-fpga-emmc
118 DEVICE_DTS := mt7981-fpga-emmc
119 DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
120 DEVICE_PACKAGES := mkf2fs e2fsprogs kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1 kmod-mmc
121 IMAGES := sysupgrade-emmc.bin.gz
122 IMAGE/sysupgrade-emmc.bin.gz := sysupgrade-emmc | gzip | append-metadata
123endef
124TARGET_DEVICES += mt7981-fpga-emmc