aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2013-10-04 10:49:47 +0000
committerLuka Perkov <luka@openwrt.org>2013-10-04 10:49:47 +0000
commit69507e84132aa3e45e77c79f97133e9c8ec0a329 (patch)
treed84dd7cbb815131e71fc593d23642dd89ce9c1be /include
parentf578cfad56a4dac3b4e44198d6b49d34682ce734 (diff)
downloadupstream-69507e84132aa3e45e77c79f97133e9c8ec0a329.tar.gz
upstream-69507e84132aa3e45e77c79f97133e9c8ec0a329.tar.bz2
upstream-69507e84132aa3e45e77c79f97133e9c8ec0a329.zip
build: extend menu with few ubifs options
Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38303 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r--include/image.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/image.mk b/include/image.mk
index 5d512df38d..e0731f0895 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -116,7 +116,15 @@ endif
ifneq ($(CONFIG_TARGET_ROOTFS_UBIFS),)
define Image/mkfs/ubifs
$(CP) ./ubinize.cfg $(KDIR)
- $(STAGING_DIR_HOST)/bin/mkfs.ubifs $(UBIFS_OPTS) $(MKFS_DEVTABLE_OPT) -o $(KDIR)/root.ubifs -d $(TARGET_DIR)
+ $(STAGING_DIR_HOST)/bin/mkfs.ubifs \
+ $(UBIFS_OPTS) \
+ $(if $(CONFIG_TARGET_UBIFS_FREE_SPACE_FIXUP),--space-fixup) \
+ $(if $(CONFIG_TARGET_UBIFS_COMPRESSION_NONE),--force-compr=none) \
+ $(if $(CONFIG_TARGET_UBIFS_COMPRESSION_LZO),--force-compr=lzo) \
+ $(if $(CONFIG_TARGET_UBIFS_COMPRESSION_ZLIB),--force-compr=zlib) \
+ --jrn-size=$(CONFIG_TARGET_UBIFS_JOURNAL_SIZE) \
+ -o $(KDIR)/root.ubifs \
+ -d $(TARGET_DIR)
$(call Image/Build,ubifs)
(cd $(KDIR); \
$(STAGING_DIR_HOST)/bin/ubinize $(UBINIZE_OPTS) -o $(KDIR)/root.ubi ubinize.cfg)