From: "Álvaro Fernández Rojas" <noltari@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 4/4] u-boot.elf: add quiet_cmd_u-boot-elf and cmd_u-boot-elf
Date: Thu, 20 Apr 2017 20:36:28 +0200 [thread overview]
Message-ID: <1492713388-310-5-git-send-email-noltari@gmail.com> (raw)
In-Reply-To: <1492713388-310-1-git-send-email-noltari@gmail.com>
This way we can see output about u-boot.elf being built or not.
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
---
v4: Introduce changes suggested by Tom Rini:
- Add new patch to output u-boot.elf build.
Makefile | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index 6cf2568..3722b19 100644
--- a/Makefile
+++ b/Makefile
@@ -1187,11 +1187,13 @@ u-boot-img-spl-at-end.bin: u-boot.img spl/u-boot-spl.bin FORCE
ifndef PLATFORM_ELFENTRY
PLATFORM_ELFENTRY = "_start"
endif
+quiet_cmd_u-boot-elf ?= LD $@
+ cmd_u-boot-elf ?= $(LD) u-boot-elf.o -o $@ \
+ --defsym=$(PLATFORM_ELFENTRY)=$(CONFIG_SYS_TEXT_BASE) \
+ -Ttext=$(CONFIG_SYS_TEXT_BASE)
u-boot.elf: u-boot.bin
- @$(OBJCOPY) -I binary $(PLATFORM_ELFFLAGS) $< u-boot-elf.o
- @$(LD) u-boot-elf.o -o $@ \
- --defsym=$(PLATFORM_ELFENTRY)=$(CONFIG_SYS_TEXT_BASE) \
- -Ttext=$(CONFIG_SYS_TEXT_BASE)
+ $(Q)$(OBJCOPY) -I binary $(PLATFORM_ELFFLAGS) $< u-boot-elf.o
+ $(call if_changed,u-boot-elf)
# Rule to link u-boot
# May be overridden by arch/$(ARCH)/config.mk
--
2.1.4
next prev parent reply other threads:[~2017-04-20 18:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-20 18:36 [U-Boot] [PATCH v4 0/4] u-boot.elf: support other archs Álvaro Fernández Rojas
2017-04-20 18:36 ` [U-Boot] [PATCH v4 1/4] u-boot.elf: remove hard-coded arm64 flags Álvaro Fernández Rojas
2017-04-30 18:41 ` Daniel Schwierzeck
2017-04-20 18:36 ` [U-Boot] [PATCH v4 2/4] u-boot.elf: allow overriding entry symbol Álvaro Fernández Rojas
2017-04-20 19:57 ` Tom Rini
2017-04-30 18:41 ` Daniel Schwierzeck
2017-04-20 18:36 ` [U-Boot] [PATCH v4 3/4] MIPS: add support for generating u-boot.elf Álvaro Fernández Rojas
2017-04-30 18:41 ` Daniel Schwierzeck
2017-04-20 18:36 ` Álvaro Fernández Rojas [this message]
2017-04-20 20:06 ` [U-Boot] [PATCH v4 4/4] u-boot.elf: add quiet_cmd_u-boot-elf and cmd_u-boot-elf Tom Rini
2017-04-30 18:41 ` Daniel Schwierzeck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1492713388-310-5-git-send-email-noltari@gmail.com \
--to=noltari@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox