wdenk | 4f16380 | 2002-09-18 21:14:53 +0000 | [diff] [blame] | 1 | # |
Wolfgang Denk | 0f5fa87 | 2010-11-21 16:34:05 +0100 | [diff] [blame] | 2 | # (C) Copyright 2000-2010 |
wdenk | 4f16380 | 2002-09-18 21:14:53 +0000 | [diff] [blame] | 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 | 4f16380 | 2002-09-18 21:14:53 +0000 | [diff] [blame] | 6 | # |
| 7 | |
Joakim Tjernlund | 703b808 | 2010-12-06 14:36:46 +0100 | [diff] [blame] | 8 | PLATFORM_RELFLAGS += -meabi |
Wolfgang Denk | 69c0964 | 2008-02-14 22:43:22 +0100 | [diff] [blame] | 9 | PLATFORM_CPPFLAGS += -DCONFIG_4xx -ffixed-r2 -mstring -msoft-float |
Grzegorz Bernacki | 837bc5b | 2007-06-15 11:19:28 +0200 | [diff] [blame] | 10 | |
Niklaus Giger | 070ccff | 2007-06-25 16:50:55 +0200 | [diff] [blame] | 11 | cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/') |
Shinya Kuribayashi | 7d76354 | 2008-02-23 17:05:00 +0900 | [diff] [blame] | 12 | is440:=$(shell grep CONFIG_440 $(TOPDIR)/include/$(cfg)) |
wdenk | 4f16380 | 2002-09-18 21:14:53 +0000 | [diff] [blame] | 13 | |
Grzegorz Bernacki | 837bc5b | 2007-06-15 11:19:28 +0200 | [diff] [blame] | 14 | ifneq (,$(findstring CONFIG_440,$(is440))) |
| 15 | PLATFORM_CPPFLAGS += -Wa,-m440 -mcpu=440 |
| 16 | else |
| 17 | PLATFORM_CPPFLAGS += -Wa,-m405 -mcpu=405 |
| 18 | endif |