[PATCH] ARM Makefile: switch to kbuild command definition for mkublheader

Jan Luebbe jlu at pengutronix.de
Thu Sep 6 11:23:49 EDT 2012


Signed-off-by: Jan Luebbe <jlu at pengutronix.de>
---
 arch/arm/Makefile |   11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 67fe5cf..13222f4 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -203,10 +203,13 @@ KBUILD_TARGET := MLO
 KBUILD_IMAGE := MLO
 endif
 
-barebox.ubl: $(KBUILD_BINARY)
-	@echo "  UBL    " $@
-	$(Q)scripts/mkublheader $< > barebox.ubl
-	$(Q)cat $< >> barebox.ubl
+quiet_cmd_davinci_ubl_image = UBL-IMG $@
+      cmd_davinci_ubl_image = set -e; \
+	 scripts/mkublheader $< > $@; \
+	 cat $< >> $@
+
+barebox.ubl: $(KBUILD_BINARY) FORCE
+	$(call if_changed,davinci_ubl_image)
 
 ifeq ($(CONFIG_ARCH_DAVINCI),y)
 KBUILD_TARGET := barebox.ubl
-- 
1.7.10.4




More information about the barebox mailing list