Merge branch 'master' of git://git.denx.de/u-boot
[platform/kernel/u-boot.git] / arch / nios2 / config.mk
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
9 ifeq ($(CROSS_COMPILE),)
10 CROSS_COMPILE := nios2-elf-
11 endif
12
13 CONFIG_STANDALONE_LOAD_ADDR ?= 0x02000000
14
15 PLATFORM_CPPFLAGS += -D__NIOS2__
16 PLATFORM_CPPFLAGS += -G0
17
18 LDFLAGS_FINAL += --gc-sections
19 PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections