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