* [U-Boot] [PATCH v2 1/1] Set environment location to ENVL_NOWHERE with CONFIG_ENV_IS_NOWHERE.
@ 2019-03-07 9:24 Udit Agarwal
2019-03-22 11:01 ` Prabhakar Kushwaha
0 siblings, 1 reply; 3+ messages in thread
From: Udit Agarwal @ 2019-03-07 9:24 UTC (permalink / raw)
To: u-boot
ENVL_NOWHERE is dependent on CONFIG_ENV_IS_NOWHERE and not on
CONFIG_CHAIN_OF_TRUST so return ENVL_NOWHERE when CONFIG_ENV_IS_NOWHERE
is enabled
Signed-off-by: Udit Agarwal <udit.agarwal@nxp.com>
---
Changes in V2:
Corrects commit message.
Removes goto label.
arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
index 34167cdd50..5b945f5959 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
@@ -795,12 +795,8 @@ 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)
- goto done;
+#ifdef CONFIG_ENV_IS_NOWHERE
+ return env_loc;
#endif
switch (src) {
@@ -830,9 +826,6 @@ enum env_location env_get_location(enum env_operation op, int prio)
break;
}
-#ifdef CONFIG_CHAIN_OF_TRUST
-done:
-#endif
return env_loc;
}
#endif /* CONFIG_TFABOOT */
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH v2 1/1] Set environment location to ENVL_NOWHERE with CONFIG_ENV_IS_NOWHERE.
2019-03-07 9:24 [U-Boot] [PATCH v2 1/1] Set environment location to ENVL_NOWHERE with CONFIG_ENV_IS_NOWHERE Udit Agarwal
@ 2019-03-22 11:01 ` Prabhakar Kushwaha
2019-04-22 13:15 ` Udit Agarwal
0 siblings, 1 reply; 3+ messages in thread
From: Prabhakar Kushwaha @ 2019-03-22 11:01 UTC (permalink / raw)
To: u-boot
> -----Original Message-----
> From: Udit Agarwal
> Sent: Thursday, March 7, 2019 2:55 PM
> To: u-boot at lists.denx.de
> Cc: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>; Ruchika Gupta
> <ruchika.gupta@nxp.com>; Jaiprakash Singh <jaiprakash.singh@nxp.com>;
> Arun Pathak <arun.pathak@nxp.com>; Udit Agarwal
> <udit.agarwal@nxp.com>
> Subject: [PATCH v2 1/1] Set environment location to ENVL_NOWHERE with
> CONFIG_ENV_IS_NOWHERE.
>
> ENVL_NOWHERE is dependent on CONFIG_ENV_IS_NOWHERE and not on
> CONFIG_CHAIN_OF_TRUST so return ENVL_NOWHERE when
> CONFIG_ENV_IS_NOWHERE is enabled
>
> Signed-off-by: Udit Agarwal <udit.agarwal@nxp.com>
> ---
S /ENVL /ENV
--pk
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH v2 1/1] Set environment location to ENVL_NOWHERE with CONFIG_ENV_IS_NOWHERE.
2019-03-22 11:01 ` Prabhakar Kushwaha
@ 2019-04-22 13:15 ` Udit Agarwal
0 siblings, 0 replies; 3+ messages in thread
From: Udit Agarwal @ 2019-04-22 13:15 UTC (permalink / raw)
To: u-boot
Hi,
arch/arm/cpu/armv8/fsl-layerscape/cpu.c uses ENVL_NOWHERE to initialize the env_loc enum variable.
Shall the ENVL_NOWHERE be replaced with ENV_NOWHERE in commit message.
Regards
Udit Agarwal
> -----Original Message-----
> From: Prabhakar Kushwaha
> Sent: Friday, March 22, 2019 4:32 PM
> To: Udit Agarwal <udit.agarwal@nxp.com>; u-boot at lists.denx.de
> Cc: Ruchika Gupta <ruchika.gupta@nxp.com>; Jaiprakash Singh
> <jaiprakash.singh@nxp.com>; Arun Pathak <arun.pathak@nxp.com>
> Subject: RE: [PATCH v2 1/1] Set environment location to ENVL_NOWHERE with
> CONFIG_ENV_IS_NOWHERE.
>
>
> > -----Original Message-----
> > From: Udit Agarwal
> > Sent: Thursday, March 7, 2019 2:55 PM
> > To: u-boot at lists.denx.de
> > Cc: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>; Ruchika Gupta
> > <ruchika.gupta@nxp.com>; Jaiprakash Singh <jaiprakash.singh@nxp.com>;
> > Arun Pathak <arun.pathak@nxp.com>; Udit Agarwal <udit.agarwal@nxp.com>
> > Subject: [PATCH v2 1/1] Set environment location to ENVL_NOWHERE with
> > CONFIG_ENV_IS_NOWHERE.
> >
> > ENVL_NOWHERE is dependent on CONFIG_ENV_IS_NOWHERE and not on
> > CONFIG_CHAIN_OF_TRUST so return ENVL_NOWHERE when
> > CONFIG_ENV_IS_NOWHERE is enabled
> >
> > Signed-off-by: Udit Agarwal <udit.agarwal@nxp.com>
> > ---
>
> S /ENVL /ENV
>
> --pk
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-04-22 13:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-07 9:24 [U-Boot] [PATCH v2 1/1] Set environment location to ENVL_NOWHERE with CONFIG_ENV_IS_NOWHERE Udit Agarwal
2019-03-22 11:01 ` Prabhakar Kushwaha
2019-04-22 13:15 ` Udit Agarwal
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.