diff options
author | Felix Fietkau <nbd@nbd.name> | 2022-07-06 14:06:30 +0200 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2022-08-28 20:33:15 +0100 |
commit | cffc77ae55ed0e5b9e70417d6a1e1d280cea92cf (patch) | |
tree | df102b03b69506a9624ba4de30334f68763f369a /target/linux/mediatek/image/filogic.mk | |
parent | dabcaac443d9ac2e05acc4de5e588356dd1f8bfa (diff) | |
download | upstream-cffc77ae55ed0e5b9e70417d6a1e1d280cea92cf.tar.gz upstream-cffc77ae55ed0e5b9e70417d6a1e1d280cea92cf.tar.bz2 upstream-cffc77ae55ed0e5b9e70417d6a1e1d280cea92cf.zip |
mediatek: add filogic subtarget
Initially this covers MT7986 only, but it will later be expanded to cover other
Filogic branded platforms by MediaTek
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'target/linux/mediatek/image/filogic.mk')
-rw-r--r-- | target/linux/mediatek/image/filogic.mk | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/target/linux/mediatek/image/filogic.mk b/target/linux/mediatek/image/filogic.mk new file mode 100644 index 0000000000..dfa7f092cf --- /dev/null +++ b/target/linux/mediatek/image/filogic.mk @@ -0,0 +1,51 @@ +DTS_DIR := $(DTS_DIR)/mediatek + +KERNEL_LOADADDR := 0x44000000 + +define Image/Prepare + # For UBI we want only one extra block + rm -f $(KDIR)/ubi_mark + echo -ne '\xde\xad\xc0\xde' > $(KDIR)/ubi_mark +endef + +define Device/mediatek_mt7986a-rfb + DEVICE_VENDOR := MediaTek + DEVICE_MODEL := MTK7986 rfba AP + DEVICE_DTS := mt7986a-rfb + DEVICE_DTS_DIR := $(DTS_DIR)/ + KERNEL_LOADADDR := 0x48000000 + DEVICE_DTS_OVERLAY := mt7986a-rfb-spim-nand mt7986a-rfb-spim-nor + SUPPORTED_DEVICES := mediatek,mt7986a-rfb + UBINIZE_OPTS := -E 5 + BLOCKSIZE := 128k + PAGESIZE := 2048 + IMAGE_SIZE := 65536k + KERNEL_IN_UBI := 1 + IMAGES += factory.bin + IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE) + IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata + KERNEL = kernel-bin | lzma | \ + fit lzma $$(KDIR)/$$(firstword $$(DEVICE_DTS)).dtb + KERNEL_INITRAMFS = kernel-bin | lzma | \ + fit lzma $$(KDIR)/$$(firstword $$(DEVICE_DTS)).dtb with-initrd + DTC_FLAGS += -@ --space 32768 +endef +TARGET_DEVICES += mediatek_mt7986a-rfb + +define Device/mediatek_mt7986b-rfb + DEVICE_VENDOR := MediaTek + DEVICE_MODEL := MTK7986 rfbb AP + DEVICE_DTS := mt7986b-rfb + DEVICE_DTS_DIR := $(DTS_DIR)/ + KERNEL_LOADADDR := 0x48000000 + SUPPORTED_DEVICES := mediatek,mt7986b-rfb + UBINIZE_OPTS := -E 5 + BLOCKSIZE := 128k + PAGESIZE := 2048 + IMAGE_SIZE := 65536k + KERNEL_IN_UBI := 1 + IMAGES += factory.bin + IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE) + IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata +endef +TARGET_DEVICES += mediatek_mt7986b-rfb |