From: Tom Rini Date: Mon, 23 Mar 2026 19:52:55 +0000 (-0600) Subject: spl: env: Correct dependencies for SPL_SAVEENV and MMC X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b25d864a97b986ef1038697c8f0dd73262d05220;p=thirdparty%2Fu-boot.git spl: env: Correct dependencies for SPL_SAVEENV and MMC The SPL_SAVEENV functionality, when working with an MMC device, can only work with SPL_MMC_WRITE enabled. This however only works with SPL_MMC also being enabled. Update the dependencies to show that if we have enabled SPL_ENV_IS_IN_MMC then we select SPL_MMC_WRITE and make SPL_ENV_IS_IN_MMC depends on SPL_MMC. Signed-off-by: Tom Rini --- diff --git a/common/spl/Kconfig b/common/spl/Kconfig index d1a85f50209..57b2bef5e54 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -729,7 +729,7 @@ config SPL_ENV_SUPPORT config SPL_SAVEENV bool "Support save environment" depends on SPL_ENV_SUPPORT - select SPL_MMC_WRITE if ENV_IS_IN_MMC + select SPL_MMC_WRITE if SPL_ENV_IS_IN_MMC help Enable save environment support in SPL after setenv. By default the saveenv option is not provided in SPL, but some boards need diff --git a/env/Kconfig b/env/Kconfig index 5979f7faa99..532adf884da 100644 --- a/env/Kconfig +++ b/env/Kconfig @@ -847,6 +847,7 @@ config SPL_ENV_IS_IN_MMC bool "SPL Environment in an MMC device" depends on !SPL_ENV_IS_NOWHERE depends on !SPL_OS_BOOT_SECURE + depends on SPL_MMC depends on ENV_IS_IN_MMC default y help