wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2003 |
| 3 | # Wolfgang Denk, DENX Software Engineering, <wd@denx.de> |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 6 | # |
Daniel Schwierzeck | 53f4449 | 2011-03-28 18:33:56 +0200 | [diff] [blame] | 7 | |
| 8 | # |
| 9 | # Default optimization level for MIPS32 |
| 10 | # |
| 11 | # Note: Toolchains with binutils prior to v2.16 |
| 12 | # are no longer supported by U-Boot MIPS tree! |
| 13 | # |
Masahiro Yamada | 0d084d4 | 2014-03-05 17:25:37 +0900 | [diff] [blame] | 14 | PLATFORM_CPPFLAGS += -DCONFIG_MIPS32 -march=mips32r2 |
Gabor Juhos | 1da7d29 | 2013-01-30 02:22:51 +0000 | [diff] [blame] | 15 | PLATFORM_CPPFLAGS += -mabi=32 -DCONFIG_32BIT |
| 16 | ifdef CONFIG_SYS_BIG_ENDIAN |
| 17 | PLATFORM_LDFLAGS += -m elf32btsmip |
| 18 | else |
| 19 | PLATFORM_LDFLAGS += -m elf32ltsmip |
| 20 | endif |
Daniel Schwierzeck | 09c5206 | 2012-08-21 23:38:25 +0200 | [diff] [blame] | 21 | |
Masahiro Yamada | a06c7cd | 2014-03-05 16:59:39 +0900 | [diff] [blame] | 22 | CONFIG_STANDALONE_LOAD_ADDR ?= 0x80200000 \ |
| 23 | -T $(srctree)/examples/standalone/mips.lds |