xref: /rk3399_rockchip-uboot/arch/nios2/config.mk (revision e09e083f7ff1b0140c5d5a2bdc29902b7b23ffba)
1ea0364f1SPeter Tyser#
2ea0364f1SPeter Tyser# (C) Copyright 2004
3ea0364f1SPeter Tyser# Psyent Corporation <www.psyent.com>
4ea0364f1SPeter Tyser# Scott McNutt <smcnutt@psyent.com>
5ea0364f1SPeter Tyser#
6ea0364f1SPeter Tyser# See file CREDITS for list of people who contributed to this
7ea0364f1SPeter Tyser# project.
8ea0364f1SPeter Tyser#
9ea0364f1SPeter Tyser# This program is free software; you can redistribute it and/or
10ea0364f1SPeter Tyser# modify it under the terms of the GNU General Public License as
11ea0364f1SPeter Tyser# published by the Free Software Foundation; either version 2 of
12ea0364f1SPeter Tyser# the License, or (at your option) any later version.
13ea0364f1SPeter Tyser#
14ea0364f1SPeter Tyser# This program is distributed in the hope that it will be useful,
15ea0364f1SPeter Tyser# but WITHOUT ANY WARRANTY; without even the implied warranty of
16ea0364f1SPeter Tyser# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17ea0364f1SPeter Tyser# GNU General Public License for more details.
18ea0364f1SPeter Tyser#
19ea0364f1SPeter Tyser# You should have received a copy of the GNU General Public License
20ea0364f1SPeter Tyser# along with this program; if not, write to the Free Software
21ea0364f1SPeter Tyser# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
22ea0364f1SPeter Tyser# MA 02111-1307 USA
23ea0364f1SPeter Tyser#
24ea0364f1SPeter Tyser
25ea0364f1SPeter TyserCROSS_COMPILE ?= nios2-elf-
26ea0364f1SPeter Tyser
27*e09e083fSThomas ChouCONFIG_STANDALONE_LOAD_ADDR ?= 0x02000000
28ea0364f1SPeter Tyser
29ea0364f1SPeter TyserPLATFORM_CPPFLAGS += -DCONFIG_NIOS2 -D__NIOS2__
300df01fd3SThomas ChouPLATFORM_CPPFLAGS += -G0
31254ab7bdSScott McNutt
326dc1ecebSHaiying WangLDFLAGS_FINAL += --gc-sections
33cb2da50fSThomas ChouPLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
34