]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
env: Make ENV_IS_IN_SPI_FLASH depend on SPI flash being present
authorTom Rini <trini@konsulko.com>
Wed, 10 Jan 2024 18:46:08 +0000 (13:46 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 22 Jan 2024 19:17:35 +0000 (14:17 -0500)
In order for our environment to be present on SPI flash we need to
depend not on the symbol for a SPI controller but rather that SPI flash
of some sort is present. Update the dependencies.

Signed-off-by: Tom Rini <trini@konsulko.com>
env/Kconfig

index f5f09692332d54e7b9151d89471a3d8821e78a7e..7885c8bf83114d99338fbdd5982abd51f597f113 100644 (file)
@@ -342,7 +342,7 @@ config ENV_IS_IN_REMOTE
 
 config ENV_IS_IN_SPI_FLASH
        bool "Environment is in SPI flash"
-       depends on !CHAIN_OF_TRUST && SPI
+       depends on !CHAIN_OF_TRUST && (SPI_FLASH || DM_SPI_FLASH)
        default y if ARMADA_XP
        default y if INTEL_BAYTRAIL
        default y if INTEL_BRASWELL