aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorGravatar Grzegorz Blach <grzegorz@blach.pl>2018-11-06 15:06:46 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-11-08 21:17:49 +0100
commit3946f74b00f96eb0e178f73a25d50d75c8a03e9e (patch)
tree83b41d8cf0ef0ce7503e337e35766dfe1920fecc /fs
parent25076c94c0bfbd02790ba2486db5ee558016a1e1 (diff)
downloadbuildroot-3946f74b00f96eb0e178f73a25d50d75c8a03e9e.tar.gz
buildroot-3946f74b00f96eb0e178f73a25d50d75c8a03e9e.tar.bz2
fs/f2fs: simplify overprovision option handling
Setting overprovision to 0 and omitting this option has exactly the same effect. Signed-off-by: Grzegorz Blach <grzegorz@blach.pl> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/f2fs/f2fs.mk6
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/f2fs/f2fs.mk b/fs/f2fs/f2fs.mk
index d4b8310ba3..f35bb60ad0 100644
--- a/fs/f2fs/f2fs.mk
+++ b/fs/f2fs/f2fs.mk
@@ -16,10 +16,6 @@ F2FS_LABEL := $(subst ",,$(BR2_TARGET_ROOTFS_F2FS_LABEL))
F2FS_COLD_FILES = $(call qstrip,$(BR2_TARGET_ROOTFS_F2FS_COLD_FILES))
F2FS_HOT_FILES = $(call qstrip,$(BR2_TARGET_ROOTFS_F2FS_HOT_FILES))
-ifneq ($(BR2_TARGET_ROOTFS_F2FS_OVERPROVISION),0)
-F2FS_OVERPROVISION = $(BR2_TARGET_ROOTFS_F2FS_OVERPROVISION)
-endif
-
ifeq ($(BR2_TARGET_ROOTFS_F2FS_DISCARD),y)
F2FS_DISCARD = 1
else
@@ -32,9 +28,9 @@ F2FS_OPTS = \
-f \
-l "$(F2FS_LABEL)" \
-t $(F2FS_DISCARD) \
+ -o $(BR2_TARGET_ROOTFS_F2FS_OVERPROVISION) \
$(if $(F2FS_COLD_FILES),-e "$(F2FS_COLD_FILES)") \
$(if $(F2FS_HOT_FILES),-E "$(F2FS_HOT_FILES)") \
- $(if $(F2FS_OVERPROVISION),-o $(F2FS_OVERPROVISION)) \
$(if $(F2FS_FEATURES),-O "$(F2FS_FEATURES)")
ROOTFS_F2FS_DEPENDENCIES = host-f2fs-tools