diff options
author | John Crispin <john@phrozen.org> | 2016-06-17 03:46:25 +0200 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-06-17 04:13:08 +0200 |
commit | e81020c3173a108fb9045af3989a74f51997b44e (patch) | |
tree | 0a32d824e7cbeca650bf590c9e71288caa681691 /target/linux/mediatek/image/Makefile | |
parent | 16e04fd1b4572ad9f6cf006ff6dc895711d5d6cd (diff) | |
download | mtk-20170518-e81020c3173a108fb9045af3989a74f51997b44e.zip mtk-20170518-e81020c3173a108fb9045af3989a74f51997b44e.tar.gz mtk-20170518-e81020c3173a108fb9045af3989a74f51997b44e.tar.bz2 |
medaitek: convert the NAND target to UBI
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/mediatek/image/Makefile')
-rw-r--r-- | target/linux/mediatek/image/Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/target/linux/mediatek/image/Makefile b/target/linux/mediatek/image/Makefile index b88d2dc..3139197 100644 --- a/target/linux/mediatek/image/Makefile +++ b/target/linux/mediatek/image/Makefile @@ -30,12 +30,13 @@ define Image/Build/squashfs $(CP) $(KDIR)/root.squashfs $(BIN_DIR)/$(IMG_PREFIX)-root.squashfs $(call Image/Build/SysupgradeCombined,eMMC,squashfs) -endef - -define Image/Build/jffs2-128k - $(CP) $(KDIR)/root.jffs2-128k $(BIN_DIR)/$(IMG_PREFIX)-root.jffs2 - $(call Image/Build/SysupgradeCombined,NAND,jffs2-128k) + $(call Image/BuilduImage,NAND) +ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),) + $(call Image/BuilduImage,NAND,-initramfs) + $(CP) $(KDIR)/uImage-NAND-initramfs $(BIN_DIR)/$(IMG_PREFIX)-uImage-NAND-initramfs +endif + $(call Image/Build/SysupgradeNAND,NAND,$(1),$(KDIR)/uImage-NAND) endef define Image/Build |