On Mon, Sep 14, 2020 at 10:50 AM Greg Wilson-Lindberg <[email protected]> wrote:
> I have a recipe that has a .service file in one of its files directories > that I need to patch. > > > > I haven’t been able to figure out how to specify the directory of the file > that needs to be patched. I can’t seem to get the patch to apply to the > files directory, do I need to specify the /lib/systemd/system directory > into the PATCHDIR option or is there another way that would work better? > Are you patching an existing upstream recipe? Or your own recipe? In the former case, you would use a .bbappend recipe. In either case, it all depends on how the service file is generated. If it is part of the source code, then you just create a patch against the source tree and reference that patch in a recipe as a SRC_URI_append. If you generate it as part of a build, then you would either patch the build product (less desirable), or patch the code that generates the service file (more desirable). ..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 (#50673): https://lists.yoctoproject.org/g/yocto/message/50673 Mute This Topic: https://lists.yoctoproject.org/mt/76848145/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
