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