Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 1249065 | 2004-04-18 21:13:41 +0000 | [diff] [blame] | 2 | # |
Michal Simek | d1e72ac | 2008-03-28 11:58:45 +0100 | [diff] [blame] | 3 | # (C) Copyright 2007-2008 Michal Simek |
| 4 | # Michal SIMEK <monstr@monstr.eu> |
wdenk | 1249065 | 2004-04-18 21:13:41 +0000 | [diff] [blame] | 5 | # |
Michal Simek | d1e72ac | 2008-03-28 11:58:45 +0100 | [diff] [blame] | 6 | # (C) Copyright 2004 Atmark Techno, Inc. |
wdenk | 1249065 | 2004-04-18 21:13:41 +0000 | [diff] [blame] | 7 | # Yasushi SHOJI <yashi@atmark-techno.com> |
wdenk | 1249065 | 2004-04-18 21:13:41 +0000 | [diff] [blame] | 8 | |
Michal Simek | 922ce20 | 2007-03-11 13:48:24 +0100 | [diff] [blame] | 9 | PLATFORM_CPPFLAGS += -ffixed-r31 -D__microblaze__ |
Michal Simek | 7d8314a | 2020-11-04 14:01:45 +0100 | [diff] [blame] | 10 | PLATFORM_CPPFLAGS += -fdata-sections -ffunction-sections |
| 11 | |
| 12 | LDFLAGS_FINAL += --gc-sections |
Michal Simek | 65e915c | 2014-05-08 16:08:44 +0200 | [diff] [blame] | 13 | |
Simon Glass | 85ed77d | 2024-09-29 19:49:46 -0600 | [diff] [blame] | 14 | ifeq ($(CONFIG_XPL_BUILD),) |
Michal Simek | 65e915c | 2014-05-08 16:08:44 +0200 | [diff] [blame] | 15 | PLATFORM_CPPFLAGS += -fPIC |
Michal Simek | f942ebb | 2022-06-24 14:15:01 +0200 | [diff] [blame] | 16 | LDFLAGS_u-boot += -pic |
| 17 | endif |
| 18 | |
Michal Simek | 1a2f7b8 | 2022-06-24 14:14:59 +0200 | [diff] [blame] | 19 | ifeq ($(CONFIG_SYS_LITTLE_ENDIAN),y) |
| 20 | PLATFORM_ELFFLAGS += -B microblaze $(OBJCOPYFLAGS) -O elf32-microblazeel |
| 21 | else |
| 22 | PLATFORM_ELFFLAGS += -B microblaze $(OBJCOPYFLAGS) -O elf32-microblaze |
| 23 | endif |