From patchwork Tue Jun 16 13:21:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony Viallard X-Patchwork-Id: 484995 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id AEB321401AF for ; Tue, 16 Jun 2015 23:32:27 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 7B45595A3F; Tue, 16 Jun 2015 13:32:26 +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 Vzqzf+fAmFkM; Tue, 16 Jun 2015 13:32:25 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id CE21795A36; Tue, 16 Jun 2015 13:32:25 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 697551BFED7 for ; Tue, 16 Jun 2015 13:32:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 63166A2F50 for ; Tue, 16 Jun 2015 13:32:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IRR3YDUh18sH for ; Tue, 16 Jun 2015 13:32:22 +0000 (UTC) X-Greylist: delayed 00:10:46 by SQLgrey-1.7.6 Received: from smtp-sh2.infomaniak.ch (smtp-sh2.infomaniak.ch [128.65.195.6]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 7AE95A2F25 for ; Tue, 16 Jun 2015 13:32:22 +0000 (UTC) Received: from smtp3.infomaniak.ch (smtp3.infomaniak.ch [84.16.68.91]) by smtp-sh.infomaniak.ch (8.14.5/8.14.5) with ESMTP id t5GDLXxf015817 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 16 Jun 2015 15:21:33 +0200 Received: from localhost.localdomain (mail.borm.ch [213.200.221.18] (may be forged)) (authenticated bits=0) by smtp3.infomaniak.ch (8.14.5/8.14.5) with ESMTP id t5GDLUup020494 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NO); Tue, 16 Jun 2015 15:21:33 +0200 From: Anthony Viallard To: buildroot@buildroot.org Date: Tue, 16 Jun 2015 15:21:28 +0200 Message-Id: <1434460888-30770-1-git-send-email-viallard@syscom-instruments.com> X-Mailer: git-send-email 2.1.4 X-Antivirus: Dr.Web (R) for Unix mail servers drweb plugin ver.6.0.2.8 X-Antivirus-Code: 0x100000 Subject: [Buildroot] [PATCH 1/1] Force rebuild of local site packages and theirs local dependencies X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The purpose of this patch is to rebuild local site packages and theirs local dependencies if the source has changed. Therefore, if the source of a package has changed, it will be rebuild if you type make or make . Likewise, if a package has a library dependency which is local site package too and you type make , the library will be rebuild if the source has been modified. This behavior is pretty useful if you use buildroot with many of your own packages. Especially if you share these packages with a developer team through a version control system like git. Signed-off-by: Anthony Viallard --- package/pkg-generic.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index d5b29f0..929a31c 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -509,6 +509,10 @@ ifeq ($$(filter $(1),$$(DEPENDENCIES_HOST_PREREQ)),) $$($(2)_TARGET_SOURCE) $$($(2)_TARGET_RSYNC): | dependencies endif +ifeq ($$($(2)_SITE_METHOD),local) +$$($(2)_TARGET_RSYNC): $(1)-clean-for-rebuild +endif + ifeq ($$($(2)_OVERRIDE_SRCDIR),) # In the normal case (no package override), the sequence of steps is # source, by downloading