diff options
author | Roland Hieber <r.hieber@pengutronix.de> | 2017-11-27 12:57:08 +0100 |
---|---|---|
committer | Roland Hieber <r.hieber@pengutronix.de> | 2018-10-09 15:15:35 +0200 |
commit | 1d6cc923eb4ea190fcdf947b28c609b69a60f4e6 (patch) | |
tree | 73f993933f1ac905cf707ca3cb8ea502a8edfbbc | |
parent | 140a1b1f4d9d0967540b6602a23ff1b6f1399293 (diff) | |
download | ptxdist-1d6cc923eb4ea190fcdf947b28c609b69a60f4e6.tar.gz ptxdist-1d6cc923eb4ea190fcdf947b28c609b69a60f4e6.tar.xz |
docs: ref_manual: document macros extract, world/patchin
Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
-rw-r--r-- | doc/ref_manual.rst | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/doc/ref_manual.rst b/doc/ref_manual.rst index 4b250506d..e1b2369d5 100644 --- a/doc/ref_manual.rst +++ b/doc/ref_manual.rst @@ -617,6 +617,53 @@ Example: If you want to download multiple files in the *get* stage, have a look at the section `Downloading Multiple Source Files`_. +Extract Stage Macros +~~~~~~~~~~~~~~~~~~~~ + +extract +^^^^^^^ + +Usage: + +.. code-block:: make + + $(call extract, <prefix>) + +Extracts the source archive ``$(<prefix>_SOURCE)`` to the folder +``$(<prefix>_DIR)``.[fn_world_extract]_ + +.. [fn_world_extract] As it operates on ``<prefix>``, this macro should better + be called *world/extract*, but for historic reasons it isn't. + +Does nothing if ``<prefix>_DIR`` is unset, or if ``$(<prefix>_URL)`` and +``$(<prefix>_SOURCE)`` are empty. + +If ``$(<prefix>_URL)`` starts with ``file://``, ``$(<prefix>_DIR)`` is created +as a symlink to ``$(<prefix>_URL)``. + +Have a look at the `extract Stage Default Rule`_ for an example. + +.. _world_patchin: + +world/patchin +^^^^^^^^^^^^^ + +Usage: + +.. code-block:: make + + $(call world/patchin, <prefix>) + +Looks for a series file and patches in any of the patch folders (see `Patch +Series`_) and applies them to the extracted source in ``$(<prefix>_DIR)``. +If ``$(<prefix>_SERIES)`` is set, then this file is used as the series file +instead (the patch files are still searched in any of the patch folders). + +Does nothing if ``$(<prefix>_URL)`` starts with ``file://``, or if +``$(<prefix>_URL)`` and ``$(<prefix>_SOURCE)`` are empty. + +Have a look at the `extract Stage Default Rule`_ for an example. + Target-Install Stage Macros ~~~~~~~~~~~~~~~~~~~~~~~~~~~ |