summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluka <luka@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-11-14 01:35:21 +0000
committerluka <luka@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-11-14 01:35:21 +0000
commite050a3726e2d611ae1b997945f5efd2ddbce82e6 (patch)
treebafb50e264dc3954d75a0115d215f6433acf816d
parente8fbdb20466d3b2cb5cd3d73baa9501102fc8e1f (diff)
image: don't force ubifs journal size
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38799 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--Config.in2
-rw-r--r--include/image.mk2
2 files changed, 2 insertions, 2 deletions
diff --git a/Config.in b/Config.in
index d6573a6fb7..ea5f8eae2b 100644
--- 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
diff --git a/include/image.mk b/include/image.mk
index 71822de980..aa565951a9 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -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)