Merge tag 'u-boot-amlogic-20190423' of git://git.denx.de/u-boot-amlogic
[platform/kernel/u-boot.git] / arch / arc / config.mk
1 # SPDX-License-Identifier: GPL-2.0+
2 #
3 # Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
4
5 ifndef CONFIG_CPU_BIG_ENDIAN
6 CONFIG_SYS_LITTLE_ENDIAN = 1
7 else
8 CONFIG_SYS_BIG_ENDIAN = 1
9 endif
10
11 ifdef CONFIG_SYS_LITTLE_ENDIAN
12 PLATFORM_LDFLAGS += -EL
13 PLATFORM_CPPFLAGS += -mlittle-endian
14 endif
15
16 ifdef CONFIG_SYS_BIG_ENDIAN
17 PLATFORM_LDFLAGS += -EB
18 PLATFORM_CPPFLAGS += -mbig-endian
19 endif
20
21 ifdef CONFIG_ARC_MMU_VER
22 CONFIG_MMU = 1
23 endif
24
25 ifdef CONFIG_CPU_ARC750D
26 PLATFORM_CPPFLAGS += -mcpu=arc700
27 endif
28
29 ifdef CONFIG_CPU_ARC770D
30 PLATFORM_CPPFLAGS += -mcpu=arc700 -mlock -mswape
31 endif
32
33 ifdef CONFIG_CPU_ARCEM6
34 PLATFORM_CPPFLAGS += -mcpu=arcem
35 endif
36
37 ifdef CONFIG_CPU_ARCHS34
38 PLATFORM_CPPFLAGS += -mcpu=archs
39 endif
40
41 ifdef CONFIG_CPU_ARCHS38
42 PLATFORM_CPPFLAGS += -mcpu=archs
43 endif
44
45 PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -gdwarf-2 -mno-sdata
46 PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections -fno-common
47
48 # Needed for relocation
49 LDFLAGS_FINAL += -pie --gc-sections
50
51 # Load address for standalone apps
52 CONFIG_STANDALONE_LOAD_ADDR ?= 0x82000000