Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] post-build: reimplement using a for loop and make verbose
@ 2013-04-03  8:28 Luca Ceresoli
  2013-04-03  8:32 ` Thomas Petazzoni
  2013-04-04  1:35 ` Danomi Manchego
  0 siblings, 2 replies; 5+ messages in thread
From: Luca Ceresoli @ 2013-04-03  8:28 UTC (permalink / raw)
  To: buildroot

Make the post-build system similar to the rootfs overlay system. This allows to
show each script filename before execution.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
---
 Makefile |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile
index c95bb1e..69996bc 100644
--- a/Makefile
+++ b/Makefile
@@ -509,11 +509,10 @@ endif
 			$${dir}/ $(TARGET_DIR); \
 	done
 
-ifneq ($(BR2_ROOTFS_POST_BUILD_SCRIPT),"")
-	@$(call MESSAGE,"Executing post-build script\(s\)")
-	@$(foreach s, $(call qstrip,$(BR2_ROOTFS_POST_BUILD_SCRIPT)), \
-		$(s) $(TARGET_DIR)$(sep))
-endif
+	@for scr in $(call qstrip,$(BR2_ROOTFS_POST_BUILD_SCRIPT)); do \
+		$(call MESSAGE,"Executing post-build script $${scr}"); \
+		$${scr} $(TARGET_DIR); \
+	done
 
 ifeq ($(BR2_ENABLE_LOCALE_PURGE),y)
 LOCALE_WHITELIST=$(BUILD_DIR)/locales.nopurge
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-04-08 16:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-03  8:28 [Buildroot] [PATCH] post-build: reimplement using a for loop and make verbose Luca Ceresoli
2013-04-03  8:32 ` Thomas Petazzoni
2013-04-07 13:58   ` Luca Ceresoli
2013-04-04  1:35 ` Danomi Manchego
2013-04-08 16:47   ` Luca Ceresoli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox