blob: dd180ef1874f57a5271e705418322604d178670c [file] [log] [blame]
Alexey Brodkin3a59d912014-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 Yamadaf0ac9e02014-02-28 14:33:30 +090012ARC_CROSS_COMPILE := arc-buildroot-linux-uclibc-
Alexey Brodkin3a59d912014-02-04 12:56:14 +040013endif
14
15ifdef CONFIG_SYS_BIG_ENDIAN
Masahiro Yamadaf0ac9e02014-02-28 14:33:30 +090016ARC_CROSS_COMPILE := arceb-buildroot-linux-uclibc-
Alexey Brodkin3a59d912014-02-04 12:56:14 +040017PLATFORM_LDFLAGS += -EB
18endif
19
Masahiro Yamadaf0ac9e02014-02-28 14:33:30 +090020ifeq ($(CROSS_COMPILE),)
21CROSS_COMPILE := $(ARC_CROSS_COMPILE)
22endif
23
Alexey Brodkin5e4931f2014-12-24 17:00:29 +030024ifdef CONFIG_ARC_MMU_VER
25CONFIG_MMU = 1
26endif
27
Alexey Brodkinf431e262015-02-03 13:58:11 +030028ifdef CONFIG_CPU_ARC770D
29PLATFORM_CPPFLAGS += -mlock -mswape
30endif
31
Masahiro Yamada4869aee2014-07-30 14:08:23 +090032PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -gdwarf-2
Alexey Brodkin3a59d912014-02-04 12:56:14 +040033
Alexey Brodkin3a59d912014-02-04 12:56:14 +040034# Needed for relocation
35LDFLAGS_FINAL += -pie
36
37# Load address for standalone apps
38CONFIG_STANDALONE_LOAD_ADDR ?= 0x82000000
39
40# Support generic board on ARC
41__HAVE_ARCH_GENERIC_BOARD := y