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 | # |
Daniel Schwierzeck | d8a49ca | 2012-04-02 02:57:56 +0000 | [diff] [blame] | 14 | MIPSFLAGS := -march=mips32r2 |
wdenk | bb1b826 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 15 | |
Daniel Schwierzeck | c390ba5 | 2012-08-21 23:27:37 +0200 | [diff] [blame] | 16 | PLATFORM_CPPFLAGS += $(MIPSFLAGS) |
Gabor Juhos | 1da7d29 | 2013-01-30 02:22:51 +0000 | [diff] [blame] | 17 | PLATFORM_CPPFLAGS += -mabi=32 -DCONFIG_32BIT |
| 18 | ifdef CONFIG_SYS_BIG_ENDIAN |
| 19 | PLATFORM_LDFLAGS += -m elf32btsmip |
| 20 | else |
| 21 | PLATFORM_LDFLAGS += -m elf32ltsmip |
| 22 | endif |
Daniel Schwierzeck | 09c5206 | 2012-08-21 23:38:25 +0200 | [diff] [blame] | 23 | |
| 24 | CONFIG_STANDALONE_LOAD_ADDR ?= 0x80200000 -T mips.lds |