[PATCH 4/4] ARM: zynq: Add cmd to generate zynq image
Sascha Hauer
s.hauer at pengutronix.de
Sat May 25 09:32:21 EDT 2013
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 at 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
More information about the barebox
mailing list