[U-Boot] [PATCH 3/5] spl: Add ability to disable SPL FAT

Adrian Ratiu adrian.ratiu at collabora.com
Tue Feb 12 17:05:20 UTC 2019


From: Sjoerd Simons <sjoerd.simons at collabora.co.uk>

spl_usb depends on FAT support, so don't try to build it if fat support
is disabled for SPL.

Signed-off-by: Sjoerd Simons <sjoerd.simons at collabora.co.uk>
---
 common/spl/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/spl/Makefile b/common/spl/Makefile
index e1daabf1e9c..42db0441559 100644
--- a/common/spl/Makefile
+++ b/common/spl/Makefile
@@ -22,7 +22,9 @@ obj-$(CONFIG_$(SPL_TPL_)NET_SUPPORT) += spl_net.o
 obj-$(CONFIG_$(SPL_TPL_)MMC_SUPPORT) += spl_mmc.o
 obj-$(CONFIG_$(SPL_TPL_)ATF) += spl_atf.o
 obj-$(CONFIG_$(SPL_TPL_)OPTEE) += spl_optee.o
+ifdef CONFIG_SPL_FS_FAT
 obj-$(CONFIG_$(SPL_TPL_)USB_SUPPORT) += spl_usb.o
+endif
 obj-$(CONFIG_$(SPL_TPL_)FS_FAT) += spl_fat.o
 obj-$(CONFIG_$(SPL_TPL_)FS_EXT4) += spl_ext.o
 obj-$(CONFIG_$(SPL_TPL_)SATA_SUPPORT) += spl_sata.o
-- 
2.20.1



More information about the U-Boot mailing list