Patchwork [1/1] <pkg>-rsync: support user custom cmds

login
register
mail settings
Submitter Tzu-Jung Lee
Date May 21, 2013, 9:56 a.m.
Message ID <1369130172-15455-1-git-send-email-tjlee@ambarella.com>
Download mbox | patch
Permalink /patch/245240/
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 | 4 ++++
 1 file changed, 4 insertions(+)

Patch

diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index 56fca6b..147e0de 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -311,6 +311,10 @@  $(2)_INSTALL_IMAGES		?= NO
 $(2)_INSTALL_TARGET		?= YES
 $(2)_DIR_PREFIX			= $(if $(4),$(4),$(TOP_SRCDIR)/package)
 
+# default rsync command
+$(2)_RSYNC_CMDS ?= \
+	rsync -au --cvs-exclude --include core $(SRCDIR)/ $(@D)
+
 # define sub-target stamps
 $(2)_TARGET_INSTALL_TARGET =	$$($(2)_DIR)/.stamp_target_installed
 $(2)_TARGET_INSTALL_STAGING =	$$($(2)_DIR)/.stamp_staging_installed