blob: d1a8b2c7aa35ced56cebbf05f9c04873dbcbf40f [file] [log] [blame]
Zhi-zhou Zhange0d6df52012-10-16 15:02:08 +02001#
2# (C) Copyright 2003
3# Wolfgang Denk, DENX Software Engineering, <wd@denx.de>
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Zhi-zhou Zhange0d6df52012-10-16 15:02:08 +02006#
7
8#
9# Default optimization level for MIPS64
10#
11# Note: Toolchains with binutils prior to v2.16
12# are no longer supported by U-Boot MIPS tree!
13#
14MIPSFLAGS = -march=mips64
15
16PLATFORM_CPPFLAGS += $(MIPSFLAGS)
17PLATFORM_CPPFLAGS += -mabi=64 -DCONFIG_64BIT
18ifdef CONFIG_SYS_BIG_ENDIAN
19PLATFORM_LDFLAGS += -m elf64btsmip
20else
21PLATFORM_LDFLAGS += -m elf64ltsmip
22endif
23
24CONFIG_STANDALONE_LOAD_ADDR ?= 0xffffffff80200000 -T mips64.lds