blob: c2b0f9aab6084918730b403816230bc685a4f7e1 [file] [log] [blame]
wdenk4f163802002-09-18 21:14:53 +00001#
Wolfgang Denk0f5fa872010-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 Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk4f163802002-09-18 21:14:53 +00006#
7
Joakim Tjernlund703b8082010-12-06 14:36:46 +01008PLATFORM_RELFLAGS += -meabi
Wolfgang Denk69c09642008-02-14 22:43:22 +01009PLATFORM_CPPFLAGS += -DCONFIG_4xx -ffixed-r2 -mstring -msoft-float
Grzegorz Bernacki837bc5b2007-06-15 11:19:28 +020010
Niklaus Giger070ccff2007-06-25 16:50:55 +020011cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
Shinya Kuribayashi7d763542008-02-23 17:05:00 +090012is440:=$(shell grep CONFIG_440 $(TOPDIR)/include/$(cfg))
wdenk4f163802002-09-18 21:14:53 +000013
Grzegorz Bernacki837bc5b2007-06-15 11:19:28 +020014ifneq (,$(findstring CONFIG_440,$(is440)))
15PLATFORM_CPPFLAGS += -Wa,-m440 -mcpu=440
16else
17PLATFORM_CPPFLAGS += -Wa,-m405 -mcpu=405
18endif