arm/ls102xa: use a array to define pexmscportsr
[platform/kernel/u-boot.git] / arch / arc / config.mk
1 #
2 # Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
3 #
4 # SPDX-License-Identifier:      GPL-2.0+
5 #
6
7 ifndef CONFIG_CPU_BIG_ENDIAN
8 CONFIG_SYS_LITTLE_ENDIAN = 1
9 else
10 CONFIG_SYS_BIG_ENDIAN = 1
11 endif
12
13 ifdef CONFIG_SYS_LITTLE_ENDIAN
14 ARC_CROSS_COMPILE := arc-buildroot-linux-uclibc-
15 PLATFORM_LDFLAGS += -EL
16 PLATFORM_CPPFLAGS += -mlittle-endian
17 endif
18
19 ifdef CONFIG_SYS_BIG_ENDIAN
20 ARC_CROSS_COMPILE := arceb-buildroot-linux-uclibc-
21 PLATFORM_LDFLAGS += -EB
22 PLATFORM_CPPFLAGS += -mbig-endian
23 endif
24
25 ifeq ($(CROSS_COMPILE),)
26 CROSS_COMPILE := $(ARC_CROSS_COMPILE)
27 endif
28
29 ifdef CONFIG_ARC_MMU_VER
30 CONFIG_MMU = 1
31 endif
32
33 ifdef CONFIG_CPU_ARC750D
34 PLATFORM_CPPFLAGS += -marc700
35 endif
36
37 ifdef CONFIG_CPU_ARC770D
38 PLATFORM_CPPFLAGS += -marc700 -mlock -mswape
39 endif
40
41 ifdef CONFIG_CPU_ARCEM6
42 PLATFORM_CPPFLAGS += -marcem
43 endif
44
45 ifdef CONFIG_CPU_ARCHS34
46 PLATFORM_CPPFLAGS += -marchs
47 endif
48
49 ifdef CONFIG_CPU_ARCHS38
50 PLATFORM_CPPFLAGS += -marchs
51 endif
52
53 PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -gdwarf-2
54
55 # Needed for relocation
56 LDFLAGS_FINAL += -pie
57
58 # Load address for standalone apps
59 CONFIG_STANDALONE_LOAD_ADDR ?= 0x82000000
60
61 # Support generic board on ARC
62 __HAVE_ARCH_GENERIC_BOARD := y