[PATCH 04/10] xtensa: Define PLATFORM_ELFFLAGS

Max Filippov jcmvbkbc at gmail.com
Mon May 20 17:18:53 CEST 2024


On Sun, May 19, 2024 at 1:53 PM Jiaxun Yang <jiaxun.yang at flygoat.com> wrote:
>
> u-boot.elf target requiures it to work.

Typo.

> Signed-off-by: Jiaxun Yang <jiaxun.yang at flygoat.com>
> ---
>  arch/xtensa/config.mk | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/arch/xtensa/config.mk b/arch/xtensa/config.mk
> index b0809999e403..3ec936272f25 100644
> --- a/arch/xtensa/config.mk
> +++ b/arch/xtensa/config.mk
> @@ -7,3 +7,6 @@ PLATFORM_CPPFLAGS += -D__XTENSA__ -mlongcalls -mforce-no-pic \
>                      -ffunction-sections -fdata-sections
>
>  LDFLAGS_FINAL += --gc-sections
> +
> +PLATFORM_ELFFLAGS += -B xtensa -O elf32-xtensa-le
> +

This fixes endianness as little for the whole architecture, but xtensa cores
may be either little or big endian.

-- 
Thanks.
-- Max


More information about the U-Boot mailing list