Skip to content

Commit d1afa66

Browse files
kmaincentPatrice Chotard
authored andcommitted
Revert "board: st: stm32mp1: Clean env_get_location()"
This reverts commit d37641c. 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]>
1 parent a239b0b commit d1afa66

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

board/st/stm32mp1/stm32mp1.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,8 @@ enum env_location env_get_location(enum env_operation op, int prio)
751751
case BOOT_FLASH_EMMC:
752752
if (CONFIG_IS_ENABLED(ENV_IS_IN_MMC))
753753
return ENVL_MMC;
754+
else if (CONFIG_IS_ENABLED(ENV_IS_IN_EXT4))
755+
return ENVL_EXT4;
754756
else
755757
return ENVL_NOWHERE;
756758

0 commit comments

Comments
 (0)