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