Re: How to add my own patches to linux-fslc-imx
Andrey Zhizhikin
Hello Jan,
On Thu, Jan 20, 2022 at 9:44 AM Jan Claussen via lists.yoctoproject.org <claussen.j=eppendorf.de@...> wrote: There are 3 points to be considered here, namely: 1) If those patches do fix the issue in the NXP downstream kernel, then you can open a PR in [1] against the _corresponding branch_, which in this case is [5.10.2.1.x-imx]. This gives a chance for those who use the combined "NXP + Latest LTS" kernel (which `linux-fslc-imx` is) a chance to review and provide comments on your patches. 2) If those patches are fixing issues in upstream, then you should report then upstream first and they will eventually land in linux-fslc-imx kernel via stable upgrade, provided they do qualify for linux-stable, see [2] for this. 3) If those patches do something that only you need, you are effectively creating your own "downstream" fork of linux-fslc-imx repository, hence you need to create your own kernel provider. The comment in recipe says exactly what it means: one should not submit Kernel patches as patch files and add them to the layer (with appending those to SRC_URI), but rather push them into [1] via PR mechanism. Corresponding branch in this context means: the branch that is currently set in the recipe. Since branch changes during Kernel upgrades, there is no way to explicitly mention against which branch you should submit your PR, hence the term "corresponding branch" is used here. Depends on the way you choose to proceed from above, you either would "patch" the branch (via PR), or you need to switch the Kernel provider to your own fork. Link: [1]: https://github.com/Freescale/linux-fslc Link: [2]: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html -- Regards, Andrey. |
|