[yocto] New: "extrapatches" bbclass.

Kaz Kylheku (poky) 442-103-8455 at kylheku.com
Sat Mar 9 08:20:05 PST 2019


On 2019-03-09 02:01, Richard Purdie wrote:
> On Thu, 2019-03-07 at 19:26 -0800, Kaz Kylheku (poky) wrote:
>> #
>> # extrapatches bbclass
>> #
>> # This bbclass allows for a recipe to apply additional patches.
>> #
>> # "Additional patches" refers to patches that are not individually
>> # fetched by the SRC_URI mechanism, but are already present
>> # inside the source trees that are fetched and unpacked.
>> # Referring directly to recipe-side patches
>> # without fetching them via SRC_URI is also possible.
>> #
>> # How to use this class:
>> #
>> #   1. Add   inherit extrapatches   to your recipe.
>> #   2. Optionally set the EXTRAPATCHES_WORKDIR,
>> #   3. List the patches in EXTRAPATCHES in order of application.
>> #      - Relative paths are interpreted relative to
>> EXTRAPATCHES_WORKDIR.
>> #      - Absolute paths are allowed
> 
> Can't you already do this if you put a file:// url in SRC_URI for the
> patch as its unpacked in the workdir?

That doesn't work due SRC_URI materials not being fetched and unpacked 
in left-to-right order, but in separate do_fetch and do_unpack phases.



More information about the yocto mailing list