]> git.ipfire.org Git - thirdparty/u-boot.git/blame - arch/arc/config.mk
x86: zboot: Create a separate ZBOOT option for zboot logic
[thirdparty/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
2f16ac9d 5ifdef CONFIG_SYS_LITTLE_ENDIAN
587e4a42 6KBUILD_LDFLAGS += -EL
a67ef280 7PLATFORM_CPPFLAGS += -mlittle-endian
2f16ac9d
AB
8endif
9
10ifdef CONFIG_SYS_BIG_ENDIAN
587e4a42 11KBUILD_LDFLAGS += -EB
a67ef280 12PLATFORM_CPPFLAGS += -mbig-endian
2f16ac9d
AB
13endif
14
d53b128d 15PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -gdwarf-2 -mno-sdata
6e63314f 16PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections -fno-common
2f16ac9d 17
2f16ac9d 18# Needed for relocation
fac47904 19LDFLAGS_FINAL += -pie --gc-sections