diff options
author | Tom Rini <trini@konsulko.com> | 2020-06-10 12:03:03 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-06-16 16:46:42 -0400 |
commit | b9c24eb80424394630fa0f9c8adb4efefbb86c3c (patch) | |
tree | 3647278ba7729961aaf10c7884602a6f927d2ff6 | |
parent | 4f259d3b2b9f90080483cf30004d62e5597a38e2 (diff) | |
download | u-boot-b9c24eb80424394630fa0f9c8adb4efefbb86c3c.tar.gz |
spi: Update build guard for DM objects to cover SPL/TPL
We need to ensure that in the cases where SPL / TPL do not use DM we do
not try and build the core nor drivers that require DM.
Cc: Jagan Teki <jagan@amarulasolutions.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r-- | drivers/spi/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/Makefile b/drivers/spi/Makefile index 54881a7412..9559e938d2 100644 --- a/drivers/spi/Makefile +++ b/drivers/spi/Makefile @@ -4,7 +4,7 @@ # Wolfgang Denk, DENX Software Engineering, wd@denx.de. # There are many options which enable SPI, so make this library available -ifdef CONFIG_DM_SPI +ifdef CONFIG_$(SPL_TPL_)DM_SPI obj-y += spi-uclass.o obj-$(CONFIG_SANDBOX) += spi-emul-uclass.o obj-$(CONFIG_SOFT_SPI) += soft_spi.o |