> On May 2, 2018, at 6:39 AM, David Roman <[email protected]> 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!
-- 
_______________________________________________
meta-xilinx mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-xilinx

Reply via email to