1 # SPDX-License-Identifier: GPL-2.0+
3 # (C) Copyright 2007-2008 Michal Simek
4 # Michal SIMEK <monstr@monstr.eu>
6 # (C) Copyright 2004 Atmark Techno, Inc.
7 # Yasushi SHOJI <yashi@atmark-techno.com>
9 CONFIG_STANDALONE_LOAD_ADDR ?= 0x80F00000
11 PLATFORM_CPPFLAGS += -ffixed-r31 -D__microblaze__
12 PLATFORM_CPPFLAGS += -fdata-sections -ffunction-sections
14 LDFLAGS_FINAL += --gc-sections
16 ifeq ($(CONFIG_SPL_BUILD),)
17 PLATFORM_CPPFLAGS += -fPIC
20 ifeq ($(CONFIG_STATIC_RELA),y)
21 PLATFORM_CPPFLAGS += -fPIC
22 LDFLAGS_u-boot += -pic
25 ifeq ($(CONFIG_SYS_LITTLE_ENDIAN),y)
26 PLATFORM_ELFFLAGS += -B microblaze $(OBJCOPYFLAGS) -O elf32-microblazeel
28 PLATFORM_ELFFLAGS += -B microblaze $(OBJCOPYFLAGS) -O elf32-microblaze