aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/image
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
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')
-rw-r--r--target/linux/mediatek/image/Makefile16
-rw-r--r--target/linux/mediatek/image/mt7622.mk9
2 files changed, 25 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
diff --git a/target/linux/mediatek/image/mt7622.mk b/target/linux/mediatek/image/mt7622.mk
new file mode 100644
index 0000000000..86b25ce33c
--- /dev/null
+++ b/target/linux/mediatek/image/mt7622.mk
@@ -0,0 +1,9 @@
+define Device/MTK-RFB1
+ DEVICE_TITLE := MTK7622 rfb1 AP
+ DEVICE_DTS := mt7622-rfb1
+ DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
+ SUPPORTED_DEVICES := mt7622
+ DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb3 \
+ kmod-ata-core kmod-ata-ahci-mtk
+endef
+TARGET_DEVICES += MTK-RFB1