diff options
Diffstat (limited to 'arch/microblaze/config.mk')
-rw-r--r-- | arch/microblaze/config.mk | 6 |
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 |