Zhi-zhou Zhang | 32afad7 | 2012-10-16 15:02:08 +0200 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2003 |
| 3 | # Wolfgang Denk, DENX Software Engineering, <wd@denx.de> |
| 4 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Zhi-zhou Zhang | 32afad7 | 2012-10-16 15:02:08 +0200 | [diff] [blame] | 6 | # |
| 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 | # |
Masahiro Yamada | cfda6bd | 2014-03-05 17:25:37 +0900 | [diff] [blame] | 14 | PLATFORM_CPPFLAGS += -DCONFIG_MIPS64 -march=mips64 |
Zhi-zhou Zhang | 32afad7 | 2012-10-16 15:02:08 +0200 | [diff] [blame] | 15 | PLATFORM_CPPFLAGS += -mabi=64 -DCONFIG_64BIT |
| 16 | ifdef CONFIG_SYS_BIG_ENDIAN |
| 17 | PLATFORM_LDFLAGS += -m elf64btsmip |
| 18 | else |
| 19 | PLATFORM_LDFLAGS += -m elf64ltsmip |
| 20 | endif |
| 21 | |
Masahiro Yamada | a0a15b4 | 2014-03-05 16:59:39 +0900 | [diff] [blame] | 22 | CONFIG_STANDALONE_LOAD_ADDR ?= 0xffffffff80200000 \ |
| 23 | -T $(srctree)/examples/standalone/mips64.lds |