2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2014-02-04 08:56:14 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
|
|
|
|
|
|
|
|
ifdef CONFIG_SYS_LITTLE_ENDIAN
|
2020-03-27 15:46:27 +00:00
|
|
|
KBUILD_LDFLAGS += -EL
|
2015-02-03 10:58:20 +00:00
|
|
|
PLATFORM_CPPFLAGS += -mlittle-endian
|
2014-02-04 08:56:14 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_SYS_BIG_ENDIAN
|
2020-03-27 15:46:27 +00:00
|
|
|
KBUILD_LDFLAGS += -EB
|
2015-02-03 10:58:20 +00:00
|
|
|
PLATFORM_CPPFLAGS += -mbig-endian
|
2014-02-04 08:56:14 +00:00
|
|
|
endif
|
|
|
|
|
2014-12-24 14:00:29 +00:00
|
|
|
ifdef CONFIG_ARC_MMU_VER
|
|
|
|
CONFIG_MMU = 1
|
|
|
|
endif
|
|
|
|
|
2018-02-15 12:34:58 +00:00
|
|
|
PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -gdwarf-2 -mno-sdata
|
2018-10-11 20:12:05 +00:00
|
|
|
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections -fno-common
|
2014-02-04 08:56:14 +00:00
|
|
|
|
|
|
|
# Needed for relocation
|
2018-01-24 21:25:12 +00:00
|
|
|
LDFLAGS_FINAL += -pie --gc-sections
|
2014-02-04 08:56:14 +00:00
|
|
|
|
|
|
|
# Load address for standalone apps
|
|
|
|
CONFIG_STANDALONE_LOAD_ADDR ?= 0x82000000
|