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 <s...@chromium.org> --- 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 -- 2.43.0