From: tien.fong.chee at intel.com Date: Wed, 23 Jan 2019 14:20:06 +0800 Subject: [U-Boot] [PATCH v2 4/4] spl: fat/fs: Add control to build FS EXT4 in SPL In-Reply-To: <1548224406-37649-1-git-send-email-tien.fong.chee@intel.com> References: <1548224406-37649-1-git-send-email-tien.fong.chee@intel.com> Message-ID: <1548224406-37649-4-git-send-email-tien.fong.chee@intel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Tien Fong Chee 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 --- 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