From patchwork Tue May 8 20:40:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 910458 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@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; dmarc=none (p=none dis=none) header.from=free.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="QS0rMgki"; 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 40gWb805vlz9s37 for ; Wed, 9 May 2018 06:40:35 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 0E7C421F68; Tue, 8 May 2018 20:40:34 +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 d5JjwRcfh-3y; Tue, 8 May 2018 20:40:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id C1D1025048; Tue, 8 May 2018 20:40:32 +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 89ED51C26CB for ; Tue, 8 May 2018 20:40:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8772488648 for ; Tue, 8 May 2018 20:40:27 +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 1YMH+T1BQH6o for ; Tue, 8 May 2018 20:40:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by hemlock.osuosl.org (Postfix) with ESMTPS id BB41E885DB for ; Tue, 8 May 2018 20:40:26 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id x12-v6so20594915wmc.0 for ; Tue, 08 May 2018 13:40:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=2RZY9IXSY+YNe+R3MRBqHbWpeWOMP3x1byfy9xl8qhU=; b=QS0rMgkiXNtZPEtIrX/HALdleTkNPm5Dw2mtG1L9xK1aPHdZHA/sGYSJRYDDo5AZzc UX7ngBREk6Exm5dcM6AzjNEJmUmTS7mZJN/Ltai22rkAms3ZwAFlGEqIgkCR4lYEDsw7 5ngNHF4/AtSxYTr16Wn1DlQ7ZqD+jDMMEBAvat8l8LiNR3waf5pFI4sMg7//dCmNLiOK kKVps2wKsRkse5mqr6qgT5zG8ZYuwt+sz9YhO5TwOWKfuCW62BIrMf4Ws+ZetQHV6DbC A4u/ynrabkyF6PUT/8wTKl+xLxNiS+jRnYOdl34csaDnIEPDI2AovvfzH0BnKLIqUPdo 5qFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=2RZY9IXSY+YNe+R3MRBqHbWpeWOMP3x1byfy9xl8qhU=; b=sDO2q/MSxj/UiSqfbUCZ45JEOyhXfQP73ox1ycYgITvMr10ij4wUq1aCoadRL+hBXt k/5arrMcmIGhD1b+G7L8YeEuterkO32mgG7bsoEywuEnQy9Vpl/fAPGwUZCz3Iv+DvfK Eu+9hIweIQURy1JneOfELzh+u41SkZz7L+4xRsBrjFF7b6BlyBQ63bkOvTDvtnrOzu6g x8Htl0q8zgFLNG7yT2Bn1JJLm6jYXi3kd2USgQZnNyTwxBTh7JRm7woyv/dFXHVRrkPi NHYIiUqXQcuwGkYqodP15Ilp1r1D+L+cwhoGPeYiLJbKou9CcCT77pOdP0JEwOgpNOUu 3szw== X-Gm-Message-State: ALKqPwe9EYyDcNG5jML1tumFU3is/Np1tr3FhuWlZO43RcfS6kSZTPSn mMjU8SXo5wcJIX/7ernniv8v0Q== X-Google-Smtp-Source: AB8JxZo5fnySVvaoH+FdNiwh3R0OQ/4KCAOx7oJjUdmM9BjHjC/LVA07lzLRezs01VLYblSZHbUSMQ== X-Received: by 10.28.13.202 with SMTP id 193mr4003634wmn.36.1525812025138; Tue, 08 May 2018 13:40:25 -0700 (PDT) Received: from scaer.bzh.lan (2a01cb0886107300517c0c28e3b77189.ipv6.abo.wanadoo.fr. [2a01:cb08:8610:7300:517c:c28:e3b7:7189]) by smtp.gmail.com with ESMTPSA id v75-v6sm38772308wrc.65.2018.05.08.13.40.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 May 2018 13:40:24 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Tue, 8 May 2018 22:40:18 +0200 Message-Id: <3af4779f52443d88c1c324e847403de63a206efe.1525812011.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 2.14.1 In-Reply-To: References: Subject: [Buildroot] [PATCH 5/7 v2] core/package: add possibility to declare download dependencies 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: "Yann E. MORIN" , Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" For some packages, we may need to have a certain set of host-tools built before the download of said packages are attempted. For example, when the system tar is not suitable, we will want to build our own tar before we attempt a git download (because we generate a tarball in the git backend). Mimick the _EXTRACT_DEPENDENCIES, and introduce _DOWNLOAD_DEPENDENCIES. As for _EXTRACT_DEPENDENCIES, we do not document _DOWNLOAD_DEPENDENCIES, on the assumption that it is mostly for internal use. Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni Cc: Arnout Vandecappelle Cc: Peter Korsgaard --- package/pkg-generic.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index 9d1fec396a..78aa751b0d 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -593,11 +593,13 @@ endif # Eliminate duplicates in dependencies $(2)_FINAL_DEPENDENCIES = $$(sort $$($(2)_DEPENDENCIES)) +$(2)_FINAL_DOWNLOAD_DEPENDENCIES = $$(sort $$($(2)_DOWNLOAD_DEPENDENCIES)) $(2)_FINAL_EXTRACT_DEPENDENCIES = $$(sort $$($(2)_EXTRACT_DEPENDENCIES)) $(2)_FINAL_PATCH_DEPENDENCIES = $$(sort $$($(2)_PATCH_DEPENDENCIES)) $(2)_FINAL_ALL_DEPENDENCIES = \ $$(sort \ $$($(2)_FINAL_DEPENDENCIES) \ + $$($(2)_FINAL_DOWNLOAD_DEPENDENCIES) \ $$($(2)_FINAL_EXTRACT_DEPENDENCIES) \ $$($(2)_FINAL_PATCH_DEPENDENCIES)) @@ -730,6 +732,7 @@ $$($(2)_TARGET_EXTRACT): | $$($(2)_FINAL_EXTRACT_DEPENDENCIES) $(1)-depends: $$($(2)_FINAL_DEPENDENCIES) $(1)-source: $$($(2)_TARGET_SOURCE) +$$($(2)_TARGET_SOURCE): | $$($(2)_FINAL_DOWNLOAD_DEPENDENCIES) $(1)-all-source: $(1)-legal-source $(1)-legal-info: $(1)-legal-source