How to apply patch in poky layer (outside receipe)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear All,
Right now, I'm trying to apply the patch from the below link to my Yocto base manually.
[warrior-next,54/54] cve-check: backport rewrite from master - Patchwork
It's working fine.
I want to apply the same patch while building the Yocto source.
How to achieve this?
Where do I keep this patch file and how to apply the patch?
Please help me to move further.
Thank You.
Best Regards,
J.P.Raja


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Raana,
As Christian Eggers mentioned, it is recommended to create a new layer and recipes that will apply the changes required. Most of the time patches are applied trough appends to the recipe. If your layer has a high enough priority changes will be applied when building.
While a bit outdated the principles remain the same as in the document below:
https://community.nxp.com/docs/DOC-334088Adding the WF111 Driver to the i.MX6 Yocto BSP
For more details on how to create a layer and a recipe I would recommend the Yocto Project documentation.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Usually it is best practice not making changes to the poky layer itself. Instead you should make your changes in a .bbappend file in you own layer.
In case of the patch you have mentioned, I'm not sure whether this approach is possible. I would simply create a local clone of the poky repository and apply and commit the patch there.
regards
Christian
