1*83d290c5STom Rini# SPDX-License-Identifier: GPL-2.0+ 2ea0364f1SPeter Tyser# 3ea0364f1SPeter Tyser# (C) Copyright 2004 4ea0364f1SPeter Tyser# Psyent Corporation <www.psyent.com> 5ea0364f1SPeter Tyser# Scott McNutt <smcnutt@psyent.com> 6ea0364f1SPeter Tyser 79b6e2c36SMasahiro Yamadaifeq ($(CROSS_COMPILE),) 89b6e2c36SMasahiro YamadaCROSS_COMPILE := nios2-elf- 99b6e2c36SMasahiro Yamadaendif 10ea0364f1SPeter Tyser 11e09e083fSThomas ChouCONFIG_STANDALONE_LOAD_ADDR ?= 0x02000000 12ea0364f1SPeter Tyser 1390f984e3SMasahiro YamadaPLATFORM_CPPFLAGS += -D__NIOS2__ 140df01fd3SThomas ChouPLATFORM_CPPFLAGS += -G0 15254ab7bdSScott McNutt 166dc1ecebSHaiying WangLDFLAGS_FINAL += --gc-sections 17cb2da50fSThomas ChouPLATFORM_RELFLAGS += -ffunction-sections -fdata-sections 18