summaryrefslogtreecommitdiff
path: root/arch/xtensa/config.mk
blob: 200b66f850473530d27ecb48b9a8b7f8dd71b2ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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