fs/f2fs: add option to define list of filesystem features
authorGrzegorz Blach <grzegorz@blach.pl>
Sat, 3 Nov 2018 14:32:52 +0000 (15:32 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 3 Nov 2018 14:32:52 +0000 (15:32 +0100)
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>
fs/f2fs/Config.in
fs/f2fs/f2fs.mk

index 585b32e6a280862c82c1c05fc4ca803de1a59f41..8a66645325a460fc8a6e32b5be7ca5785e882098 100644 (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
index 558cddf233259bb2a30beae18ab7ba0139ef8f6b..63e3cdae7b63ed42e180a71a15d225a3ff452653 100644 (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