diff options
author | Max Krummenacher <max.oss.09@gmail.com> | 2022-01-03 20:50:50 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-01-07 11:12:06 +0000 |
commit | 22075d91d6ed7ee250429c3a77204ebaa15baba5 (patch) | |
tree | 0949df52e83b7d0ac9d91ce474d02dba7d8bb570 /documentation | |
parent | 3182ba8142ea7fe7a529cb59e43e4e93357b20ee (diff) | |
download | poky-22075d91d6ed7ee250429c3a77204ebaa15baba5.tar.gz |
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: de1156b6d95a2d1738807f0b0525edd0b58fc0e9)
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Reviewed-by: Quentin Schulz <foss+yocto@0leil.net>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/ref-manual/tasks.rst | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/documentation/ref-manual/tasks.rst b/documentation/ref-manual/tasks.rst index 8d563714a1..d484d08f82 100644 --- a/documentation/ref-manual/tasks.rst +++ b/documentation/ref-manual/tasks.rst | |||
@@ -326,21 +326,19 @@ file as a patch file:: | |||
326 | file://file;apply=yes \ | 326 | file://file;apply=yes \ |
327 | " | 327 | " |
328 | 328 | ||
329 | Conversely, if you have a directory full of patch files and you want to | 329 | Conversely, if you have a file whose file type is ``.patch`` or ``.diff`` |
330 | exclude some so that the ``do_patch`` task does not apply them during | 330 | and you want to exclude it so that the ``do_patch`` task does not apply |
331 | the patch phase, you can use the "apply=no" parameter with the | 331 | it during the patch phase, you can use the "apply=no" parameter with the |
332 | :term:`SRC_URI` statement:: | 332 | :term:`SRC_URI` statement:: |
333 | 333 | ||
334 | SRC_URI = " \ | 334 | SRC_URI = " \ |
335 | git://path_to_repo/some_package \ | 335 | git://path_to_repo/some_package \ |
336 | file://path_to_lots_of_patch_files \ | 336 | file://file1.patch \ |
337 | file://path_to_lots_of_patch_files/patch_file5;apply=no \ | 337 | file://file2.patch;apply=no \ |
338 | " | 338 | " |
339 | 339 | ||
340 | In the | 340 | In the previous example ``file1.patch`` would be applied as a patch by default |
341 | previous example, assuming all the files in the directory holding the | 341 | while ``file2.patch`` would not be applied. |
342 | patch files end with either ``.patch`` or ``.diff``, every file would be | ||
343 | applied as a patch by default except for the ``patch_file5`` patch. | ||
344 | 342 | ||
345 | You can find out more about the patching process in the | 343 | You can find out more about the patching process in the |
346 | ":ref:`overview-manual/concepts:patching`" section in | 344 | ":ref:`overview-manual/concepts:patching`" section in |