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 12PLATFORM_LDFLAGS += -EL 13PLATFORM_CPPFLAGS += -mlittle-endian 14endif 15 16ifdef CONFIG_SYS_BIG_ENDIAN 17PLATFORM_LDFLAGS += -EB 18PLATFORM_CPPFLAGS += -mbig-endian 19endif 20 21ifdef CONFIG_ARC_MMU_VER 22CONFIG_MMU = 1 23endif 24 25ifdef CONFIG_CPU_ARC750D 26PLATFORM_CPPFLAGS += -mcpu=arc700 27endif 28 29ifdef CONFIG_CPU_ARC770D 30PLATFORM_CPPFLAGS += -mcpu=arc700 -mlock -mswape 31endif 32 33ifdef CONFIG_CPU_ARCEM6 34PLATFORM_CPPFLAGS += -mcpu=arcem 35endif 36 37ifdef CONFIG_CPU_ARCHS34 38PLATFORM_CPPFLAGS += -mcpu=archs 39endif 40 41ifdef CONFIG_CPU_ARCHS38 42PLATFORM_CPPFLAGS += -mcpu=archs 43endif 44 45PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -gdwarf-2 -mno-sdata 46PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections 47 48# Needed for relocation 49LDFLAGS_FINAL += -pie --gc-sections 50 51# Load address for standalone apps 52CONFIG_STANDALONE_LOAD_ADDR ?= 0x82000000 53