blob: d9f5d9d787d037568d968b90b8477fa21a63a152 [file] [log] [blame]
Alexey Brodkin2f16ac92014-02-04 12:56:14 +04001#
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
Masahiro Yamada9b6e2c32014-02-28 14:33:30 +090012ARC_CROSS_COMPILE := arc-buildroot-linux-uclibc-
Alexey Brodkin2f16ac92014-02-04 12:56:14 +040013endif
14
15ifdef CONFIG_SYS_BIG_ENDIAN
Masahiro Yamada9b6e2c32014-02-28 14:33:30 +090016ARC_CROSS_COMPILE := arceb-buildroot-linux-uclibc-
Alexey Brodkin2f16ac92014-02-04 12:56:14 +040017PLATFORM_LDFLAGS += -EB
18endif
19
Masahiro Yamada9b6e2c32014-02-28 14:33:30 +090020ifeq ($(CROSS_COMPILE),)
21CROSS_COMPILE := $(ARC_CROSS_COMPILE)
22endif
23
Alexey Brodkin2f16ac92014-02-04 12:56:14 +040024PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -DCONFIG_ARC -gdwarf-2
25
26LDSCRIPT := $(SRCTREE)/$(CPUDIR)/u-boot.lds
27
28# Needed for relocation
29LDFLAGS_FINAL += -pie
30
31# Load address for standalone apps
32CONFIG_STANDALONE_LOAD_ADDR ?= 0x82000000
33
34# Support generic board on ARC
35__HAVE_ARCH_GENERIC_BOARD := y