On Mon, Sep 14, 2020 at 3:05 PM Greg Wilson-Lindberg <[email protected]>
wrote:

> Hi Chuck,
>
>
>
> I am patching a recipe that is included with the Yocto system that I
> download. The .system file that I need to modify is in one of the file
> directories that are part of the recipe.
>
>
>
> I have a .bbappend recipe that is being picked up, but because the file
> that I want to patch is part of the recipe and not part of what a recipe
> would download if it were building something from source, the patch system
> is not finding it.
>


In that case, your best bet is to probably write a do_*_append() function
into the bbappend recipe so you can jump in after one of the build steps
and apply your patch during the appropriate stage. Refer to section 28.1 of
the Mega Manual for all of the build tasks, and pick one that seems
sensible. For example, you can write a do_install_append() function, and
then prepend ${B} to the path that the service file typically shows up at
to access it. From there, it is a simple matter of using typical commands
to apply whatever patch you want.

I have no doubt that other, more experienced people on the Yocto project,
may suggest a better target than do_install, so listen to them if any
should jump in and offer sensible correction to what I am saying.


Part of my question was, could I use the PATCHDIR option to specify the
> /lib/systemd/system/file.service file to get the patch to run against the
> ‘copied’ version of the file?
>

Given the example above, you would simply use
${B}/lib/systemd/system/file.service and use garden variety command line
tools to apply the patch.



> Sorry for the weird “<reply>…<reply\>” blocks, I’m stuck with Outlook for
> email and I can’t figure out how to get it to indent the email I’m replying
> to and let me comment in line without indenting my replies also.
>


No worries. I used to use mutt and pine, which were really good at inline
posting. Alas, I have moved on to gmail, which is not so good, and comes
into conflict in places such as this. We make-do of course...

..Ch:W..

-- 
*"Perfection must be reached by degrees; she requires the slow hand of
time." - Voltaire*
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#50676): https://lists.yoctoproject.org/g/yocto/message/50676
Mute This Topic: https://lists.yoctoproject.org/mt/76848145/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to