config.mk 388 Bytes
Newer Older
1 2 3 4 5
#
# (C) Copyright 2004
# Psyent Corporation <www.psyent.com>
# Scott McNutt <smcnutt@psyent.com>
#
6
# SPDX-License-Identifier:	GPL-2.0+
7 8
#

9 10 11
ifeq ($(CROSS_COMPILE),)
CROSS_COMPILE := nios2-elf-
endif
12

13
CONFIG_STANDALONE_LOAD_ADDR ?= 0x02000000
14

15
PLATFORM_CPPFLAGS += -D__NIOS2__
Thomas Chou's avatar
Thomas Chou committed
16
PLATFORM_CPPFLAGS += -G0
17

18
LDFLAGS_FINAL += --gc-sections
19
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections