blob: 02113a1f09161b5862d66a7397a50011e19ea281 [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
Masahiro Yamada59f15f22014-02-04 17:24:24 +090024CONFIG_STANDALONE_LOAD_ADDR ?= 0xffffffff80200000 -T $(srctree)/$(src)/mips64.lds