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
|
|
|
#
|
|
|
|
|
2014-02-28 05:33:30 +00:00
|
|
|
ifeq ($(CROSS_COMPILE),)
|
|
|
|
CROSS_COMPILE := nios2-elf-
|
|
|
|
endif
|
2009-06-15 03:33:14 +00:00
|
|
|
|
2011-04-17 02:52:46 +00:00
|
|
|
CONFIG_STANDALONE_LOAD_ADDR ?= 0x02000000
|
2009-09-04 03:12:47 +00:00
|
|
|
|
2014-07-30 05:08:23 +00:00
|
|
|
PLATFORM_CPPFLAGS += -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
|
2014-08-22 03:36:47 +00:00
|
|
|
|
|
|
|
__HAVE_ARCH_GENERIC_BOARD := y
|