]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spl: Allow cache drivers to be used in SPL
authorLey Foon Tan <ley.foon.tan@intel.com>
Fri, 11 Oct 2019 05:48:33 +0000 (13:48 +0800)
committerMarek Vasut <marex@denx.de>
Tue, 7 Jan 2020 13:38:33 +0000 (14:38 +0100)
Add an option for building cache drivers in SPL.

Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
common/spl/Kconfig
drivers/Makefile
drivers/cache/Makefile

index c527617e43402ffb65eaba6c80054e4eacd31e28..61488daa3c3df714a0b5e2a0cf1cd776296a7c84 100644 (file)
@@ -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
index cb8c215e76700b873ea331cb2ab47ce1bec48f2f..bfc5a253af9516e9dade352bc1ff9b14458c4300 100644 (file)
@@ -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/
index 4a6458c6027b483842976896ed118e5a4b50bdc6..924217044a0e4224b43e73103b9495e1c03cd2ae 100644 (file)
@@ -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