summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Hieber <r.hieber@pengutronix.de>2018-10-05 11:45:15 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-10-05 23:52:41 +0200
commit7c4ff3ea6e198f19154ff8aed885873b71660cf0 (patch)
tree522d21492aacbd74c778b905ba52d78ee445443f
parented42bbf1d159ae959e4dc6c4b32b0cd0f3dff860 (diff)
downloadptxdist-7c4ff3ea6e198f19154ff8aed885873b71660cf0.tar.gz
ptxdist-7c4ff3ea6e198f19154ff8aed885873b71660cf0.tar.xz
doc: dev_manual: improve Patch Series section
A list is better readable here than prose. Signed-off-by: Roland Hieber <r.hieber@pengutronix.de> [mol: keep using ptxdistPlatformConfigDir] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--doc/dev_manual.rst28
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/dev_manual.rst b/doc/dev_manual.rst
index a461f6851..f3dc00e9e 100644
--- a/doc/dev_manual.rst
+++ b/doc/dev_manual.rst
@@ -55,7 +55,7 @@ fail compiling some files, use wrong include paths or try to link
against host libraries. To be successful in the embedded world, these
types of failures must be fixed. If required, PTXdist provides such
fixes per package. They are organized in *patch series* and can be found
-in the ``patches/`` directory within a subdirectory using the same name
+in a ``patches/`` directory within a subdirectory using the same name
as the package itself.
PTXdist uses the utility ``patch`` or ``quilt`` (or ``git`` on demand) to apply
@@ -65,26 +65,26 @@ which the patches must be applied.
.. note:: Patches can be compressed.
-Besides the ``patches/`` directory at the main installation location,
-PTXdist searches two additional locations for a patch series for the
-package in question.
+Patches are looked for at several locations:
-One location is the project’s currently used platform directory. If the
-currently used platform is located in ``configs/``, PTXdist searches in
-./configs/|ptxdistPlatformConfigDir|/patches/<package name>
+1. the ``patches/`` folder in your BSP (``${PTXDIST_WORKSPACE}/patches``)
-If no patch series was found in the platform directory, the next
-location PTXdist it searches for a patch series is the main project
-directory in ``./patches/<package name>``.
+2. the folder ``patches/`` folder relative to your selected platformconfig
+ file (``${PTXDIST_PLATFORMCONFIGDIR}/patches``). If your platformconfig
+ file is at ``configs/|ptxdistPlatformConfigDir|/platformconfig``, this
+ patch folder will be ``configs/|ptxdistPlatformConfigDir|/patches/``.
-If both project local locations do not provide a patch series for the
-specific package, PTXdist falls back to the ``patches/`` directory at
-its main installation location.
+3. the ``patches/`` folder in PTXdist's main installation directory
+ (``${PTXDIST_TOPDIR}/patches``)
+
+The list is tried from first to last.
+If no patches were found in one of the locations, the next location is tried.
+When all locations have been tried unsuccessfully, the package is not patched.
This search order can be used to use specific patch series for specific
cases.
-- platfom specific
+- platform specific
- project specific