summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-06-10 12:03:03 -0400
committerTom Rini <trini@konsulko.com>2020-06-16 16:46:42 -0400
commitb9c24eb80424394630fa0f9c8adb4efefbb86c3c (patch)
tree3647278ba7729961aaf10c7884602a6f927d2ff6
parent4f259d3b2b9f90080483cf30004d62e5597a38e2 (diff)
downloadu-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/Makefile2
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