All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] buildroot: Add POST_RSYNC_HOOKS support
@ 2013-07-27 16:56 Tzu-Jung Lee
  2013-07-28  8:19 ` Thomas De Schampheleire
  0 siblings, 1 reply; 4+ messages in thread
From: Tzu-Jung Lee @ 2013-07-27 16:56 UTC (permalink / raw)
  To: buildroot

One of the use cases is for the 'local packages' to restore
the SCM info.  Some packages use this information to generate
version info during build time.  In this case, the local package
can have this hook to restore it by symbolic link for example.

Signed-off-by: Tzu-Jung Lee <tjlee@ambarella.com>
---
 package/pkg-generic.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index d9a12f2..06e865d 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -63,6 +63,7 @@ $(BUILD_DIR)/%/.stamp_rsynced:
 	@$(call MESSAGE,"Syncing from source dir $(SRCDIR)")
 	@test -d $(SRCDIR) || (echo "ERROR: $(SRCDIR) does not exist" ; exit 1)
 	rsync -au --cvs-exclude --include core $(SRCDIR)/ $(@D)
+	$(foreach hook,$($(PKG)_POST_RSYNC_HOOKS),$(call $(hook))$(sep))
 	$(Q)touch $@
 
 # Handle the SOURCE_CHECK and SHOW_EXTERNAL_DEPS cases for rsynced
-- 
1.8.3.2

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

end of thread, other threads:[~2013-08-12 15:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-27 16:56 [Buildroot] [PATCH] buildroot: Add POST_RSYNC_HOOKS support Tzu-Jung Lee
2013-07-28  8:19 ` Thomas De Schampheleire
2013-07-28  8:54   ` [Buildroot] [PATCH v2] " Tzu-Jung Lee
2013-08-12 15:58     ` Arnout Vandecappelle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.