From: Sjoerd Simons <sjoerd.sim...@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.sim...@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

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to