diff options
| author | Michael Opdenacker <michael.opdenacker@bootlin.com> | 2022-01-04 11:32:59 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-01-07 11:12:37 +0000 |
| commit | 5c3ed9fb516bd3c8c6d0dc76b12547f26cfedba2 (patch) | |
| tree | 9550542ce7bffcb6077e8e0c997e87279479dcb7 /documentation | |
| parent | 7c58687a402a1622921963a089995471ec5c4348 (diff) | |
| download | poky-5c3ed9fb516bd3c8c6d0dc76b12547f26cfedba2.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: 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>
Diffstat (limited to 'documentation')
| -rw-r--r-- | documentation/ref-manual/tasks.rst | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/documentation/ref-manual/tasks.rst b/documentation/ref-manual/tasks.rst index 9fe1c296aa..ca19908bc9 100644 --- a/documentation/ref-manual/tasks.rst +++ b/documentation/ref-manual/tasks.rst | |||
| @@ -331,22 +331,19 @@ file as a patch file: | |||
| 331 | file://file;apply=yes \ | 331 | file://file;apply=yes \ |
| 332 | " | 332 | " |
| 333 | 333 | ||
| 334 | Conversely, if you have a directory full of patch files and you want to | 334 | Conversely, if you have a file whose file type is ``.patch`` or ``.diff`` |
| 335 | exclude some so that the ``do_patch`` task does not apply them during | 335 | and you want to exclude it so that the ``do_patch`` task does not apply |
| 336 | the patch phase, you can use the "apply=no" parameter with the | 336 | it during the patch phase, you can use the "apply=no" parameter with the |
| 337 | ``SRC_URI`` statement: | 337 | :term:`SRC_URI` statement:: |
| 338 | :: | ||
| 339 | 338 | ||
| 340 | SRC_URI = " \ | 339 | SRC_URI = " \ |
| 341 | git://path_to_repo/some_package \ | 340 | git://path_to_repo/some_package \ |
| 342 | file://path_to_lots_of_patch_files \ | 341 | file://file1.patch \ |
| 343 | file://path_to_lots_of_patch_files/patch_file5;apply=no \ | 342 | file://file2.patch;apply=no \ |
| 344 | " | 343 | " |
| 345 | 344 | ||
| 346 | In the | 345 | In the previous example ``file1.patch`` would be applied as a patch by default |
| 347 | previous example, assuming all the files in the directory holding the | 346 | while ``file2.patch`` would not be applied. |
| 348 | patch files end with either ``.patch`` or ``.diff``, every file would be | ||
| 349 | applied as a patch by default except for the ``patch_file5`` patch. | ||
| 350 | 347 | ||
| 351 | You can find out more about the patching process in the | 348 | You can find out more about the patching process in the |
| 352 | ":ref:`overview-manual/concepts:patching`" section in | 349 | ":ref:`overview-manual/concepts:patching`" section in |
