image: don't force ubifs journal size
authorLuka Perkov <luka@openwrt.org>
Thu, 14 Nov 2013 01:35:21 +0000 (01:35 +0000)
committerLuka Perkov <luka@openwrt.org>
Thu, 14 Nov 2013 01:35:21 +0000 (01:35 +0000)
Small journal size can lead to problems if nand flash is too big. By default
ubifs will use ~12% of volume size or a maximum of 8MiB.

Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 38799

Config.in
include/image.mk

index d6573a6fb706e9c97b1e6f80b7714321bc9504f3..ea5f8eae2bbf3ff1b598e3648b3f001ea42b224d 100644 (file)
--- a/Config.in
+++ b/Config.in
@@ -143,7 +143,7 @@ menu "Target Images"
                config TARGET_UBIFS_JOURNAL_SIZE
                        string
                        prompt "journal size" if TARGET_ROOTFS_UBIFS
-                       default "512KiB"
+                       default ""
 
                config TARGET_UBIFS_SQUASH_UIDS
                        bool "squash uids" if TARGET_ROOTFS_UBIFS
index 71822de980d8a4a206dd0ecec8ef0fa2f659ff80..aa565951a9924fcfaf50e0f0bd7528a2fddc6b15 100644 (file)
@@ -142,7 +142,7 @@ ifneq ($(CONFIG_TARGET_ROOTFS_UBIFS),)
                        $(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) \
+                       $(if $(shell echo $(CONFIG_TARGET_UBIFS_JOURNAL_SIZE)),--jrn-size=$(CONFIG_TARGET_UBIFS_JOURNAL_SIZE)) \
                        --squash-uids \
                        -o $(KDIR)/root.ubifs \
                        -d $(TARGET_DIR)