xref: /rk3399_rockchip-uboot/arch/mips/cpu/mips64/config.mk (revision 32afad783eb5a372c276fcb9fb30dfb838615909)
1*32afad78SZhi-zhou Zhang#
2*32afad78SZhi-zhou Zhang# (C) Copyright 2003
3*32afad78SZhi-zhou Zhang# Wolfgang Denk, DENX Software Engineering, <wd@denx.de>
4*32afad78SZhi-zhou Zhang#
5*32afad78SZhi-zhou Zhang# See file CREDITS for list of people who contributed to this
6*32afad78SZhi-zhou Zhang# project.
7*32afad78SZhi-zhou Zhang#
8*32afad78SZhi-zhou Zhang# This program is free software; you can redistribute it and/or
9*32afad78SZhi-zhou Zhang# modify it under the terms of the GNU General Public License as
10*32afad78SZhi-zhou Zhang# published by the Free Software Foundation; either version 2 of
11*32afad78SZhi-zhou Zhang# the License, or (at your option) any later version.
12*32afad78SZhi-zhou Zhang#
13*32afad78SZhi-zhou Zhang# This program is distributed in the hope that it will be useful,
14*32afad78SZhi-zhou Zhang# but WITHOUT ANY WARRANTY; without even the implied warranty of
15*32afad78SZhi-zhou Zhang# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16*32afad78SZhi-zhou Zhang# GNU General Public License for more details.
17*32afad78SZhi-zhou Zhang#
18*32afad78SZhi-zhou Zhang# You should have received a copy of the GNU General Public License
19*32afad78SZhi-zhou Zhang# along with this program; if not, write to the Free Software
20*32afad78SZhi-zhou Zhang# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21*32afad78SZhi-zhou Zhang# MA 02111-1307 USA
22*32afad78SZhi-zhou Zhang#
23*32afad78SZhi-zhou Zhang
24*32afad78SZhi-zhou Zhang#
25*32afad78SZhi-zhou Zhang# Default optimization level for MIPS64
26*32afad78SZhi-zhou Zhang#
27*32afad78SZhi-zhou Zhang# Note: Toolchains with binutils prior to v2.16
28*32afad78SZhi-zhou Zhang# are no longer supported by U-Boot MIPS tree!
29*32afad78SZhi-zhou Zhang#
30*32afad78SZhi-zhou ZhangMIPSFLAGS = -march=mips64
31*32afad78SZhi-zhou Zhang
32*32afad78SZhi-zhou ZhangPLATFORM_CPPFLAGS += $(MIPSFLAGS)
33*32afad78SZhi-zhou ZhangPLATFORM_CPPFLAGS += -mabi=64 -DCONFIG_64BIT
34*32afad78SZhi-zhou Zhangifdef CONFIG_SYS_BIG_ENDIAN
35*32afad78SZhi-zhou ZhangPLATFORM_LDFLAGS  += -m elf64btsmip
36*32afad78SZhi-zhou Zhangelse
37*32afad78SZhi-zhou ZhangPLATFORM_LDFLAGS  += -m elf64ltsmip
38*32afad78SZhi-zhou Zhangendif
39*32afad78SZhi-zhou Zhang
40*32afad78SZhi-zhou ZhangCONFIG_STANDALONE_LOAD_ADDR ?= 0xffffffff80200000 -T mips64.lds
41