mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-25 20:43:32 +00:00
7ac50f88f8
Runtime relocation has been made the default for microblaze, so do the following cleanups: - drop all manual reloc codepaths in start.S - drop all STATIC_RELA ifdefs, as it is now enabled unconditionally in Kconfig Reviewed-by: Michal Simek <michal.simek@amd.com> Signed-off-by: Ovidiu Panait <ovpanait@gmail.com> Link: https://lore.kernel.org/r/20230311173838.521804-5-ovpanait@gmail.com Signed-off-by: Michal Simek <michal.simek@amd.com>
23 lines
614 B
Makefile
23 lines
614 B
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# (C) Copyright 2007-2008 Michal Simek
|
|
# Michal SIMEK <monstr@monstr.eu>
|
|
#
|
|
# (C) Copyright 2004 Atmark Techno, Inc.
|
|
# Yasushi SHOJI <yashi@atmark-techno.com>
|
|
|
|
PLATFORM_CPPFLAGS += -ffixed-r31 -D__microblaze__
|
|
PLATFORM_CPPFLAGS += -fdata-sections -ffunction-sections
|
|
|
|
LDFLAGS_FINAL += --gc-sections
|
|
|
|
ifeq ($(CONFIG_SPL_BUILD),)
|
|
PLATFORM_CPPFLAGS += -fPIC
|
|
LDFLAGS_u-boot += -pic
|
|
endif
|
|
|
|
ifeq ($(CONFIG_SYS_LITTLE_ENDIAN),y)
|
|
PLATFORM_ELFFLAGS += -B microblaze $(OBJCOPYFLAGS) -O elf32-microblazeel
|
|
else
|
|
PLATFORM_ELFFLAGS += -B microblaze $(OBJCOPYFLAGS) -O elf32-microblaze
|
|
endif
|