aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/image/Makefile
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2018-05-24 22:10:49 +0200
committerJohn Crispin <john@phrozen.org>2018-06-18 21:21:53 +0200
commit8e662b96542d06ab6602ae8d390d2512a10784d4 (patch)
tree0561365d8ee8879afae8997b1bf775ec1e07103f /target/linux/mediatek/image/Makefile
parentda8fc1511fc83f6ba2cf0e1e1feadbe1b9b58f4d (diff)
downloadupstream-8e662b96542d06ab6602ae8d390d2512a10784d4.tar.gz
upstream-8e662b96542d06ab6602ae8d390d2512a10784d4.tar.bz2
upstream-8e662b96542d06ab6602ae8d390d2512a10784d4.zip
mediatek: add mt7622 subtarget
Signed-off-by: John Crispin <john@phrozen.org> (cherry picked from commit 51740777fb37cb7bdc250d74b366840269439cf3)
Diffstat (limited to 'target/linux/mediatek/image/Makefile')
-rw-r--r--target/linux/mediatek/image/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/mediatek/image/Makefile b/target/linux/mediatek/image/Makefile
index 9e2575b7ee..6659d446d0 100644
--- a/target/linux/mediatek/image/Makefile
+++ b/target/linux/mediatek/image/Makefile
@@ -11,6 +11,11 @@ include $(INCLUDE_DIR)/image.mk
# for arm
KERNEL_LOADADDR := 0x80008000
+# for arm64
+ifeq ($(SUBTARGET),mt7622)
+KERNEL_LOADADDR = 0x41080000
+endif
+
# build dtb
define Build/dtb
$(call Image/BuildDTB,$(DEVICE_DTS_DIR)/$(DEVICE_DTS).dts,$(DEVICE_DTS_DIR)/$(DEVICE_DTS).dtb)
@@ -25,11 +30,22 @@ define Device/Default
DEVICE_DTS_DIR := $(DTS_DIR)
IMAGES := sysupgrade.bin
IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
+ifeq ($(SUBTARGET),mt7623)
KERNEL_NAME := zImage
KERNEL := dtb | kernel-bin | append-dtb | uImage none
KERNEL_INITRAMFS := dtb | kernel-bin | append-dtb | uImage none
+endif
+ifeq ($(SUBTARGET),mt7622)
+ KERNEL_NAME := Image
+ KERNEL = dtb | kernel-bin | lzma | fit lzma $$(DEVICE_DTS_DIR)/$$(DEVICE_DTS).dtb
+ KERNEL_INITRAMFS = dtb | kernel-bin | lzma | fit lzma $$(DEVICE_DTS_DIR)/$$(DEVICE_DTS).dtb
+endif
endef
+ifeq ($(SUBTARGET),mt7622)
+include mt7622.mk
+endif
+
ifeq ($(SUBTARGET),mt7623)
include mt7623.mk
endif