How to apply patch in poky layer (outside receipe)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to apply patch in poky layer (outside receipe)

3,198 次查看
Raana
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,

J.P.Raja

0 项奖励
2 回复数

3,063 次查看
gusarambula
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:

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,

0 项奖励

3,063 次查看
ceggers1
Contributor IV

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