blob: d35b4f6db7a1b33d91f90b6f5673f1205620a826 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
wdenk507bbe32004-04-18 21:13:41 +00002#
Michal Simek62032de2008-03-28 11:58:45 +01003# (C) Copyright 2007-2008 Michal Simek
4# Michal SIMEK <monstr@monstr.eu>
wdenk507bbe32004-04-18 21:13:41 +00005#
Michal Simek62032de2008-03-28 11:58:45 +01006# (C) Copyright 2004 Atmark Techno, Inc.
wdenk507bbe32004-04-18 21:13:41 +00007# Yasushi SHOJI <yashi@atmark-techno.com>
wdenk507bbe32004-04-18 21:13:41 +00008
Wolfgang Denk8ae86b72011-02-04 14:25:17 +01009CONFIG_STANDALONE_LOAD_ADDR ?= 0x80F00000
Mike Frysinger262ae0a2009-09-03 23:12:47 -040010
Michal Simekcfc67112007-03-11 13:48:24 +010011PLATFORM_CPPFLAGS += -ffixed-r31 -D__microblaze__
Michal Simek9c2aa7e2020-11-04 14:01:45 +010012PLATFORM_CPPFLAGS += -fdata-sections -ffunction-sections
13
14LDFLAGS_FINAL += --gc-sections
Michal Simeke945f6d2014-05-08 16:08:44 +020015
16ifeq ($(CONFIG_SPL_BUILD),)
17PLATFORM_CPPFLAGS += -fPIC
18endif
Michal Simek10fd6d62022-06-24 14:14:59 +020019
Michal Simekd58c0072022-06-24 14:15:01 +020020ifeq ($(CONFIG_STATIC_RELA),y)
21PLATFORM_CPPFLAGS += -fPIC
22LDFLAGS_u-boot += -pic
23endif
24
Michal Simek10fd6d62022-06-24 14:14:59 +020025ifeq ($(CONFIG_SYS_LITTLE_ENDIAN),y)
26PLATFORM_ELFFLAGS += -B microblaze $(OBJCOPYFLAGS) -O elf32-microblazeel
27else
28PLATFORM_ELFFLAGS += -B microblaze $(OBJCOPYFLAGS) -O elf32-microblaze
29endif