aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2016-10-16 01:59:42 +0200
committerJo-Philipp Wich <jo@mein.io>2016-10-27 19:24:38 +0200
commit244955de166b14282e4d2b7ddcdcb72a653b5434 (patch)
tree3d4202fd4ebdf4d53c42f8a9738756c15bca6fe4
parent168adaefc29ca33f043a5f65bd560cf81daf0611 (diff)
downloadupstream-244955de166b14282e4d2b7ddcdcb72a653b5434.tar.gz
upstream-244955de166b14282e4d2b7ddcdcb72a653b5434.tar.bz2
upstream-244955de166b14282e4d2b7ddcdcb72a653b5434.zip
include: image.mk: make ext4 reserved blocks percentage optional
Allow CONFIG_TARGET_EXT4_RESERVED_PCT to be empty as make_ext4fs is usually able to figure out a suitable default. Signed-off-by: Jo-Philipp Wich <jo@mein.io> Reviewed-by: Michael Heimpold <mhei@heimpold.de>
-rw-r--r--include/image.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/image.mk b/include/image.mk
index 8b7d91d726..59dd66fa9c 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -245,7 +245,7 @@ define Image/mkfs/ext4
$(STAGING_DIR_HOST)/bin/make_ext4fs \
-l $(E2SIZE) -b $(CONFIG_TARGET_EXT4_BLOCKSIZE) \
-i $(CONFIG_TARGET_EXT4_MAXINODE) \
- -m $(CONFIG_TARGET_EXT4_RESERVED_PCT) \
+ $(if $(CONFIG_TARGET_EXT4_RESERVED_PCT),-m $(CONFIG_TARGET_EXT4_RESERVED_PCT)) \
$(if $(CONFIG_TARGET_EXT4_JOURNAL),,-J) \
$(if $(SOURCE_DATE_EPOCH),-T $(SOURCE_DATE_EPOCH)) \
$@ $(call mkfs_target_dir,$(1))/