blob: c2b0f9aab6084918730b403816230bc685a4f7e1 [file] [log] [blame]
wdenk4f163802002-09-18 21:14:53 +00001#
Wolfgang Denkfa11dbe2010-11-21 16:34:05 +01002# (C) Copyright 2000-2010
wdenk4f163802002-09-18 21:14:53 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk4f163802002-09-18 21:14:53 +00006#
7
Joakim Tjernlund33ee4c92010-12-06 14:36:46 +01008PLATFORM_RELFLAGS += -meabi
Wolfgang Denke7670f62008-02-14 22:43:22 +01009PLATFORM_CPPFLAGS += -DCONFIG_4xx -ffixed-r2 -mstring -msoft-float
wdenk4f163802002-09-18 21:14:53 +000010
Niklaus Giger807018f2007-06-25 16:50:55 +020011cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
Shinya Kuribayashi495a0dd2008-02-23 17:05:00 +090012is440:=$(shell grep CONFIG_440 $(TOPDIR)/include/$(cfg))
Grzegorz Bernackiefa35cf2007-06-15 11:19:28 +020013
14ifneq (,$(findstring CONFIG_440,$(is440)))
15PLATFORM_CPPFLAGS += -Wa,-m440 -mcpu=440
16else
17PLATFORM_CPPFLAGS += -Wa,-m405 -mcpu=405
18endif