2 # Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
4 # SPDX-License-Identifier: GPL-2.0+
7 ifndef CONFIG_CPU_BIG_ENDIAN
8 CONFIG_SYS_LITTLE_ENDIAN = 1
10 CONFIG_SYS_BIG_ENDIAN = 1
13 ifdef CONFIG_SYS_LITTLE_ENDIAN
14 ARC_CROSS_COMPILE := arc-linux-
15 PLATFORM_LDFLAGS += -EL
16 PLATFORM_CPPFLAGS += -mlittle-endian
19 ifdef CONFIG_SYS_BIG_ENDIAN
20 ARC_CROSS_COMPILE := arceb-linux-
21 PLATFORM_LDFLAGS += -EB
22 PLATFORM_CPPFLAGS += -mbig-endian
25 ifeq ($(CROSS_COMPILE),)
26 CROSS_COMPILE := $(ARC_CROSS_COMPILE)
29 ifdef CONFIG_ARC_MMU_VER
33 ifdef CONFIG_CPU_ARC750D
34 PLATFORM_CPPFLAGS += -marc700
37 ifdef CONFIG_CPU_ARC770D
38 PLATFORM_CPPFLAGS += -marc700 -mlock -mswape
41 ifdef CONFIG_CPU_ARCEM6
42 PLATFORM_CPPFLAGS += -marcem
45 ifdef CONFIG_CPU_ARCHS34
46 PLATFORM_CPPFLAGS += -marchs
49 ifdef CONFIG_CPU_ARCHS38
50 PLATFORM_CPPFLAGS += -marchs
53 PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -gdwarf-2
55 # Needed for relocation
58 # Load address for standalone apps
59 CONFIG_STANDALONE_LOAD_ADDR ?= 0x82000000