diff options
author | Michael Opdenacker <michael.opdenacker@bootlin.com> | 2022-01-04 11:43:28 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-01-07 11:12:46 +0000 |
commit | 0490ee594486856be2023c400e2b27bfb9f2f93e (patch) | |
tree | 51016c3b9dca4a8a5690e00d0416abb0be4fdbf1 /documentation | |
parent | ee0220a2bb4d60d4d87fb9399fcb318a8608447f (diff) | |
download | poky-0490ee594486856be2023c400e2b27bfb9f2f93e.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: 9c5533b45bfd6a3d383e973a2c40e0f418afcbe9)
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/ref-tasks.rst | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/documentation/ref-manual/ref-tasks.rst b/documentation/ref-manual/ref-tasks.rst index 4ed15365f3..2f1959a010 100644 --- a/documentation/ref-manual/ref-tasks.rst +++ b/documentation/ref-manual/ref-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:`patching-dev-environment`" section in | 349 | ":ref:`patching-dev-environment`" section in |