]> Git Repo - J-u-boot.git/blame - arch/arc/config.mk
SPDX: Convert all of our single license tags to Linux Kernel style
[J-u-boot.git] / arch / arc / config.mk
CommitLineData
83d290c5 1# SPDX-License-Identifier: GPL-2.0+
2f16ac9d
AB
2#
3# Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
2f16ac9d 4
1f9ad445 5ifndef CONFIG_CPU_BIG_ENDIAN
2f16ac9d 6CONFIG_SYS_LITTLE_ENDIAN = 1
1f9ad445
AB
7else
8CONFIG_SYS_BIG_ENDIAN = 1
2f16ac9d
AB
9endif
10
11ifdef CONFIG_SYS_LITTLE_ENDIAN
574bbf4f 12ARC_CROSS_COMPILE := arc-linux-
a67ef280
AB
13PLATFORM_LDFLAGS += -EL
14PLATFORM_CPPFLAGS += -mlittle-endian
2f16ac9d
AB
15endif
16
17ifdef CONFIG_SYS_BIG_ENDIAN
574bbf4f 18ARC_CROSS_COMPILE := arceb-linux-
2f16ac9d 19PLATFORM_LDFLAGS += -EB
a67ef280 20PLATFORM_CPPFLAGS += -mbig-endian
2f16ac9d
AB
21endif
22
9b6e2c36
MY
23ifeq ($(CROSS_COMPILE),)
24CROSS_COMPILE := $(ARC_CROSS_COMPILE)
25endif
26
dcb431e7
AB
27ifdef CONFIG_ARC_MMU_VER
28CONFIG_MMU = 1
29endif
30
51f4999b 31ifdef CONFIG_CPU_ARC750D
7c8d8160 32PLATFORM_CPPFLAGS += -mcpu=arc700
51f4999b
AB
33endif
34
812980bd 35ifdef CONFIG_CPU_ARC770D
7c8d8160 36PLATFORM_CPPFLAGS += -mcpu=arc700 -mlock -mswape
812980bd
AB
37endif
38
f13606b7 39ifdef CONFIG_CPU_ARCEM6
7c8d8160 40PLATFORM_CPPFLAGS += -mcpu=arcem
f13606b7
AB
41endif
42
43ifdef CONFIG_CPU_ARCHS34
7a54f517 44PLATFORM_CPPFLAGS += -mcpu=archs
f13606b7
AB
45endif
46
47ifdef CONFIG_CPU_ARCHS38
7a54f517 48PLATFORM_CPPFLAGS += -mcpu=archs
f13606b7
AB
49endif
50
d53b128d 51PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -gdwarf-2 -mno-sdata
fac47904 52PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
2f16ac9d 53
2f16ac9d 54# Needed for relocation
fac47904 55LDFLAGS_FINAL += -pie --gc-sections
2f16ac9d
AB
56
57# Load address for standalone apps
58CONFIG_STANDALONE_LOAD_ADDR ?= 0x82000000
This page took 0.256715 seconds and 4 git commands to generate.