3 # Psyent Corporation <www.psyent.com>
4 # Scott McNutt <smcnutt@psyent.com>
6 # SPDX-License-Identifier: GPL-2.0+
9 CROSS_COMPILE ?= nios2-elf-
11 CONFIG_STANDALONE_LOAD_ADDR ?= 0x02000000
13 PLATFORM_CPPFLAGS += -DCONFIG_NIOS2 -D__NIOS2__
14 PLATFORM_CPPFLAGS += -G0
16 LDFLAGS_FINAL += --gc-sections
17 PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections