[U-Boot] [PATCH v2 4/4] spl: fat/fs: Add control to build FS EXT4 in SPL
tien.fong.chee at intel.com
tien.fong.chee at intel.com
Wed Jan 23 06:20:06 UTC 2019
From: Tien Fong Chee <tien.fong.chee at intel.com>
CONFIG_SPL_FS_EXT4 can be used to include/exclude the FS EXT4 from
SPL build. Excluding the FS EXT4 from SPL build can help to save 20KiB
memory.
Signed-off-by: Tien Fong Chee <tien.fong.chee at intel.com>
---
changes in v2:
- Changed both config checking SPL_BUILD and FS_EXT4 to
CONFIG_IS_ENABLED(FS_EXT4).
---
fs/fs.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fs/fs.c b/fs/fs.c
index 48b8e9a..21adbde 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -183,7 +183,8 @@ static struct fstype_info fstypes[] = {
.closedir = fat_closedir,
},
#endif
-#ifdef CONFIG_FS_EXT4
+
+#if CONFIG_IS_ENABLED(FS_EXT4)
{
.fstype = FS_TYPE_EXT,
.name = "ext4",
--
2.2.0
More information about the U-Boot
mailing list