From 8bb483b3cb3d5186840b702e64ec911962f761bb Mon Sep 17 00:00:00 2001 From: Joao Paulo Goncalves Date: Fri, 6 Oct 2023 13:18:48 -0300 Subject: toradex: env: Enable env is nowhere for imx8 modules The downstream code will not build when the environment on MMC is not defined. Additionally, when the environment on EMMC is defined simultaneously with ENV_IS_NOWHERE, it takes priority. This change makes it possible to use ENV_IS_NOWHERE for recovery mode without the need to enable the environment in MMC downstream. Upstream-Status: Inappropriate [other] This change is specific to the downstream code, as the solution in upstream differs. Signed-off-by: Joao Paulo Goncalves --- arch/arm/mach-imx/mmc_env.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-imx/mmc_env.c b/arch/arm/mach-imx/mmc_env.c index 7012ae9d7b..0c2987dece 100644 --- a/arch/arm/mach-imx/mmc_env.c +++ b/arch/arm/mach-imx/mmc_env.c @@ -10,6 +10,10 @@ #include #include +#ifndef CONFIG_SYS_MMC_ENV_DEV +#define CONFIG_SYS_MMC_ENV_DEV 0 +#endif + __weak int board_mmc_get_env_dev(int devno) { return devno; -- cgit v1.2.3