2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2011-10-11 22:33:19 +00:00
|
|
|
#
|
|
|
|
# (C) Copyright 2000-2002
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
|
|
|
# (C) Copyright 2011
|
|
|
|
# Shawn Lin, Andes Technology Corporation <nobuhiro@andestech.com>
|
|
|
|
# Macpaul Lin, Andes Technology Corporation <macpaul@andestech.com>
|
|
|
|
#
|
|
|
|
|
2014-02-28 05:33:30 +00:00
|
|
|
ifeq ($(CROSS_COMPILE),)
|
|
|
|
CROSS_COMPILE := nds32le-linux-
|
|
|
|
endif
|
2011-10-11 22:33:19 +00:00
|
|
|
|
2014-03-05 07:59:39 +00:00
|
|
|
CONFIG_STANDALONE_LOAD_ADDR = 0x300000 \
|
|
|
|
-T $(srctree)/examples/standalone/nds32.lds
|
2011-10-11 22:33:19 +00:00
|
|
|
|
|
|
|
PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -mrelax
|
|
|
|
PLATFORM_RELFLAGS += -gdwarf-2
|
2014-07-30 05:08:23 +00:00
|
|
|
PLATFORM_CPPFLAGS += -D__nds32__ -G0 -ffixed-10 -fpie
|
2011-10-11 22:33:19 +00:00
|
|
|
|
2016-04-14 06:32:27 +00:00
|
|
|
LDFLAGS_u-boot = --gc-sections --relax -pie
|