blob: bce0fb374b999b854ec4119bc46a1f709e9d6073 [file] [log] [blame]
Jon Loeligerdebb7352006-04-26 17:58:56 -05001#
2# (C) Copyright 2004 Freescale Semiconductor.
Jon Loeligerc934f652006-05-31 13:55:35 -05003# Jeff Brown
Jon Loeligerdebb7352006-04-26 17:58:56 -05004#
5# See file CREDITS for list of people who contributed to this
6# project.
7#
8# This program is free software; you can redistribute it and/or
9# modify it under the terms of the GNU General Public License as
10# published by the Free Software Foundation; either version 2 of
11# the License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software
20# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21# MA 02111-1307 USA
22#
23
Joakim Tjernlunda16e9a52010-01-19 14:41:57 +010024PLATFORM_RELFLAGS += -fPIC -meabi
Jon Loeligerdebb7352006-04-26 17:58:56 -050025
Kumar Gala73aacc52009-08-06 18:38:43 -050026PLATFORM_CPPFLAGS += -ffixed-r2 -mstring
27PLATFORM_CPPFLAGS += -maltivec -mabi=altivec -msoft-float
Kumar Galabd9715e2010-10-20 01:29:29 -050028
Peter Tyser68337fb2010-09-29 14:05:55 -050029# Enable gc-sections to enable generation of smaller images.
30PLATFORM_LDFLAGS += --gc-sections
31PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
32
Kumar Galabd9715e2010-10-20 01:29:29 -050033# Use default linker script. Board port can override in board/*/config.mk
34LDSCRIPT := $(SRCTREE)/arch/powerpc/cpu/mpc86xx/u-boot.lds