1 # SPDX-License-Identifier: GPL-2.0+ 2 # 3 # (C) Copyright 2004 4 # Psyent Corporation <www.psyent.com> 5 # Scott McNutt <smcnutt@psyent.com> 6 7 ifeq ($(CROSS_COMPILE),) 8 CROSS_COMPILE := nios2-elf- 9 endif 10 11 CONFIG_STANDALONE_LOAD_ADDR ?= 0x02000000 12 13 PLATFORM_CPPFLAGS += -D__NIOS2__ 14 PLATFORM_CPPFLAGS += -G0 15 16 LDFLAGS_FINAL += --gc-sections 17 PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections 18