wdenk | c021880 | 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 | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | c021880 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 6 | # |
Daniel Schwierzeck | 04efda7 | 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 | 6cb461b | 2012-04-02 02:57:56 +0000 | [diff] [blame] | 14 | MIPSFLAGS := -march=mips32r2 |
wdenk | c021880 | 2003-03-27 12:09:35 +0000 | [diff] [blame] | 15 | |
Daniel Schwierzeck | 2c0e3de | 2012-08-21 23:27:37 +0200 | [diff] [blame] | 16 | PLATFORM_CPPFLAGS += $(MIPSFLAGS) |
Gabor Juhos | 9950b90 | 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 | 0efcdb1 | 2012-08-21 23:38:25 +0200 | [diff] [blame] | 23 | |
| 24 | CONFIG_STANDALONE_LOAD_ADDR ?= 0x80200000 -T mips.lds |