[U-Boot] [PATCH v3 3/3] MIPS: add support for generating u-boot.elf

Álvaro Fernández Rojas
2017-04-18T20:35:33Z

Define PLATFORM_ELFFLAGS for MIPS in order to be able to generate u-boot.elf

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
---
v3: Introduce changes suggested by Daniel Schwierzeck:
- Add new patch.

arch/mips/config.mk | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/mips/config.mk b/arch/mips/config.mk
index dcd3460..1879a53 100644
--- a/arch/mips/config.mk
+++ b/arch/mips/config.mk
@@ -36,6 +36,7 @@ OBJCOPYFLAGS += -O $(64bit-bfd)
endif

PLATFORM_CPPFLAGS += -D__MIPS__
+PLATFORM_ELFFLAGS += -B mips $(OBJCOPYFLAGS)

#
# From Linux arch/mips/Makefile
--
2.1.4