blob: ec37107862903c83ad944cb92ac5bc021ea8f57d [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
6CROSS_COMPILE ?= xtensa-linux-
7PLATFORM_CPPFLAGS += -D__XTENSA__ -mlongcalls -mforce-no-pic \
8 -ffunction-sections -fdata-sections
9
10LDFLAGS_FINAL += --gc-sections