include: image.mk: make ext4 reserved blocks percentage optional
authorJo-Philipp Wich <jo@mein.io>
Sat, 15 Oct 2016 23:59:42 +0000 (01:59 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 27 Oct 2016 17:24:38 +0000 (19:24 +0200)
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>
include/image.mk

index 8b7d91d726ab6a7742224627c5408e4a04daf036..59dd66fa9c2b2a4e92ccdd90f2bb193c23d266a4 100644 (file)
@@ -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))/