1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-02 01:19:52 +00:00

ref-manual: fix patch documentation

The do_patch implementation does not apply patches from an entry in
SRC_URI pointing to a directory.
Remove the claim that this is implemented.

(From yocto-docs rev: cba66e3a284b852b0da9a3b53f5f2540244d1072)

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Reported-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Michael Opdenacker
2022-01-04 11:32:59 +01:00
committed by Richard Purdie
parent 7c58687a40
commit 5c3ed9fb51
+8 -11
View File
@@ -331,22 +331,19 @@ file as a patch file:
file://file;apply=yes \ file://file;apply=yes \
" "
Conversely, if you have a directory full of patch files and you want to Conversely, if you have a file whose file type is ``.patch`` or ``.diff``
exclude some so that the ``do_patch`` task does not apply them during and you want to exclude it so that the ``do_patch`` task does not apply
the patch phase, you can use the "apply=no" parameter with the it during the patch phase, you can use the "apply=no" parameter with the
``SRC_URI`` statement: :term:`SRC_URI` statement::
::
SRC_URI = " \ SRC_URI = " \
git://path_to_repo/some_package \ git://path_to_repo/some_package \
file://path_to_lots_of_patch_files \ file://file1.patch \
file://path_to_lots_of_patch_files/patch_file5;apply=no \ file://file2.patch;apply=no \
" "
In the In the previous example ``file1.patch`` would be applied as a patch by default
previous example, assuming all the files in the directory holding the while ``file2.patch`` would not be applied.
patch files end with either ``.patch`` or ``.diff``, every file would be
applied as a patch by default except for the ``patch_file5`` patch.
You can find out more about the patching process in the You can find out more about the patching process in the
":ref:`overview-manual/concepts:patching`" section in ":ref:`overview-manual/concepts:patching`" section in