blob: 7d546eff691cf39ab3aa271a56a4cddec006c33b [file] [log] [blame]
wdenk5c952cf2004-10-10 21:27:30 +00001#
2# (C) Copyright 2004
3# Psyent Corporation <www.psyent.com>
4# Scott McNutt <smcnutt@psyent.com>
5#
Wolfgang Denk1a459662013-07-08 09:37:19 +02006# SPDX-License-Identifier: GPL-2.0+
wdenk5c952cf2004-10-10 21:27:30 +00007#
8
Mike Frysinger1ea6bcd2009-06-14 23:33:14 -04009CROSS_COMPILE ?= nios2-elf-
10
Thomas Choue09e0832011-04-17 10:52:46 +080011CONFIG_STANDALONE_LOAD_ADDR ?= 0x02000000
Mike Frysinger262ae0a2009-09-03 23:12:47 -040012
wdenk5c952cf2004-10-10 21:27:30 +000013PLATFORM_CPPFLAGS += -DCONFIG_NIOS2 -D__NIOS2__
Thomas Chou0df01fd2010-05-21 11:08:03 +080014PLATFORM_CPPFLAGS += -G0
Scott McNutt254ab7b2010-04-16 16:12:39 -040015
Haiying Wang6dc1eceb2011-02-22 16:38:05 -050016LDFLAGS_FINAL += --gc-sections
Thomas Choucb2da502010-05-28 12:08:10 +080017PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections