summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKory Maincent <[email protected]>2025-09-17 16:17:35 +0200
committerPatrice Chotard <[email protected]>2025-09-30 16:44:26 +0200
commitd1afa6650434b1d6ebeba22a44c3e02a2e822798 (patch)
treead9480aca742b6e274a25b7e849f8f4b5fddaae6
parenta239b0b0b6dbe6a168969b8cd6e600cf85db278d (diff)
Revert "board: st: stm32mp1: Clean env_get_location()"
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 <[email protected]> Reviewed-by: Patrice Chotard <[email protected]>
-rw-r--r--board/st/stm32mp1/stm32mp1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
index ab7af69d472..cb5cab9f36a 100644
--- a/board/st/stm32mp1/stm32mp1.c
+++ b/board/st/stm32mp1/stm32mp1.c
@@ -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;