Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/pkg-generic.mk: add --delete to rsync
@ 2014-10-10  9:14 Alvaro G. M
  2014-10-10 10:36 ` Thomas Petazzoni
  2014-10-12 16:26 ` Thomas Petazzoni
  0 siblings, 2 replies; 7+ messages in thread
From: Alvaro G. M @ 2014-10-10  9:14 UTC (permalink / raw)
  To: buildroot

When a source overriden package is built and then its source code is modified
and rebuilt with make package-rebuild, it is needed for the build directory
to contain exactly the same source that is in the original directory,
so rsync must not only copy missing files, but also remove those that existed
previously but now don't.

Signed-off-by: Alvaro G. M <alvaro.gamez@hazent.com>
---
 package/pkg-generic.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index f09f83e..440a750 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -117,7 +117,7 @@ $(BUILD_DIR)/%/.stamp_rsynced:
 	@$(call MESSAGE,"Syncing from source dir $(SRCDIR)")
 	@test -d $(SRCDIR) || (echo "ERROR: $(SRCDIR) does not exist" ; exit 1)
 	$(foreach hook,$($(PKG)_PRE_RSYNC_HOOKS),$(call $(hook))$(sep))
-	rsync -au $(RSYNC_VCS_EXCLUSIONS) $(SRCDIR)/ $(@D)
+	rsync --delete -au $(RSYNC_VCS_EXCLUSIONS) $(SRCDIR)/ $(@D)
 	$(foreach hook,$($(PKG)_POST_RSYNC_HOOKS),$(call $(hook))$(sep))
 	$(Q)touch $@
 
-- 
2.1.1

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

end of thread, other threads:[~2014-10-12 16:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-10  9:14 [Buildroot] [PATCH 1/1] package/pkg-generic.mk: add --delete to rsync Alvaro G. M
2014-10-10 10:36 ` Thomas Petazzoni
2014-10-10 10:45   ` Alvaro Gamez
2014-10-10 13:33     ` Thomas Petazzoni
2014-10-12 16:26 ` Thomas Petazzoni
2014-10-12 16:37   ` Alvaro Gamez
2014-10-12 16:55     ` Thomas Petazzoni

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