summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2010-01-11 01:10:45 +0000
committerLars-Peter Clausen <lars@metafoo.de>2010-01-11 01:10:45 +0000
commitdb06ca593b3d80ec514ecb2b20d49e3638cd3f0b (patch)
tree8c17d3ddd1ffaa8348d83ae1708e83af2b54679b /include
parent5ec88a4a15b4c9eb2957b56e41e6d88e9477ab55 (diff)
downloadmtk-20170518-db06ca593b3d80ec514ecb2b20d49e3638cd3f0b.zip
mtk-20170518-db06ca593b3d80ec514ecb2b20d49e3638cd3f0b.tar.gz
mtk-20170518-db06ca593b3d80ec514ecb2b20d49e3638cd3f0b.tar.bz2
Add support for building ubifs images.
SVN-Revision: 19097
Diffstat (limited to 'include')
-rw-r--r--include/image.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/image.mk b/include/image.mk
index 7f23079..ac80937 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -86,6 +86,14 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
( cd $(TARGET_DIR); find . | cpio -o -H newc | gzip -9 >$(BIN_DIR)/openwrt-$(BOARD)-rootfs.cpio.gz )
endef
endif
+ ifeq ($(CONFIG_TARGET_ROOTFS_UBIFS),y)
+ define Image/mkfs/ubifs
+ $(CP) ./ubinize.cfg $(KDIR)
+ $(STAGING_DIR_HOST)/bin/mkfs.ubifs $(UBIFS_OPTS) -o $(KDIR)/root.ubifs -d $(TARGET_DIR)
+ (cd $(KDIR); \
+ $(STAGING_DIR_HOST)/bin/ubinize $(UBINIZE_OPTS) -o $(BIN_DIR)/openwrt-$(BOARD)-rootfs.ubi ubinize.cfg)
+ endef
+ endif
else
define Image/BuildKernel
cp $(KDIR)/vmlinux.elf $(BIN_DIR)/openwrt-$(BOARD)-vmlinux.elf
@@ -150,6 +158,7 @@ ifneq ($(IB),1)
$(call Image/mkfs/cpiogz)
$(call Image/mkfs/ext2)
$(call Image/mkfs/iso)
+ $(call Image/mkfs/ubifs)
$(call Image/Checksum)
else
install: compile install-targets
@@ -160,6 +169,7 @@ else
$(call Image/mkfs/cpiogz)
$(call Image/mkfs/ext2)
$(call Image/mkfs/iso)
+ $(call Image/mkfs/ubifs)
$(call Image/Checksum)
endif