[LEDE-DEV] [RFC 1/3] include: image.mk: make certain ext4 parameters optional

Jo-Philipp Wich jo at mein.io
Sat Oct 15 16:59:42 PDT 2016


Allow CONFIG_TARGET_EXT4_MAXINODE and CONFIG_TARGET_EXT4_RESERVED_PCT to be
empty as make_ext4fs is usually be able to figure out proper defaults.

Signed-off-by: Jo-Philipp Wich <jo at mein.io>
---
 include/image.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/image.mk b/include/image.mk
index 8b7d91d..c744674 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -244,8 +244,8 @@ E2SIZE=$(shell echo $$(($(CONFIG_TARGET_ROOTFS_PARTSIZE)*1024*1024)))
 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_MAXINODE),-i $(CONFIG_TARGET_EXT4_MAXINODE)) \
+		$(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))/
-- 
2.1.4




More information about the Lede-dev mailing list