From patchwork Thu Dec 6 23:16:00 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnout Vandecappelle X-Patchwork-Id: 204336 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id D0E572C0081 for ; Fri, 7 Dec 2012 10:16:29 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C0E728C625; Thu, 6 Dec 2012 23:16:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qoj7SpoT1J7p; Thu, 6 Dec 2012 23:16:18 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 808538C629; Thu, 6 Dec 2012 23:16:16 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 96E928F753 for ; Thu, 6 Dec 2012 23:16:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 94B618C602 for ; Thu, 6 Dec 2012 23:16:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id puOakroDk3Sk for ; Thu, 6 Dec 2012 23:16:05 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from viper.mind.be (132.79-246-81.adsl-static.isp.belgacom.be [81.246.79.132]) by whitealder.osuosl.org (Postfix) with ESMTPS id 2BCE38C60C for ; Thu, 6 Dec 2012 23:16:05 +0000 (UTC) Received: from [172.16.2.6] (helo=vandecaa-laptop) by viper.mind.be with esmtp (Exim 4.69) (envelope-from ) id 1Tgkfi-00068s-2u; Fri, 07 Dec 2012 00:16:02 +0100 Received: from arnout by vandecaa-laptop with local (Exim 4.80) (envelope-from ) id 1Tgkfg-0002TD-Dw; Fri, 07 Dec 2012 00:16:00 +0100 From: "Arnout Vandecappelle (Essensium/Mind)" To: buildroot@busybox.net Date: Fri, 7 Dec 2012 00:16:00 +0100 Message-Id: <1354835760-9357-1-git-send-email-arnout@mind.be> X-Mailer: git-send-email 1.7.10.4 Subject: [Buildroot] [PATCH] pkg-infra: add -extract and -patch targets to OVERRIDE support X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 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-bounces@busybox.net From: "Arnout Vandecappelle (Essensium/Mind)" The legal-info target (and possibly others as well) depends on -extract to make sure the license file is available. However, when _OVERRIDE_SRCDIR is active, the -extract target doesn't exist. To solve this, we add -extract which depends on -rsync. While we're at it, we do the same for -patch. That avoids the same problem in the future if something starts depending on -patch. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) Acked-by: Thomas Petazzoni Acked-by: Luca Ceresoli --- v2: As ThomasP suggested, don't remove -rsync. --- package/pkg-generic.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index 6fcd359..13c1d83 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -390,6 +390,9 @@ $(1)-configure: $(1)-depends \ $(1)-depends: $(1)-rsync $$($(2)_DEPENDENCIES) +$(1)-patch: $(1)-rsync +$(1)-extract: $(1)-rsync + $(1)-rsync: $$($(2)_TARGET_RSYNC) $(1)-source: $$($(2)_TARGET_RSYNC_SOURCE)