fs/f2fs: add option to define list of filesystem features

Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
[Thomas: split from the initial patch from Grzegorz]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Grzegorz Blach 2018-11-03 15:32:52 +01:00 committed by Thomas Petazzoni
parent d4e5c0925a
commit 3c66b119ed
2 changed files with 11 additions and 1 deletions

View File

@ -42,4 +42,11 @@ config BR2_TARGET_ROOTFS_F2FS_DISCARD
help
Enable or disable discard policy.
config BR2_TARGET_ROOTFS_F2FS_FEATURES
string "filesystem features"
help
List of features that the F2FS filesystem should support
(e.g "encrypt")
endif # BR2_TARGET_ROOTFS_F2FS

View File

@ -25,12 +25,15 @@ else
F2FS_DISCARD = 0
endif
F2FS_FEATURES = $(call qstrip,$(BR2_TARGET_ROOTFS_F2FS_FEATURES))
F2FS_OPTS = \
-f \
-l "$(F2FS_LABEL)" \
-t $(F2FS_DISCARD) \
$(if $(F2FS_COLD_FILES),-e "$(F2FS_COLD_FILES)") \
$(if $(F2FS_OVERPROVISION),-o $(F2FS_OVERPROVISION))
$(if $(F2FS_OVERPROVISION),-o $(F2FS_OVERPROVISION)) \
$(if $(F2FS_FEATURES),-O "$(F2FS_FEATURES)")
ROOTFS_F2FS_DEPENDENCIES = host-f2fs-tools