All of lore.kernel.org
 help / color / mirror / Atom feed
* [oe][OE-core][Patch 0/2] implement applying patches from a directory
@ 2021-12-10 13:04 Max Krummenacher
  2021-12-10 13:04 ` [oe][OE-core][Patch 1/2] lib/oe/patch.py: apply patches from src_uri specified directories Max Krummenacher
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Max Krummenacher @ 2021-12-10 13:04 UTC (permalink / raw)
  To: openembedded-core; +Cc: Max Krummenacher

The current developer manual [1] specifies that patches that are
part of a directory which is given in SRC_URI are applied by
the do_patch task. However that is not implemented in the
current code.

This patchset implements that, but deviates from what is
documented. If the patches are applied I will send a patch
for the documentation changing the relevant part to:

```
If you have a directory full of patch files and you want to
apply them all you can add the directory to SRC_URI and add
the "apply=yes" parameter. This will apply ALL files in the
directiory, including files in subdirectories.
The patches will be applied sorted by their filename. Files
from subdirectories will be sorted into the list at the
position given by the subdirectory name.

   SRC_URI = " \
       git://path_to_repo/some_package \
       file://path_to_lots_of_patch_files;apply=yes \
       "

In the previous example all the files in the directory holding
the patch files would be applied as a patch.
```

Max

[1] https://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html#ref-tasks-patch

Max Krummenacher (2):
  lib/oe/patch.py: apply patches from src_uri specified directories
  lib/oe/recipeutils.py: follow changed method argument list

 meta/lib/oe/patch.py       | 98 +++++++++++++++++++++++---------------
 meta/lib/oe/recipeutils.py |  2 +-
 2 files changed, 60 insertions(+), 40 deletions(-)

-- 
2.20.1



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-12-13 17:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-10 13:04 [oe][OE-core][Patch 0/2] implement applying patches from a directory Max Krummenacher
2021-12-10 13:04 ` [oe][OE-core][Patch 1/2] lib/oe/patch.py: apply patches from src_uri specified directories Max Krummenacher
2021-12-10 13:29   ` Konrad Weihmann
2021-12-10 14:01     ` Bruce Ashfield
2021-12-10 14:07       ` Max
2021-12-10 14:13         ` Bruce Ashfield
2021-12-10 14:16       ` Quentin Schulz
2021-12-10 13:04 ` [oe][OE-core][Patch 2/2] lib/oe/recipeutils.py: follow changed method argument list Max Krummenacher
2021-12-10 15:57 ` [oe][OE-core][Patch 0/2] implement applying patches from a directory Richard Purdie
2021-12-13 17:33   ` Max Krummenacher
2021-12-13 17:36     ` Alexander Kanavin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.