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-05-24 22:14:03 +0200
commit51740777fb37cb7bdc250d74b366840269439cf3 (patch)
tree60d65a95c514b02986a0f3f81b508ca8633a0d8b /target/linux/mediatek/image/Makefile
parent050da2107a7eb2a571a8a3d0cee21cc6a44b72b8 (diff)
downloadupstream-51740777fb37cb7bdc250d74b366840269439cf3.tar.gz
upstream-51740777fb37cb7bdc250d74b366840269439cf3.tar.bz2
upstream-51740777fb37cb7bdc250d74b366840269439cf3.zip
mediatek: add mt7622 subtarget
Signed-off-by: John Crispin <john@phrozen.org>
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