From patchwork Sun Mar 29 17:33:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 455881 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 9DFC014012F for ; Mon, 30 Mar 2015 04:35:08 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id BF80991888; Sun, 29 Mar 2015 17:35:07 +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 6HEPglZRl3GE; Sun, 29 Mar 2015 17:35:02 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 36B8591700; Sun, 29 Mar 2015 17:34:25 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id E0FF61CEC87 for ; Sun, 29 Mar 2015 17:34:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id DC48B32DD6 for ; Sun, 29 Mar 2015 17:34:02 +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 ANJ-0U7lEEYq for ; Sun, 29 Mar 2015 17:34:02 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.free-electrons.com (down.free-electrons.com [37.187.137.238]) by silver.osuosl.org (Postfix) with ESMTP id 07F5D2F092 for ; Sun, 29 Mar 2015 17:34:02 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 106) id 9C672364; Sun, 29 Mar 2015 19:34:09 +0200 (CEST) Received: from localhost (AToulouse-657-1-992-70.w109-215.abo.wanadoo.fr [109.215.10.70]) by mail.free-electrons.com (Postfix) with ESMTPSA id 63595127; Sun, 29 Mar 2015 19:34:09 +0200 (CEST) From: Thomas Petazzoni To: buildroot@uclibc.org Date: Sun, 29 Mar 2015 19:33:24 +0200 Message-Id: <1427650429-9293-11-git-send-email-thomas.petazzoni@free-electrons.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1427650429-9293-1-git-send-email-thomas.petazzoni@free-electrons.com> References: <1427650429-9293-1-git-send-email-thomas.petazzoni@free-electrons.com> Cc: Thomas Petazzoni Subject: [Buildroot] [PATCH 10/35] pkg-generic: implement a -external-deps target 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" This commit implements a new -external-deps target in the pkg-generic package infrastructure. This target simply displays the list of file names that are needed for to build (source tarball, patches, extra downloads). In the case of the usage of _OVERRIDE_SRCDIR, the path to the overriden source directory is displayed, prepended by file://. This matches what the code is currently doing in .stamp_rsync_sourced. This new target is not currently being used in this commit, but followup commits will make use of it. Signed-off-by: Thomas Petazzoni Reviewed-by: "Yann E. MORIN" --- package/pkg-generic.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index 22b3fb9..08e4cad 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -546,6 +546,11 @@ $$($(2)_TARGET_EXTRACT): $$($(2)_TARGET_SOURCE) $(1)-depends: $$($(2)_FINAL_DEPENDENCIES) $(1)-source: $$($(2)_TARGET_SOURCE) + +$(1)-external-deps: + @for p in $$($(2)_SOURCE) $$($(2)_PATCH) $$($(2)_EXTRA_DOWNLOADS) ; do \ + echo `basename $$$$p` ; \ + done else # In the package override case, the sequence of steps # source, by rsyncing @@ -564,6 +569,9 @@ $(1)-extract: $(1)-rsync $(1)-rsync: $$($(2)_TARGET_RSYNC) $(1)-source: $$($(2)_TARGET_RSYNC_SOURCE) + +$(1)-external-deps: + @echo "file://$$($(2)_OVERRIDE_SRCDIR)" endif $(1)-show-version: