How patching works in yocto

[亡魂溺海] 提交于 2019-12-06 07:18:33

First, create the patch:

diff -u helloworld.c newhelloworld.c > helloworld.patch

or using Git (replace x by the number of commits you want to extract a patch):

git format-patch -x

Two ways to apply the patch:

  • Put it into your test-layer, add a line on your .bb file: SRC_URI += " file://example.patch "

  • Put it in another layer, but it's only needed if it isn't your layer (meta-oe, meta-fsl, meta-qt...)

For this case, use in your .bbappend file:

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI += " file://helloworld.patch "
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!