mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-10 23:26:13 +02:00
Make sure the correct PLATFORM_...FLAGS are assigned in each case, consistently. Assign PLATFORM_ELFFLAGS for both LE and BE case. The previous PLATFORM_CPPFLAGS makes no sense for these particular parameters, which are passed to objcopy. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
16 lines
423 B
Makefile
16 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_ELFFLAGS += -B xtensa -O elf32-xtensa-be
|
|
else
|
|
PLATFORM_ELFFLAGS += -B xtensa -O elf32-xtensa-le
|
|
endif
|