On Mon, Feb 03, 2025 at 10:42:19AM -0700, Simon Glass wrote:

> The app needs a special linker script, so select that for the app.
> 
> Signed-off-by: Simon Glass <s...@chromium.org>
> ---
> 
>  arch/arm/cpu/armv8/config.mk | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/arch/arm/cpu/armv8/config.mk b/arch/arm/cpu/armv8/config.mk
> index 1ee31680106..d2d1a8d2bc2 100644
> --- a/arch/arm/cpu/armv8/config.mk
> +++ b/arch/arm/cpu/armv8/config.mk
> @@ -21,3 +21,7 @@ LDFLAGS_EFI_PAYLOAD := -Bsymbolic -Bsymbolic-functions 
> -shared --no-undefined \
>  
>  CPPFLAGS_REMOVE_crt0-efi-aarch64.o += $(CFLAGS_NON_EFI)
>  CPPFLAGS_crt0-efi-aarch64.o += $(CFLAGS_EFI)
> +
> +ifeq ($(CONFIG_EFI_APP),y)
> +LDSCRIPT := $(LDSCRIPT_EFI)
> +endif

This should be tidied up to use SYS_CUSTOM_LDSCRIPT / SYS_LDSCRIPT and
just live in the defconfig or board/efi/Kconfig under
BOARD_SPECIFIC_OPTIONS if that's objectionable.

-- 
Tom

Attachment: signature.asc
Description: PGP signature

Reply via email to