mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-17 02:15:02 +00:00

u-boot.elf target requires it to work. Tested-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
15 lines
423 B
Makefile
15 lines
423 B
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# (C) Copyright 2007 - 2013 Tensilica, Inc.
|
|
# (C) Copyright 2014 - 2016 Cadence Design Systems Inc.
|
|
|
|
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
|