spl: fat/fs: Add option to include/exclude FAT write build in SPL
authorTien Fong Chee <tien.fong.chee@intel.com>
Wed, 23 Jan 2019 06:20:04 +0000 (14:20 +0800)
committerTom Rini <trini@konsulko.com>
Fri, 1 Feb 2019 14:12:48 +0000 (09:12 -0500)
commitd8c3ea99826f652efa5e8843f7fb98dfd6f8d194
treefd2bd53b220ed436d9e2641edc5ab9188759fd34
parent0c3a9ed409a5efac27df762acb2af6271675b07d
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>
common/spl/Kconfig
fs/fat/Makefile
fs/fat/fat.c
fs/fs.c