summaryrefslogtreecommitdiff
path: root/fs/fat/fat.c
diff options
context:
space:
mode:
authorTien Fong Chee <tien.fong.chee@intel.com>2019-01-23 09:20:04 +0300
committerTom Rini <trini@konsulko.com>2019-02-01 17:12:48 +0300
commitd8c3ea99826f652efa5e8843f7fb98dfd6f8d194 (patch)
treefd2bd53b220ed436d9e2641edc5ab9188759fd34 /fs/fat/fat.c
parent0c3a9ed409a5efac27df762acb2af6271675b07d (diff)
downloadu-boot-d8c3ea99826f652efa5e8843f7fb98dfd6f8d194.tar.xz
spl: fat/fs: Add option to include/exclude FAT write build in SPL
Most of the time SPL only needs very simple FAT reading, so having CONFIG_IS_ENABLED(FAT_WRITE) to exclude it from SPL build would help to save 64KiB default max clustersize from memory. Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com> Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'fs/fat/fat.c')
-rw-r--r--fs/fat/fat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/fat/fat.c b/fs/fat/fat.c
index 179bf4f3d8..dac86ea516 100644
--- a/fs/fat/fat.c
+++ b/fs/fat/fat.c
@@ -145,7 +145,8 @@ static void get_name(dir_entry *dirent, char *s_name)
}
static int flush_dirty_fat_buffer(fsdata *mydata);
-#if !defined(CONFIG_FAT_WRITE)
+
+#if !CONFIG_IS_ENABLED(FAT_WRITE)
/* Stub for read only operation */
int flush_dirty_fat_buffer(fsdata *mydata)
{