Set environment location to ENVL_NOWHERE with CONFIG_ENV_IS_NOWHERE.
PATCH 1/1 Set environment location to ENVL_NOWHERE with CONFIG_ENV_IS_NOWHERE.
Compiles code to set the environment location to ENVL_NOWHERE and return when CONFIG_ENV_IS_NOWHERE is set.
Environment location is dependent on CONFIG_ENV_IS_NOWHERE config and not on CONFIG_CHAIN_OF_TRUST.
Signed-off-by Udit Agarwal <[email protected]>
--- arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
arch/arm/cpu/armv8/fsl-layerscape/cpu.c +2 -6
@@ -795,11 +795,7 @@ enum env_location env_get_location(enum env_operation op, int prio)if (prio)return ENVL_UNKNOWN ; -#ifdef CONFIG_CHAIN_OF_TRUST -/* Check Boot Mode -* If Boot Mode is Secure, return ENVL_NOWHERE -*/ -if (fsl_check_boot_mode_secure () ==1 ) +#ifdef CONFIG_ENV_IS_NOWHERE goto done;#endif
@@ -830,7 +826,7 @@ enum env_location env_get_location(enum env_operation op, int prio)break ; } -#ifdef CONFIG_CHAIN_OF_TRUST +#ifdef CONFIG_ENV_IS_NOWHERE done:#endif return env_loc;
Signature · 1 line
2.17.1