kbuild: fix CROSS_COMPILE settings in config.mk
[karo-tx-uboot.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_SYS_BIG_ENDIAN
8 CONFIG_SYS_LITTLE_ENDIAN = 1
9 endif
10
11 ifdef CONFIG_SYS_LITTLE_ENDIAN
12 ARC_CROSS_COMPILE := arc-buildroot-linux-uclibc-
13 endif
14
15 ifdef CONFIG_SYS_BIG_ENDIAN
16 ARC_CROSS_COMPILE := arceb-buildroot-linux-uclibc-
17 PLATFORM_LDFLAGS += -EB
18 endif
19
20 ifeq ($(CROSS_COMPILE),)
21 CROSS_COMPILE := $(ARC_CROSS_COMPILE)
22 endif
23
24 PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -DCONFIG_ARC -gdwarf-2
25
26 LDSCRIPT := $(SRCTREE)/$(CPUDIR)/u-boot.lds
27
28 # Needed for relocation
29 LDFLAGS_FINAL += -pie
30
31 # Load address for standalone apps
32 CONFIG_STANDALONE_LOAD_ADDR ?= 0x82000000
33
34 # Support generic board on ARC
35 __HAVE_ARCH_GENERIC_BOARD := y