wdenk | bd1575f | 2003-10-14 19:43:55 +0000 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2002 |
| 3 | # Sysgo Real-Time Solutions, GmbH <www.elinos.com> |
| 4 | # Marius Groeger <mgroeger@sysgo.de> |
| 5 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 6 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | bd1575f | 2003-10-14 19:43:55 +0000 | [diff] [blame] | 7 | # |
| 8 | |
| 9 | BIG_ENDIAN = y |
| 10 | |
Masahiro Yamada | d6801e6 | 2013-09-07 17:42:37 +0900 | [diff] [blame] | 11 | PLATFORM_RELFLAGS += -mbig-endian |
Wolfgang Denk | aba5809 | 2005-10-04 22:38:24 +0200 | [diff] [blame] | 12 | |
Wolfgang Denk | 4646d2a | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 13 | PLATFORM_CPPFLAGS += -mbig-endian -march=armv5te -mtune=strongarm1100 |
Michael Schwingen | bc5e9c6 | 2011-05-23 00:00:03 +0200 | [diff] [blame] | 14 | |
Marek Vasut | ada43b4 | 2012-03-06 00:00:12 +0100 | [diff] [blame] | 15 | PLATFORM_LDFLAGS += -EB |
| 16 | USE_PRIVATE_LIBGCC = yes |
| 17 | |
Wolfgang Denk | aba5809 | 2005-10-04 22:38:24 +0200 | [diff] [blame] | 18 | # ========================================================================= |
| 19 | # |
| 20 | # Supply options according to compiler version |
| 21 | # |
| 22 | # ========================================================================= |
Wolfgang Denk | 9209ed5 | 2011-11-01 20:54:02 +0000 | [diff] [blame] | 23 | PF_RELFLAGS_SLB_AT := $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) |
| 24 | PLATFORM_RELFLAGS += $(PF_RELFLAGS_SLB_AT) |