mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Roland Hieber <rhi@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Roland Hieber <rhi@pengutronix.de>
Subject: [ptxdist] [PATCH] doc: ref manual: document {HOST_, CROSS_, EXTRA_, }PACKAGES{-y, -m, } variables
Date: Fri, 11 Jan 2019 14:41:48 +0100	[thread overview]
Message-ID: <20190111134148.25223-1-rhi@pengutronix.de> (raw)

Some of them are already mentioned in the developer manual part, but it
makes sense to have all of them in the reference too.

Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 doc/multi_image_platforms.inc |  2 ++
 doc/ref_manual.rst            | 25 +++++++++++++++++++++++++
 2 files changed, 27 insertions(+)

diff --git a/doc/multi_image_platforms.inc b/doc/multi_image_platforms.inc
index 2010f1262..a90393839 100644
--- a/doc/multi_image_platforms.inc
+++ b/doc/multi_image_platforms.inc
@@ -28,6 +28,8 @@ how to create a new package.
 .. note:: PTXdist looks in ``patches/$(<PKG>)`` for the patches. Symlinks
   can be uses to share the patch stack across multiple bootloader packages.
 
+.. _multi_image_individual_root_filesystems:
+
 Creating Individual Root-Filesystems for each Variant
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
diff --git a/doc/ref_manual.rst b/doc/ref_manual.rst
index 74bf84b5c..e1e14f746 100644
--- a/doc/ref_manual.rst
+++ b/doc/ref_manual.rst
@@ -105,6 +105,31 @@ Other useful variables:
   ``PTXDIST_PLATFORMDIR`` points to the directory build tree of the
   currently selected platform.
 
+``PACKAGES``, ``PACKAGES-y``, ``PACKAGES-m``
+  ``PACKAGES`` is a list of space-separated lowercase package names that are
+  built and installed during the PTXdist build run, and installed into the
+  target root filesystem when building images.
+
+  The ``-y`` variant contains only those packages that are selected with
+  ``PTXCONF_<PKG>=y``, while the ``-m`` variant contains only those which are
+  selected with ``PTXCONF_<PKG>=m`` (used for collections).
+  A target package rule usually adds its name to one of those variables if it
+  has been selected.
+  The union of those two sets then ends up in ``PACKAGES``.
+
+``EXTRA_PACKAGES``, ``EXTRA_PACKAGES-y``, ``EXTRA_PACKAGES-m``
+  In analogy to ``PACKAGES``, target packages that are added to these lists will
+  be built normally during the build run.
+  In contrast however, they are not installed into a root filesystem by default
+  when building images, and image rules must request them explicitely.
+  This is useful for specialized packages that are only needed for specific
+  images, see :ref:`multi_image_individual_root_filesystems`.
+
+``HOST_PACKAGES``, ``CROSS_PACKAGES``
+  Similar to ``PACKAGES``, these variables contain the host and cross packages
+  that are built and installed during the PTXdist build run.
+  There are analogous ``-y`` and ``-m`` variants of those variables too.
+
 Package Specific Variables
 ~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

                 reply	other threads:[~2019-01-11 13:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190111134148.25223-1-rhi@pengutronix.de \
    --to=rhi@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox