diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-07-21 17:28:54 +0200 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-07-25 23:19:19 +0200 |
commit | 739d282c2fc83906c1cd75d01e86fc2ab8dd625c (patch) | |
tree | 0178c3f475a7b2a001efda5f0810b626a0335981 /target/linux/mediatek/image/Makefile | |
parent | a956c14d6aa49973b713120cede96bee41f2cd25 (diff) | |
download | upstream-739d282c2fc83906c1cd75d01e86fc2ab8dd625c.tar.gz upstream-739d282c2fc83906c1cd75d01e86fc2ab8dd625c.tar.bz2 upstream-739d282c2fc83906c1cd75d01e86fc2ab8dd625c.zip |
mediatek: remove condition in Device/Default
The current condition with part of the variables set dependent on
the subtarget in Device/Default isn't really nice to read and also
defeats the purpose of having a default node.
This removes the special settings for mt7623 and moves them to the
individual devices, which is not much of a problem as there are
actually just two of them and they partly use different settings
anyway.
While at it, slightly adjust the order of variables and wrap some
long lines.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/mediatek/image/Makefile')
-rw-r--r-- | target/linux/mediatek/image/Makefile | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/target/linux/mediatek/image/Makefile b/target/linux/mediatek/image/Makefile index db702509ed..724bf430ef 100644 --- a/target/linux/mediatek/image/Makefile +++ b/target/linux/mediatek/image/Makefile @@ -21,21 +21,17 @@ endef # default all platform image(fit) build define Device/Default PROFILES = Default $$(DEVICE_NAME) - KERNEL_NAME := zImage + KERNEL_NAME := Image + KERNEL = kernel-bin | lzma | \ + fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb + KERNEL_INITRAMFS = kernel-bin | lzma | \ + fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb FILESYSTEMS := squashfs DEVICE_DTS_DIR := $(DTS_DIR) IMAGES := sysupgrade.bin - IMAGE/sysupgrade.bin := append-kernel | pad-to 128k | append-rootfs | pad-rootfs | append-metadata + IMAGE/sysupgrade.bin := append-kernel | pad-to 128k | append-rootfs | \ + pad-rootfs | append-metadata SUPPORTED_DEVICES := $(subst _,$(comma),$(1)) -ifeq ($(SUBTARGET),mt7623) - KERNEL_NAME := zImage - KERNEL := kernel-bin | append-dtb | uImage none - KERNEL_INITRAMFS := kernel-bin | append-dtb | uImage none -else - KERNEL_NAME := Image - KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb - KERNEL_INITRAMFS = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb -endif endef include $(SUBTARGET).mk |