Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Chris Zankel | 1387dab | 2016-08-10 18:36:44 +0300 | [diff] [blame] | 2 | # |
| 3 | # (C) Copyright 2007 - 2013 Tensilica, Inc. |
| 4 | # (C) Copyright 2014 - 2016 Cadence Design Systems Inc. |
Chris Zankel | 1387dab | 2016-08-10 18:36:44 +0300 | [diff] [blame] | 5 | |
Chris Zankel | 1387dab | 2016-08-10 18:36:44 +0300 | [diff] [blame] | 6 | PLATFORM_CPPFLAGS += -D__XTENSA__ -mlongcalls -mforce-no-pic \ |
| 7 | -ffunction-sections -fdata-sections |
| 8 | |
| 9 | LDFLAGS_FINAL += --gc-sections |
Jiaxun Yang | 14e5a45 | 2024-06-18 14:56:04 +0100 | [diff] [blame^] | 10 | |
| 11 | ifeq ($(CONFIG_SYS_BIG_ENDIAN),y) |
| 12 | PLATFORM_CPPFLAGS += -B xtensa -O elf32-xtensa-be |
| 13 | else |
| 14 | PLATFORM_ELFFLAGS += -B xtensa -O elf32-xtensa-le |
| 15 | endif |