From: Ley Foon Tan Date: Fri, 11 Oct 2019 05:48:33 +0000 (+0800) Subject: spl: Allow cache drivers to be used in SPL X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=5c9c71b660a01d088ac66b7b8c1378915bcef68e;p=u-boot.git spl: Allow cache drivers to be used in SPL Add an option for building cache drivers in SPL. Signed-off-by: Ley Foon Tan Reviewed-by: Tom Rini Reviewed-by: Simon Goldschmidt --- diff --git a/common/spl/Kconfig b/common/spl/Kconfig index c527617e43..61488daa3c 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -731,6 +731,12 @@ config SPL_UBI README.ubispl for more info. if SPL_DM +config SPL_CACHE + depends on CACHE + bool "Support cache drivers in SPL" + help + Enable support for cache drivers in SPL. + config SPL_DM_SPI bool "Support SPI DM drivers in SPL" help diff --git a/drivers/Makefile b/drivers/Makefile index cb8c215e76..bfc5a253af 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0+ +obj-$(CONFIG_$(SPL_TPL_)CACHE) += cache/ obj-$(CONFIG_$(SPL_TPL_)CLK) += clk/ obj-$(CONFIG_$(SPL_TPL_)DM) += core/ obj-$(CONFIG_$(SPL_TPL_)DFU) += dfu/ diff --git a/drivers/cache/Makefile b/drivers/cache/Makefile index 4a6458c602..924217044a 100644 --- a/drivers/cache/Makefile +++ b/drivers/cache/Makefile @@ -1,5 +1,5 @@ -obj-$(CONFIG_CACHE) += cache-uclass.o +obj-$(CONFIG_$(SPL_TPL_)CACHE) += cache-uclass.o obj-$(CONFIG_SANDBOX) += sandbox_cache.o obj-$(CONFIG_L2X0_CACHE) += cache-l2x0.o obj-$(CONFIG_V5L2_CACHE) += cache-v5l2.o