blob: 200b66f850473530d27ecb48b9a8b7f8dd71b2ff [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Chris Zankel1387dab2016-08-10 18:36:44 +03002#
3# (C) Copyright 2007 - 2013 Tensilica, Inc.
4# (C) Copyright 2014 - 2016 Cadence Design Systems Inc.
Chris Zankel1387dab2016-08-10 18:36:44 +03005
Chris Zankel1387dab2016-08-10 18:36:44 +03006PLATFORM_CPPFLAGS += -D__XTENSA__ -mlongcalls -mforce-no-pic \
7 -ffunction-sections -fdata-sections
8
9LDFLAGS_FINAL += --gc-sections
Jiaxun Yang14e5a452024-06-18 14:56:04 +010010
11ifeq ($(CONFIG_SYS_BIG_ENDIAN),y)
12PLATFORM_CPPFLAGS += -B xtensa -O elf32-xtensa-be
13else
14PLATFORM_ELFFLAGS += -B xtensa -O elf32-xtensa-le
15endif