blob: 9b7c56dc8564f76972a85d2726d66461ad0c0641 [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
Masahiro Yamada9b6e2c32014-02-28 14:33:30 +09009ifeq ($(CROSS_COMPILE),)
10CROSS_COMPILE := nios2-elf-
11endif
Mike Frysinger1ea6bcd2009-06-14 23:33:14 -040012
Thomas Choue09e0832011-04-17 10:52:46 +080013CONFIG_STANDALONE_LOAD_ADDR ?= 0x02000000
Mike Frysinger262ae0a2009-09-03 23:12:47 -040014
Masahiro Yamada90f984e2014-07-30 14:08:23 +090015PLATFORM_CPPFLAGS += -D__NIOS2__
Thomas Chou0df01fd32010-05-21 11:08:03 +080016PLATFORM_CPPFLAGS += -G0
Scott McNutt254ab7b2010-04-16 16:12:39 -040017
Haiying Wang6dc1eceb2011-02-22 16:38:05 -050018LDFLAGS_FINAL += --gc-sections
Thomas Choucb2da502010-05-28 12:08:10 +080019PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
Thomas Chou5ff10aa2014-08-22 11:36:47 +080020
21__HAVE_ARCH_GENERIC_BOARD := y