1# SPDX-License-Identifier: GPL-2.0+ 2# 3# Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved. 4 5ifndef CONFIG_CPU_BIG_ENDIAN 6CONFIG_SYS_LITTLE_ENDIAN = 1 7else 8CONFIG_SYS_BIG_ENDIAN = 1 9endif 10 11ifdef CONFIG_SYS_LITTLE_ENDIAN 12KBUILD_LDFLAGS += -EL 13PLATFORM_CPPFLAGS += -mlittle-endian 14endif 15 16ifdef CONFIG_SYS_BIG_ENDIAN 17KBUILD_LDFLAGS += -EB 18PLATFORM_CPPFLAGS += -mbig-endian 19endif 20 21ifdef CONFIG_ARC_MMU_VER 22CONFIG_MMU = 1 23endif 24 25PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -gdwarf-2 -mno-sdata 26PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections -fno-common 27 28# Needed for relocation 29LDFLAGS_FINAL += -pie --gc-sections 30 31# Load address for standalone apps 32CONFIG_STANDALONE_LOAD_ADDR ?= 0x82000000 33