Jon Loeliger | debb735 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2004 Freescale Semiconductor. |
Jon Loeliger | c934f65 | 2006-05-31 13:55:35 -0500 | [diff] [blame] | 3 | # Jeff Brown |
Jon Loeliger | debb735 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 4 | # |
| 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 Tjernlund | a16e9a5 | 2010-01-19 14:41:57 +0100 | [diff] [blame] | 24 | PLATFORM_RELFLAGS += -fPIC -meabi |
Jon Loeliger | debb735 | 2006-04-26 17:58:56 -0500 | [diff] [blame] | 25 | |
Kumar Gala | 73aacc5 | 2009-08-06 18:38:43 -0500 | [diff] [blame] | 26 | PLATFORM_CPPFLAGS += -ffixed-r2 -mstring |
| 27 | PLATFORM_CPPFLAGS += -maltivec -mabi=altivec -msoft-float |
Kumar Gala | bd9715e | 2010-10-20 01:29:29 -0500 | [diff] [blame] | 28 | |
Peter Tyser | 68337fb | 2010-09-29 14:05:55 -0500 | [diff] [blame] | 29 | # Enable gc-sections to enable generation of smaller images. |
| 30 | PLATFORM_LDFLAGS += --gc-sections |
| 31 | PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections |
| 32 | |
Kumar Gala | bd9715e | 2010-10-20 01:29:29 -0500 | [diff] [blame] | 33 | # Use default linker script. Board port can override in board/*/config.mk |
| 34 | LDSCRIPT := $(SRCTREE)/arch/powerpc/cpu/mpc86xx/u-boot.lds |