Patchwork [1/1] buildroot: Add POST_RSYNC_HOOKS support

login
register
mail settings
Submitter Tzu-Jung Lee
Date May 21, 2013, 9:56 a.m.
Message ID <1369130203-15551-1-git-send-email-tjlee@ambarella.com>
Download mbox | patch
Permalink /patch/245242/
State Superseded
Headers show

Comments

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

Patch

diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index 147e0de..33d14a6 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