On Sat, Feb 08, 2025 at 07:01:18PM -0700, Simon Glass wrote:

> The switch_to_non_secure_mode() function cannot be used since EFI is in
> charge of managing exception-levels.
> 
> Build just the exceptions.S file.
> 
> Modify the existing SPL rule to cater to the EFI app too.
> 
> Signed-off-by: Simon Glass <[email protected]>
> ---
> 
> Changes in v3:
> - Rewrite the commit message
> 
>  arch/arm/cpu/armv8/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm/cpu/armv8/Makefile b/arch/arm/cpu/armv8/Makefile
> index 2e71ff2dc97..7bd6cf21b19 100644
> --- a/arch/arm/cpu/armv8/Makefile
> +++ b/arch/arm/cpu/armv8/Makefile
> @@ -13,7 +13,7 @@ ifndef CONFIG_$(XPL_)SYS_DCACHE_OFF
>  obj-y        += cache_v8.o
>  obj-y        += cache.o
>  endif
> -ifdef CONFIG_XPL_BUILD
> +ifneq ($(CONFIG_XPL_BUILD)$(CONFIG_EFI_APP),)
>  obj-$(CONFIG_ARMV8_SPL_EXCEPTION_VECTORS) += exceptions.o
>  else
>  obj-y        += exceptions.o

Yes, this is still confusing and needs to be tidied up, please just file
an issue and I'll pick it up.

-- 
Tom

Attachment: signature.asc
Description: PGP signature

Reply via email to