[meta-xilinx] How to patch fsbl

David Roman droman at ifae.es
Wed May 2 08:39:31 PDT 2018


Thanks for your response.

It seems that the bbappend is in the correct folder (ie: 
recipes-fsbl/fsbl/fsbl_git.bbappend) inside my own meta layer. I also 
have some other bbappends with other patches which are working fine, but 
seems that doing the same doesn't work for fsbl_git. I've also checked 
the layer configuration and I think that the BBFILES variable is also 
correctly configured: BBFILES += "${LAYERDIR}/recipes-*/*/*.bb 
${LAYERDIR}/recipes-*/*/*.bbappend"

Probably I forgot some important detail, but it's not clear to me what 
can go wrong or how to debug it.


Thanks


On 02/05/18 14:33, Jean-Francois Dagenais wrote:
>> On May 2, 2018, at 6:39 AM, David Roman <droman at ifae.es> wrote:
>>
>> I'm using fsbl_git recipe from meta-xilinx-tools (branch rel-v2016.4) and wanted to patch the fsbl_hooks.c source code. To do it I created a fsbl_git.bbappend with the next two lines:
>>
>>      FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
>>
>>      SRC_URI_append = " file://fsbl_hooks.patch"
>>
>> but the file doesn't get patched, is there another way to patch it or modify fsbl_hooks.c?
> This is very standard yocto procedure:
> https://wiki.yoctoproject.org/wiki/TipsAndTricks/Patching_the_source_for_a_recipe
>
> This answer is also good:
> https://stackoverflow.com/questions/45584131/how-patching-works-in-yocto
>
> You have to make sure your bbappend is it the same dir relative to the root of your layer.
>
> If the patch is found and copied into the work dir of the fsbl recipe (i.e. build/tmp/work/yourmachine-poky-linux/fsbl/2018.1+gitAUTOINC+aaa566bc3f-r0/fsbl_hooks.patch ) it should try to apply it. If the patch is bad, it will fail the yocto build.
>
> Good luck!


-- 
Avís -
Aviso - Legal Notice - (LOPD) - http://legal.ifae.es 
<http://legal.ifae.es/>


More information about the meta-xilinx mailing list