summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTien Fong Chee <tien.fong.chee@intel.com>2019-01-23 14:20:06 +0800
committerTom Rini <trini@konsulko.com>2019-02-01 09:14:21 -0500
commitcafc429fa86eea9feaf75847041dc641a54413c7 (patch)
tree0eeca51af681602b1491c132860ed45719a4cead
parentf4b409247429affe078a2c42d4c21d90ed2855e4 (diff)
spl: fat/fs: Add control to build FS EXT4 in SPL
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@intel.com> Reviewed-by: Tom Rini <trini@konsulko.com>
-rw-r--r--fs/fs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/fs.c b/fs/fs.c
index 1a6a64ea7f..c05e6c85ed 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",