xref: /openbmc/u-boot/arch/nios2/config.mk (revision ee943655)
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
7ifeq ($(CROSS_COMPILE),)
8CROSS_COMPILE := nios2-elf-
9endif
10
11CONFIG_STANDALONE_LOAD_ADDR ?= 0x02000000
12
13PLATFORM_CPPFLAGS += -D__NIOS2__
14PLATFORM_CPPFLAGS += -G0
15
16LDFLAGS_FINAL += --gc-sections
17PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
18