]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Revert "board: st: stm32mp1: Clean env_get_location()"
authorKory Maincent <kory.maincent@bootlin.com>
Wed, 17 Sep 2025 14:17:35 +0000 (16:17 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 30 Sep 2025 14:44:26 +0000 (16:44 +0200)
This reverts commit d37641c61ba212241c38e3fd22f0335fc0bebc96.

Restore support for environment storage in EXT4 filesystem on eMMC boot.
The previous cleanup incorrectly removed this fallback option which is
needed for boards that store their environment in an EXT4 partition.

This configuration is OS-specific rather than board-dependent and should
remain as it is configurable via menuconfig. Even if it is not described
in ST defconfigs people may have enabled it in their defconfig.

Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
board/st/stm32mp1/stm32mp1.c

index ab7af69d47244c7ef66758e228140da4965554f6..cb5cab9f36adaebf24ffcb2932f4041fdc2119bf 100644 (file)
@@ -751,6 +751,8 @@ enum env_location env_get_location(enum env_operation op, int prio)
        case BOOT_FLASH_EMMC:
                if (CONFIG_IS_ENABLED(ENV_IS_IN_MMC))
                        return ENVL_MMC;
+               else if (CONFIG_IS_ENABLED(ENV_IS_IN_EXT4))
+                       return ENVL_EXT4;
                else
                        return ENVL_NOWHERE;