TsiChung Liew | f6afe72 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2003 Josef Baumgartner <josef.baumgartner@telex.de> |
| 3 | # |
| 4 | # (C) Copyright 2000-2004 |
| 5 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 6 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | # SPDX-License-Identifier: GPL-2.0+ |
TsiChung Liew | f6afe72 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 8 | # |
| 9 | |
Masahiro Yamada | 60bb734 | 2014-07-30 14:08:17 +0900 | [diff] [blame] | 10 | cfg=$(srctree)/include/configs/$(CONFIG_SYS_CONFIG_NAME:"%"=%).h |
| 11 | is5301x:=$(shell grep CONFIG_MCF5301x $(cfg)) |
| 12 | is532x:=$(shell grep CONFIG_MCF532x $(cfg)) |
TsiChung Liew | 90ac2b6 | 2010-03-10 17:32:13 -0600 | [diff] [blame] | 13 | |
TsiChung Liew | 90ac2b6 | 2010-03-10 17:32:13 -0600 | [diff] [blame] | 14 | ifneq (,$(findstring CONFIG_MCF5301x,$(is5301x))) |
| 15 | PLATFORM_CPPFLAGS += -mcpu=53015 -fPIC |
| 16 | endif |
| 17 | ifneq (,$(findstring CONFIG_MCF532x,$(is532x))) |
TsiChungLiew | 6ad3690 | 2007-11-07 17:51:00 -0600 | [diff] [blame] | 18 | PLATFORM_CPPFLAGS += -mcpu=5329 -fPIC |
TsiChung Liew | 90ac2b6 | 2010-03-10 17:32:13 -0600 | [diff] [blame] | 19 | endif |