How to apply patch in poky layer (outside receipe)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to apply patch in poky layer (outside receipe)

3,183件の閲覧回数
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,048件の閲覧回数
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,048件の閲覧回数
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