mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 4/4] ARM: zynq: Add cmd to generate zynq image
Date: Sat, 25 May 2013 15:32:21 +0200	[thread overview]
Message-ID: <1369488741-4313-5-git-send-email-s.hauer@pengutronix.de> (raw)
In-Reply-To: <1369488741-4313-1-git-send-email-s.hauer@pengutronix.de>

Add a command to generate the zynq image instead of generating it
directly. This causes a rebuild exactly when necessary and prints
a "ZYNQ-IMG" to the commandline during compilation.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 arch/arm/Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 9bfa2c7..90a4713 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -246,8 +246,11 @@ ifeq ($(CONFIG_OMAP_BUILD_SPI),y)
 KBUILD_IMAGE := barebox.spi
 endif
 
-barebox.zynq: $(KBUILD_BINARY)
-	$(Q)scripts/zynq_mkimage $< $@
+quiet_cmd_zynq_image = ZYNQ-IMG $@
+      cmd_zynq_image = scripts/zynq_mkimage $< $@
+
+barebox.zynq: $(KBUILD_BINARY) FORCE
+	$(call if_changed,zynq_image)
 
 ifeq ($(machine-y),zynq)
 KBUILD_IMAGE := barebox.zynq
-- 
1.8.2.rc2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      parent reply	other threads:[~2013-05-25 13:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-25 13:32 [PATCH] Make dependency fixes Sascha Hauer
2013-05-25 13:32 ` [PATCH 1/4] pbl: Fix typo in make causing pbl files to be rebuilt Sascha Hauer
2013-05-25 13:32 ` [PATCH 2/4] ARM: pbl: fix make dependencies Sascha Hauer
2013-05-25 13:32 ` [PATCH 3/4] make: Add barebox_default_env.* to targets Sascha Hauer
2013-05-25 13:32 ` Sascha Hauer [this message]

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=1369488741-4313-5-git-send-email-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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