summaryrefslogtreecommitdiff
path: root/arch/microblaze
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@amd.com>2022-06-24 15:14:59 +0300
committerMichal Simek <michal.simek@amd.com>2022-06-24 15:14:59 +0300
commit10fd6d64c747a0267a3735cc64d108cdbde6aeb4 (patch)
treef2f98ea2c3f97beccf21938a0f06d15f4f13cdac /arch/microblaze
parent89e81e6c32bba4b92172019068b81c025698395a (diff)
downloadu-boot-10fd6d64c747a0267a3735cc64d108cdbde6aeb4.tar.xz
microblaze: Enable REMAKE_ELF
Enable u-boot.elf recreation from u-boot.bin to prepare for removing manul relocation. Enable option for big endian configuration but it is not used too much that's why it is completely untested. By supporting this system there is a need to define LITTLE/BIG endian Kconfig options to pass -EL/-EB flags. Full command line for u-boot.elf recreation looks like this: microblazeel-xilinx-linux-gnu-objcopy -I binary -B microblaze \ -O elf32-microblazeel u-boot.bin u-boot-elf.o Signed-off-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/r/7e242a519fcd1c693b9103c5599b515af555ca43.1655299267.git.michal.simek@amd.com
Diffstat (limited to 'arch/microblaze')
-rw-r--r--arch/microblaze/config.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/microblaze/config.mk b/arch/microblaze/config.mk
index de5b97e719..3e84a832fc 100644
--- a/arch/microblaze/config.mk
+++ b/arch/microblaze/config.mk
@@ -16,3 +16,9 @@ LDFLAGS_FINAL += --gc-sections
ifeq ($(CONFIG_SPL_BUILD),)
PLATFORM_CPPFLAGS += -fPIC
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