From patchwork Tue Nov 7 01:57:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Perez de Castro X-Patchwork-Id: 835068 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=igalia.com header.i=@igalia.com header.b="Ankw/pNW"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yWCHn0Lx9z9s7C for ; Tue, 7 Nov 2017 12:57:55 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 41EEB2D42A; Tue, 7 Nov 2017 01:57:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OnNwrixCU-T9; Tue, 7 Nov 2017 01:57:48 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id EBA172D3C8; Tue, 7 Nov 2017 01:57:47 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 4368D1CEBE8 for ; Tue, 7 Nov 2017 01:57:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 35C3688996 for ; Tue, 7 Nov 2017 01:57:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ahWe86Sn1kCL for ; Tue, 7 Nov 2017 01:57:45 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from fanzine.igalia.com (fanzine.igalia.com [91.117.99.155]) by hemlock.osuosl.org (Postfix) with ESMTPS id EF29A88981 for ; Tue, 7 Nov 2017 01:57:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Message-Id:Date:Subject:Cc:To:From; bh=jXtciz2MqNFAQvwXQtxb6dl4w1K6osB52zlS/NEvR1k=; b=Ankw/pNW775kwU4cx0eUgHC764pk0jSIwFg7vRh22ltajmgxlWnP+GfK80FgJBY3BCIdluocpJvXp0Ci8P33/ypIoXhZN2njW0Pc/aU3uCuZuIPWlYkfc8GfQQK6EelvLznMs5TuSLX127dC978Ds5S6B+QlMonivFA37Oi/5w3+PLsILSXUQoS3C+V7My0BwQnoKbAGrlnYYlDmdS7DORVllA4GxgsDNwKcsjgDGd6ybbp0M74LLXtKX9ilR3g/R+rZtVStm13skf/3QfCMG0gNC843+GBEd7usPk544P8tBkLN+o58kj035pzqc9O6PQTZnObF+e9NVKTxRkNmJw==; Received: from 82-181-162-35.bb.dnainternet.fi ([82.181.162.35] helo=momiji) by fanzine.igalia.com with esmtpsa (Cipher TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) id 1eBt92-0000c8-Sa; Tue, 07 Nov 2017 02:57:41 +0100 Received: from localhost (momiji [local]) by momiji (OpenSMTPD) with ESMTPA id f23a6c1f; Tue, 7 Nov 2017 01:57:30 +0000 (UTC) From: Adrian Perez de Castro To: buildroot@buildroot.org Date: Tue, 7 Nov 2017 03:57:30 +0200 Message-Id: <20171107015730.20311-1-aperez@igalia.com> X-Mailer: git-send-email 2.15.0 Subject: [Buildroot] [PATCH 1/1] Allow adding per-package overrlice rsync exclusions X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This allows using _SRCDIR_OVERRIDE_RSYNC_EXCLUSIONS in local.mk to skip copying parts of source trees unneeded for building. For example, when developing WebKitGTK+, it's handy to skip copying all the tests and other build directories, which are huge: WEBKITGTK_OVERRIDE_SRCDIR = /home/aperez/WebKit WEBKITGTK_OVERRIDE_SRCDIR_RSYNC_EXCLUSIONS = \ --exclude JSTests --exclude ManualTests \ --exclude PerformanceTests --exclude WebDriverTests \ --exclude WebKitBuild --exclude WebKitLibraries \ --exclude WebKit.xcworkspace --exclude Websites \ --exclude Examples This saves a good chunk of time when rsync is used for the first time to copy the source tree over before building. Signed-off-by: Adrian Perez de Castro Reviewed-by: Arnout Vandecappelle (Essensium/Mind) --- 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 0e28675fbe..c895afc498 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -181,7 +181,7 @@ $(BUILD_DIR)/%/.stamp_rsynced: @$(call MESSAGE,"Syncing from source dir $(SRCDIR)") $(foreach hook,$($(PKG)_PRE_RSYNC_HOOKS),$(call $(hook))$(sep)) @test -d $(SRCDIR) || (echo "ERROR: $(SRCDIR) does not exist" ; exit 1) - rsync -au --chmod=u=rwX,go=rX $(RSYNC_VCS_EXCLUSIONS) $(call qstrip,$(SRCDIR))/ $(@D) + rsync -au --chmod=u=rwX,go=rX $(RSYNC_VCS_EXCLUSIONS) $($(PKG)_OVERRIDE_SRCDIR_RSYNC_EXCLUSIONS) $(call qstrip,$(SRCDIR))/ $(@D) $(foreach hook,$($(PKG)_POST_RSYNC_HOOKS),$(call $(hook))$(sep)) $(Q)touch $@