wdenk | ef3386f | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 1 | # |
2 | # (C) Copyright 2004 | ||||
3 | # Psyent Corporation <www.psyent.com> | ||||
4 | # Scott McNutt <smcnutt@psyent.com> | ||||
5 | # | ||||
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 6 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | ef3386f | 2004-10-10 21:27:30 +0000 | [diff] [blame] | 7 | # |
8 | |||||
Masahiro Yamada | f0ac9e0 | 2014-02-28 14:33:30 +0900 | [diff] [blame] | 9 | ifeq ($(CROSS_COMPILE),) |
10 | CROSS_COMPILE := nios2-elf- | ||||
11 | endif | ||||
Mike Frysinger | 8378ba4 | 2009-06-14 23:33:14 -0400 | [diff] [blame] | 12 | |
Thomas Chou | 41956cb | 2011-04-17 10:52:46 +0800 | [diff] [blame] | 13 | CONFIG_STANDALONE_LOAD_ADDR ?= 0x02000000 |
Mike Frysinger | 5b66044 | 2009-09-03 23:12:47 -0400 | [diff] [blame] | 14 | |
Masahiro Yamada | 4869aee | 2014-07-30 14:08:23 +0900 | [diff] [blame] | 15 | PLATFORM_CPPFLAGS += -D__NIOS2__ |
Thomas Chou | 8fa3858 | 2010-05-21 11:08:03 +0800 | [diff] [blame] | 16 | PLATFORM_CPPFLAGS += -G0 |
Scott McNutt | 12a8a65 | 2010-04-16 16:12:39 -0400 | [diff] [blame] | 17 | |
Haiying Wang | 3935873 | 2011-02-22 16:38:05 -0500 | [diff] [blame] | 18 | LDFLAGS_FINAL += --gc-sections |
Thomas Chou | 3b5b6ac | 2010-05-28 12:08:10 +0800 | [diff] [blame] | 19 | PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections |
Thomas Chou | cce3e75 | 2014-08-22 11:36:47 +0800 | [diff] [blame] | 20 | |
21 | __HAVE_ARCH_GENERIC_BOARD := y |