blob: 200b66f850473530d27ecb48b9a8b7f8dd71b2ff [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Chris Zankelc978b522016-08-10 18:36:44 +03002#
3# (C) Copyright 2007 - 2013 Tensilica, Inc.
4# (C) Copyright 2014 - 2016 Cadence Design Systems Inc.
Chris Zankelc978b522016-08-10 18:36:44 +03005
Chris Zankelc978b522016-08-10 18:36:44 +03006PLATFORM_CPPFLAGS += -D__XTENSA__ -mlongcalls -mforce-no-pic \
7 -ffunction-sections -fdata-sections
8
9LDFLAGS_FINAL += --gc-sections
Jiaxun Yang76a0b9f2024-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