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 | |
parent | 16e04fd1b4572ad9f6cf006ff6dc895711d5d6cd (diff) | |
download | upstream-e81020c3173a108fb9045af3989a74f51997b44e.tar.gz upstream-e81020c3173a108fb9045af3989a74f51997b44e.tar.bz2 upstream-e81020c3173a108fb9045af3989a74f51997b44e.zip |
medaitek: convert the NAND target to UBI
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/mediatek/image')
-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 b88d2dce2f..3139197dd3 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 |