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