On Mon, Feb 03, 2025 at 10:42:18AM -0700, Simon Glass wrote: > Adjust the conditions to support the EFI app when running on ARM. > > Signed-off-by: Simon Glass <s...@chromium.org> > --- > > common/board_f.c | 4 ++-- > common/board_r.c | 4 +++- > 2 files changed, 5 insertions(+), 3 deletions(-) > > diff --git a/common/board_f.c b/common/board_f.c > index 8baaa2341a3..6426a17edc6 100644 > --- a/common/board_f.c > +++ b/common/board_f.c > @@ -263,6 +263,8 @@ static int setup_mon_len(void) > { > #if defined(CONFIG_ARCH_NEXELL) > gd->mon_len = (ulong)__bss_end - (ulong)__image_copy_start; > +#elif defined(CONFIG_EFI_APP) > + gd->mon_len = (ulong)_end - (ulong)image_base; > #elif defined(__ARM__) || defined(__MICROBLAZE__) > gd->mon_len = (ulong)__bss_end - (ulong)_start; > #elif defined(CONFIG_SANDBOX) && !defined(__riscv)
We should make EFI_APP the first option in this case, for clarity. -- Tom
signature.asc
Description: PGP signature