2004-10-10 21:27:30 +00:00
|
|
|
#
|
|
|
|
# (C) Copyright 2004
|
|
|
|
# Psyent Corporation <www.psyent.com>
|
|
|
|
# Scott McNutt <smcnutt@psyent.com>
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2004-10-10 21:27:30 +00:00
|
|
|
#
|
|
|
|
|
2009-06-15 03:33:14 +00:00
|
|
|
CROSS_COMPILE ?= nios2-elf-
|
|
|
|
|
2011-04-17 02:52:46 +00:00
|
|
|
CONFIG_STANDALONE_LOAD_ADDR ?= 0x02000000
|
2009-09-04 03:12:47 +00:00
|
|
|
|
2004-10-10 21:27:30 +00:00
|
|
|
PLATFORM_CPPFLAGS += -DCONFIG_NIOS2 -D__NIOS2__
|
2010-05-21 03:08:03 +00:00
|
|
|
PLATFORM_CPPFLAGS += -G0
|
2010-04-16 20:12:39 +00:00
|
|
|
|
2011-02-22 21:38:05 +00:00
|
|
|
LDFLAGS_FINAL += --gc-sections
|
2010-05-28 04:08:10 +00:00
|
|
|
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
|