Xiangfu Liu | 80421fc | 2011-10-12 12:24:06 +0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2011 Xiangfu Liu <xiangfu@openmobilefree.net> |
| 3 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
Xiangfu Liu | 80421fc | 2011-10-12 12:24:06 +0800 | [diff] [blame] | 5 | # |
| 6 | |
Daniel Schwierzeck | 2c0e3de | 2012-08-21 23:27:37 +0200 | [diff] [blame] | 7 | PLATFORM_CPPFLAGS += -march=mips32 |
Gabor Juhos | 9950b90 | 2013-01-30 02:22:51 +0000 | [diff] [blame] | 8 | PLATFORM_CPPFLAGS += -mabi=32 -DCONFIG_32BIT |
| 9 | ifdef CONFIG_SYS_BIG_ENDIAN |
| 10 | PLATFORM_LDFLAGS += -m elf32btsmip |
| 11 | else |
| 12 | PLATFORM_LDFLAGS += -m elf32ltsmip |
| 13 | endif |
Daniel Schwierzeck | 0efcdb1 | 2012-08-21 23:38:25 +0200 | [diff] [blame] | 14 | |
| 15 | CONFIG_STANDALONE_LOAD_ADDR ?= 0x80200000 -T mips.lds |