As with a lot of things, I’m sure it all depends on the scope of the change.  
Personally, if I ‘own’ the original bbappend, then I consider if it’s worth 
establishing an override or some other similar mechanism within that bbappend, 
depending on what I’m developing (an image feature or something 
machine-specific).  If it’s a one-off for a specific build that I can lump 
together with other changes, then I go with a new layer specific those changes.

One thing to keep in mind is that if you create your own layer with a bbappend 
,then layer priority will impact which portions of your bbappend overwrite the 
others and the original recipe.  You can use bitbake -e package-name to get a 
view of how bitbake is overlaying all changes for it.

Cheers,

Thomas

On Apr 13, 2020, 4:20 AM -0400, nus1998 <nus1...@yeah.net>, wrote:
> Hi All,
>
> I googled some topics on how to patch a recipe, most of them recommend to 
> generate a corresponding <foo>.bbappend to apply the patch, I wonder if there 
> is already a bbappend file, shall I modify the bbappend file directly, or 
> create another layer to overwrite the bbappend file (and including the patchs 
> in original bbappend file)?
>
> Thanks in advance
> Nus
> 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#49119): https://lists.yoctoproject.org/g/yocto/message/49119
Mute This Topic: https://lists.yoctoproject.org/mt/72982468/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to