mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-17 10:24:49 +00:00
xtensa: Define PLATFORM_ELFFLAGS
u-boot.elf target requires it to work. Tested-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
This commit is contained in:
parent
8dd193bc16
commit
76a0b9f5b4
1 changed files with 6 additions and 0 deletions
|
@ -7,3 +7,9 @@ PLATFORM_CPPFLAGS += -D__XTENSA__ -mlongcalls -mforce-no-pic \
|
|||
-ffunction-sections -fdata-sections
|
||||
|
||||
LDFLAGS_FINAL += --gc-sections
|
||||
|
||||
ifeq ($(CONFIG_SYS_BIG_ENDIAN),y)
|
||||
PLATFORM_CPPFLAGS += -B xtensa -O elf32-xtensa-be
|
||||
else
|
||||
PLATFORM_ELFFLAGS += -B xtensa -O elf32-xtensa-le
|
||||
endif
|
||||
|
|
Loading…
Add table
Reference in a new issue