7d546eff691cf39ab3aa271a56a4cddec006c33b
[karo-tx-uboot.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 CROSS_COMPILE ?= nios2-elf-
10
11 CONFIG_STANDALONE_LOAD_ADDR ?= 0x02000000
12
13 PLATFORM_CPPFLAGS += -DCONFIG_NIOS2 -D__NIOS2__
14 PLATFORM_CPPFLAGS += -G0
15
16 LDFLAGS_FINAL += --gc-sections
17 PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections