1# 2# Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved. 3# 4# SPDX-License-Identifier: GPL-2.0+ 5# 6 7ifndef CONFIG_CPU_BIG_ENDIAN 8CONFIG_SYS_LITTLE_ENDIAN = 1 9else 10CONFIG_SYS_BIG_ENDIAN = 1 11endif 12 13ifdef CONFIG_SYS_LITTLE_ENDIAN 14ARC_CROSS_COMPILE := arc-buildroot-linux-uclibc- 15PLATFORM_LDFLAGS += -EL 16PLATFORM_CPPFLAGS += -mlittle-endian 17endif 18 19ifdef CONFIG_SYS_BIG_ENDIAN 20ARC_CROSS_COMPILE := arceb-buildroot-linux-uclibc- 21PLATFORM_LDFLAGS += -EB 22PLATFORM_CPPFLAGS += -mbig-endian 23endif 24 25ifeq ($(CROSS_COMPILE),) 26CROSS_COMPILE := $(ARC_CROSS_COMPILE) 27endif 28 29ifdef CONFIG_ARC_MMU_VER 30CONFIG_MMU = 1 31endif 32 33ifdef CONFIG_CPU_ARC750D 34PLATFORM_CPPFLAGS += -marc700 35endif 36 37ifdef CONFIG_CPU_ARC770D 38PLATFORM_CPPFLAGS += -marc700 -mlock -mswape 39endif 40 41PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -gdwarf-2 42 43# Needed for relocation 44LDFLAGS_FINAL += -pie 45 46# Load address for standalone apps 47CONFIG_STANDALONE_LOAD_ADDR ?= 0x82000000 48 49# Support generic board on ARC 50__HAVE_ARCH_GENERIC_BOARD := y 51