1 # SPDX-License-Identifier: GPL-2.0+
3 # Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
5 ifndef CONFIG_CPU_BIG_ENDIAN
6 CONFIG_SYS_LITTLE_ENDIAN = 1
8 CONFIG_SYS_BIG_ENDIAN = 1
11 ifdef CONFIG_SYS_LITTLE_ENDIAN
13 PLATFORM_CPPFLAGS += -mlittle-endian
16 ifdef CONFIG_SYS_BIG_ENDIAN
18 PLATFORM_CPPFLAGS += -mbig-endian
21 ifdef CONFIG_ARC_MMU_VER
25 PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -gdwarf-2 -mno-sdata
26 PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections -fno-common
28 # Needed for relocation
29 LDFLAGS_FINAL += -pie --gc-sections
31 # Load address for standalone apps
32 CONFIG_STANDALONE_LOAD_ADDR ?= 0x82000000