From patchwork Sun Jul 17 10:34:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 649235 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 3rsjPH0NN3z9sR9 for ; Sun, 17 Jul 2016 20:35:15 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=ZKHkvkV+; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 8D03130AA5; Sun, 17 Jul 2016 10:35:13 +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 jgE97YNKpCHO; Sun, 17 Jul 2016 10:35:07 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id C2FF82F2E3; Sun, 17 Jul 2016 10:34:53 +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 8A03A1CF3F5 for ; Sun, 17 Jul 2016 10:34:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id D05AA8A25A for ; Sun, 17 Jul 2016 10:34:45 +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 RERel9TZKSnC for ; Sun, 17 Jul 2016 10:34:44 +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 1A5488A259 for ; Sun, 17 Jul 2016 10:34:44 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id q128so8488195wma.1 for ; Sun, 17 Jul 2016 03:34:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=1+Mh+yauoCEuFfnqfWkTljftCTotUgonoziZ704Xiy0=; b=ZKHkvkV+JDXiHInrdWBm1KrM5rQsRXPb9OhciJhak6w0BW2628+WJIlJv6ljE+xG3n W4/qWDkB55e6NP0tu92JHIVFRgzVetL7IRR4l3eUbTqPDQDI12wCgy1bsdbboYJfP+iS 5xcjUnQ0lqvZ4bLqy2fSXA8DC7c6XxzbT+OLq25jqH2nclv/47Auz6Tsrd7A+h8aQUI5 HfmJmC/NcSO9FecCgA8kKIg7PJMteblrCiL3tcRYVCqxKeyJJRuDPKYW9v5mQwDnsJVk IyUcfDZEwYsRVPr0z2cdCy35NiIe0BmO/msN+0LY8Z7/hLN+QC3xcjwvrMlxMTIdjNFc VzZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=1+Mh+yauoCEuFfnqfWkTljftCTotUgonoziZ704Xiy0=; b=L/coVYn4o4w/l/50SdlT1tgXJEgLuGoTPrEYI6cFNJU8Lyug6OMKqm1AB3eHoTGoJh JanEl3BHAu4E1k3rpY2vqbRQzU/IpjjKcY8LSOAgSRjGP5m2fvGRB9iG9cRiTQ/EyFvt aiuhG+i0p+9XJkSOxNvb2hiE2WqrarOeKDdpRlTsK29kAqMtr92BJ3S0N+ZhkbLWBAQo iEqVd4E0+VnhBhZDMWU9tQ52KXzztNG1jAtpAz89BVcdhofzXdVJYwApXB7TI0Sy1wOb /WcNd2KkEEC8NknLyAPeEAIhvWVvh7FXlCgM+jqzY9scUsiNTRxexWxppjFv12Ryg1aI RIug== X-Gm-Message-State: ALyK8tIOQZYdzTUYDTa/3QPrTqhKT/jFx85c2lOUjzoW+d9EJnyxaUSmVSMa+7UT2Gbp/g== X-Received: by 10.28.167.144 with SMTP id q138mr29615554wme.83.1468751682728; Sun, 17 Jul 2016 03:34:42 -0700 (PDT) Received: from gourin.bzh.lan (ns304657.ip-46-105-103.eu. [46.105.103.66]) by smtp.gmail.com with ESMTPSA id o142sm7075218wme.20.2016.07.17.03.34.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 17 Jul 2016 03:34:41 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Sun, 17 Jul 2016 12:34:23 +0200 Message-Id: <8b101d01b6a1c1aaadde0649c82fba5db2c511f1.1468750623.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Cc: Thomas Petazzoni , "Yann E. MORIN" Subject: [Buildroot] [PATCH 03/16 v3] doc/asciidoc: add possibility to define document 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" Currently, a document can not have dependencies, except for the purely internal ones (like checking asciidoc version, and presence of dblatex). For our own manual, this will come in handy when we introduce a generated kconfig snippet, so we can actually make the manual depend on that snippet being generated first. For external documents, it can be used to depend on host-packages if need be (e.g. a custom host packages that generates specific media files included in the manual). Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni Cc: Samuel Martin Cc: Thomas De Schampheleire Reviewed-by: Romain Naour --- docs/manual/adding-packages-asciidoc.txt | 3 +++ package/doc-asciidoc.mk | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/manual/adding-packages-asciidoc.txt b/docs/manual/adding-packages-asciidoc.txt index 6e21786..0c10fd1 100644 --- a/docs/manual/adding-packages-asciidoc.txt +++ b/docs/manual/adding-packages-asciidoc.txt @@ -63,6 +63,9 @@ information is (assuming the document name is +foo+) : to one or more directories containing so-called resources (like CSS or images). By default, empty. +* +FOO_DEPENDENCIES+, optional, the list of packages (most probably, + host-packages) that must be built before building this document. + There are also additional hooks (see xref:hooks[] for general information on hooks), that a document may set to define extra actions to be done at various steps: diff --git a/package/doc-asciidoc.mk b/package/doc-asciidoc.mk index 6ab5ad2..ede6ed1 100644 --- a/package/doc-asciidoc.mk +++ b/package/doc-asciidoc.mk @@ -140,7 +140,7 @@ endef ################################################################################ define ASCIIDOC # Single line, because splitting a foreach is not easy... -$(1)-check-dependencies: asciidoc-check-dependencies +$(1)-check-dependencies: asciidoc-check-dependencies $$($(2)_DEPENDENCIES) $$(Q)$$(foreach hook,$$($(2)_CHECK_DEPENDENCIES_HOOKS),$$(call $$(hook))$$(sep)) # Single line, because splitting a foreach is not easy...