191809608SDaniel Schwierzeck# 291809608SDaniel Schwierzeck# (C) Copyright 2003 391809608SDaniel Schwierzeck# Wolfgang Denk, DENX Software Engineering, <wd@denx.de> 491809608SDaniel Schwierzeck# 591809608SDaniel Schwierzeck# See file CREDITS for list of people who contributed to this 691809608SDaniel Schwierzeck# project. 791809608SDaniel Schwierzeck# 891809608SDaniel Schwierzeck# This program is free software; you can redistribute it and/or 991809608SDaniel Schwierzeck# modify it under the terms of the GNU General Public License as 1091809608SDaniel Schwierzeck# published by the Free Software Foundation; either version 2 of 1191809608SDaniel Schwierzeck# the License, or (at your option) any later version. 1291809608SDaniel Schwierzeck# 1391809608SDaniel Schwierzeck# This program is distributed in the hope that it will be useful, 1491809608SDaniel Schwierzeck# but WITHOUT ANY WARRANTY; without even the implied warranty of 1591809608SDaniel Schwierzeck# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1691809608SDaniel Schwierzeck# GNU General Public License for more details. 1791809608SDaniel Schwierzeck# 1891809608SDaniel Schwierzeck# You should have received a copy of the GNU General Public License 1991809608SDaniel Schwierzeck# along with this program; if not, write to the Free Software 2091809608SDaniel Schwierzeck# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 2191809608SDaniel Schwierzeck# MA 02111-1307 USA 2291809608SDaniel Schwierzeck# 23*04efda7aSDaniel Schwierzeck 24*04efda7aSDaniel Schwierzeck# 25*04efda7aSDaniel Schwierzeck# Default optimization level for MIPS32 26*04efda7aSDaniel Schwierzeck# 27*04efda7aSDaniel Schwierzeck# Note: Toolchains with binutils prior to v2.16 28*04efda7aSDaniel Schwierzeck# are no longer supported by U-Boot MIPS tree! 29*04efda7aSDaniel Schwierzeck# 30*04efda7aSDaniel SchwierzeckMIPSFLAGS = -march=mips32r2 3191809608SDaniel Schwierzeck 3291809608SDaniel Schwierzeckifneq (,$(findstring 4KCle,$(CROSS_COMPILE))) 3391809608SDaniel SchwierzeckENDIANNESS = -EL 3491809608SDaniel Schwierzeckelse 3591809608SDaniel SchwierzeckENDIANNESS = -EB 3691809608SDaniel Schwierzeckendif 3791809608SDaniel Schwierzeck 3891809608SDaniel SchwierzeckMIPSFLAGS += $(ENDIANNESS) 3991809608SDaniel Schwierzeck 4091809608SDaniel SchwierzeckPLATFORM_CPPFLAGS += $(MIPSFLAGS) 41