summaryrefslogtreecommitdiffstats
path: root/doc/dev_manual.rst
diff options
context:
space:
mode:
authorRoland Hieber <rhi@pengutronix.de>2019-10-08 12:07:56 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-10-08 17:36:18 +0200
commite5fbe654a4814d396eb4a535b89856e574898991 (patch)
tree4db0e1614921a83a9ab17dc53e470e404d56b244 /doc/dev_manual.rst
parentdcbc9e1e132f50f2b95ce15407289a636eea71c8 (diff)
downloadptxdist-e5fbe654a4814d396eb4a535b89856e574898991.tar.gz
ptxdist-e5fbe654a4814d396eb4a535b89856e574898991.tar.xz
doc: dev/ref manual: describe the <PKG>_PATCHES variable
Fixes: 2e2242356f0bc72a56bc ("ptxd_make_world_patchin: allow specifying a custom patch directory") Signed-off-by: Roland Hieber <rhi@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'doc/dev_manual.rst')
-rw-r--r--doc/dev_manual.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/dev_manual.rst b/doc/dev_manual.rst
index c37094090..29d1cbf1d 100644
--- a/doc/dev_manual.rst
+++ b/doc/dev_manual.rst
@@ -1265,7 +1265,10 @@ integrated into your BSP or into PTXdist.
PTXdist handles patching automatically.
After extracting the archive of a package, PTXdist checks for the existence of
-a patch directory named like its ``<PKG>`` variable.
+a patch directory named like its ``<PKG>_PATCHES`` variable, or, if this variable
+is not set, like its ``<PKG>`` variable.
+The patch directory is then searched in all locations listed by the
+``PTXDIST_PATH_PATCHES`` variable, and the first one found is used.
Take an exemplary package ``foo`` with version ``1.1.0``:
The variable ``FOO`` will have the value ``foo-1.1.0``, so PTXdist will look for
a patch directory named ``foo-1.1.0`` in the following locations: