[U-Boot,v4,3/4] MIPS: add support for generating u-boot.elf

Submitted by Álvaro Fernández Rojas on April 20, 2017, 6:36 p.m.

Details

Message ID 1492713388-310-4-git-send-email-noltari@gmail.com
State Accepted
Commit 47cf465c25d4c121d4b2befc67aabfa044a52389
Delegated to: Daniel Schwierzeck
Headers show

Commit Message

Álvaro Fernández Rojas April 20, 2017, 6:36 p.m.
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>
---
 v4: Introduce changes suggested by Tom Rini:
  - __start is the standard for MIPS, not ARM.
 v3: Introduce changes suggested by Daniel Schwierzeck:
  - Add new patch.

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

Comments

Daniel Schwierzeck April 30, 2017, 6:41 p.m.
Am 20.04.2017 um 20:36 schrieb Álvaro Fernández Rojas:
> 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>
> ---
>  v4: Introduce changes suggested by Tom Rini:
>   - __start is the standard for MIPS, not ARM.
>  v3: Introduce changes suggested by Daniel Schwierzeck:
>   - Add new patch.
> 
>  arch/mips/config.mk | 2 ++
>  1 file changed, 2 insertions(+)
> 

applied to u-boot-mips/next, thanks!

Patch hide | download patch | download mbox

diff --git a/arch/mips/config.mk b/arch/mips/config.mk
index dcd3460..2c72c15 100644
--- a/arch/mips/config.mk
+++ b/arch/mips/config.mk
@@ -36,6 +36,8 @@  OBJCOPYFLAGS		+= -O $(64bit-bfd)
 endif
 
 PLATFORM_CPPFLAGS += -D__MIPS__
+PLATFORM_ELFENTRY = "__start"
+PLATFORM_ELFFLAGS += -B mips $(OBJCOPYFLAGS)
 
 #
 # From Linux arch/mips/Makefile