blob: c63d170eaee658cd0a6ade522e6e5a7ce7117844 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
wdenk5c952cf2004-10-10 21:27:30 +00002#
3# (C) Copyright 2004
4# Psyent Corporation <www.psyent.com>
5# Scott McNutt <smcnutt@psyent.com>
wdenk5c952cf2004-10-10 21:27:30 +00006
Masahiro Yamada9b6e2c32014-02-28 14:33:30 +09007ifeq ($(CROSS_COMPILE),)
8CROSS_COMPILE := nios2-elf-
9endif
Mike Frysinger1ea6bcd2009-06-14 23:33:14 -040010
Thomas Choue09e0832011-04-17 10:52:46 +080011CONFIG_STANDALONE_LOAD_ADDR ?= 0x02000000
Mike Frysinger262ae0a2009-09-03 23:12:47 -040012
Masahiro Yamada90f984e2014-07-30 14:08:23 +090013PLATFORM_CPPFLAGS += -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