On Sun, May 19, 2024 at 1:53 PM Jiaxun Yang <jiaxun.y...@flygoat.com> wrote: > > u-boot.elf target requiures it to work.
Typo. > Signed-off-by: Jiaxun Yang <jiaxun.y...@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