wdenk | 4f16380 | 2002-09-18 21:14:53 +0000 | [diff] [blame] | 1 | # |
Wolfgang Denk | fa11dbe | 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 | 1a45966 | 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 | 33ee4c9 | 2010-12-06 14:36:46 +0100 | [diff] [blame] | 8 | PLATFORM_RELFLAGS += -meabi |
Wolfgang Denk | e7670f6 | 2008-02-14 22:43:22 +0100 | [diff] [blame] | 9 | PLATFORM_CPPFLAGS += -DCONFIG_4xx -ffixed-r2 -mstring -msoft-float |
wdenk | 4f16380 | 2002-09-18 21:14:53 +0000 | [diff] [blame] | 10 | |
Niklaus Giger | 807018f | 2007-06-25 16:50:55 +0200 | [diff] [blame] | 11 | cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/') |
Shinya Kuribayashi | 495a0dd | 2008-02-23 17:05:00 +0900 | [diff] [blame] | 12 | is440:=$(shell grep CONFIG_440 $(TOPDIR)/include/$(cfg)) |
Grzegorz Bernacki | efa35cf | 2007-06-15 11:19:28 +0200 | [diff] [blame] | 13 | |
| 14 | ifneq (,$(findstring CONFIG_440,$(is440))) |
| 15 | PLATFORM_CPPFLAGS += -Wa,-m440 -mcpu=440 |
| 16 | else |
| 17 | PLATFORM_CPPFLAGS += -Wa,-m405 -mcpu=405 |
| 18 | endif |