blob: 4f2d31feb3e02ab772e70cfcd3c55682a84ddffb [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
Alexey Brodkincbd76c32015-02-03 13:58:14 +03007ifndef CONFIG_CPU_BIG_ENDIAN
Alexey Brodkin3a59d912014-02-04 12:56:14 +04008CONFIG_SYS_LITTLE_ENDIAN = 1
Alexey Brodkincbd76c32015-02-03 13:58:14 +03009else
10CONFIG_SYS_BIG_ENDIAN = 1
Alexey Brodkin3a59d912014-02-04 12:56:14 +040011endif
12
13ifdef CONFIG_SYS_LITTLE_ENDIAN
Masahiro Yamadaf0ac9e02014-02-28 14:33:30 +090014ARC_CROSS_COMPILE := arc-buildroot-linux-uclibc-
Alexey Brodkin3a59d912014-02-04 12:56:14 +040015endif
16
17ifdef CONFIG_SYS_BIG_ENDIAN
Masahiro Yamadaf0ac9e02014-02-28 14:33:30 +090018ARC_CROSS_COMPILE := arceb-buildroot-linux-uclibc-
Alexey Brodkin3a59d912014-02-04 12:56:14 +040019PLATFORM_LDFLAGS += -EB
20endif
21
Masahiro Yamadaf0ac9e02014-02-28 14:33:30 +090022ifeq ($(CROSS_COMPILE),)
23CROSS_COMPILE := $(ARC_CROSS_COMPILE)
24endif
25
Alexey Brodkin5e4931f2014-12-24 17:00:29 +030026ifdef CONFIG_ARC_MMU_VER
27CONFIG_MMU = 1
28endif
29
Alexey Brodkinf431e262015-02-03 13:58:11 +030030ifdef CONFIG_CPU_ARC770D
31PLATFORM_CPPFLAGS += -mlock -mswape
32endif
33
Masahiro Yamada4869aee2014-07-30 14:08:23 +090034PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -gdwarf-2
Alexey Brodkin3a59d912014-02-04 12:56:14 +040035
Alexey Brodkin3a59d912014-02-04 12:56:14 +040036# Needed for relocation
37LDFLAGS_FINAL += -pie
38
39# Load address for standalone apps
40CONFIG_STANDALONE_LOAD_ADDR ?= 0x82000000
41
42# Support generic board on ARC
43__HAVE_ARCH_GENERIC_BOARD := y