blob: 067f8715259385da245a7b70516feee7a14124ff [file] [log] [blame]
wdenkbb1b8262003-03-27 12:09:35 +00001#
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+
wdenkbb1b8262003-03-27 12:09:35 +00006#
Daniel Schwierzeck53f44492011-03-28 18:33:56 +02007
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 Schwierzeckd8a49ca2012-04-02 02:57:56 +000014MIPSFLAGS := -march=mips32r2
wdenkbb1b8262003-03-27 12:09:35 +000015
Daniel Schwierzeckc390ba52012-08-21 23:27:37 +020016PLATFORM_CPPFLAGS += $(MIPSFLAGS)
Gabor Juhos1da7d292013-01-30 02:22:51 +000017PLATFORM_CPPFLAGS += -mabi=32 -DCONFIG_32BIT
18ifdef CONFIG_SYS_BIG_ENDIAN
19PLATFORM_LDFLAGS += -m elf32btsmip
20else
21PLATFORM_LDFLAGS += -m elf32ltsmip
22endif
Daniel Schwierzeck09c52062012-08-21 23:38:25 +020023
24CONFIG_STANDALONE_LOAD_ADDR ?= 0x80200000 -T mips.lds