diff mbox series

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

Message ID 20190212170522.27262-3-adrian.ratiu@collabora.com
State Deferred
Delegated to: Marek Vasut
Headers show
Series [U-Boot,1/5] drivers: usb: musb: Fail if the ctrl mod register is missing | expand

Commit Message

Adrian Ratiu Feb. 12, 2019, 5:05 p.m. UTC
From: Sjoerd Simons <sjoerd.simons@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@collabora.co.uk>
---
 common/spl/Makefile | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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