How to apply patch in poky layer (outside receipe)

Showing results for 
Search instead for 
Did you mean: 

How to apply patch in poky layer (outside receipe)

Contributor III

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,


0 Kudos
2 Replies

NXP TechSupport
NXP TechSupport

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: 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.


0 Kudos

Contributor III

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.