How to create patch file

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to create patch file

Jump to solution
3,763 Views
hankwang
Contributor IV

HI,

      I have finished modify code in the folder(/tmp/work-shared/imx6ulevk/kerner-source). Add device tree and         

      configuration. Now i want to create path file put in my folder (source/meta-XXXX/recipes-kernel). How could i to do?

      thanks.

Labels (1)
0 Kudos
1 Solution
3,701 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Hank Wang,

There are a couple of ways to do this. You could create an append recipe (.bbappend) to your recipes to add the changes. You can find more regarding this on the Yocto Project Reference Manual:

https://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#ref-classes-patch

If you already have a patch file you can use the do_patch function of bitbake. There is also information on the Yocto Projecr Manual.

I hope this helps!

Regards,

View solution in original post

0 Kudos
1 Reply
3,702 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Hank Wang,

There are a couple of ways to do this. You could create an append recipe (.bbappend) to your recipes to add the changes. You can find more regarding this on the Yocto Project Reference Manual:

https://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#ref-classes-patch

If you already have a patch file you can use the do_patch function of bitbake. There is also information on the Yocto Projecr Manual.

I hope this helps!

Regards,

0 Kudos