[yocto] How to patch sysroots file?

Gaurang Shastri gmshastri at gmail.com
Mon Oct 7 22:14:02 PDT 2013


>>So my question is: from where is the sysroots file coming? How should I
generate the patch file for the sysroots

Will, there is task called do_populate_systroot which will generate
sysroots files/headers.

If you want to generate the patch, you don't require to generate "sysroot
patch" but you need to know from which package the sysroot files are
generated. And in your case it might be "libc-headers" so you need to
create patch for "libc-headers" recipe. So at the end, it will
automatically reflect in the sysroot path.

//Gaurang Shastri


On Mon, Oct 7, 2013 at 7:23 PM, Ashish Dalela <ashish.dalela at gmail.com>wrote:

>
> I am trying to build bridge-utils. During compilation, I get the error:
>
> /scratch/adalela/yocto/build/tmp/sysroots/qemux86/usr/include/linux/if_bridge.h:172:20:
> error: field 'ip6' has incomplete typeIn file included from
> ../libbridge/libbridge.h:24:0
>
> But, I don't see matching file paths in git path and sysroots locations.
>
> In sysroots path:
> .../build/tmp/sysroots/qemux86
> $ find . -name if_bridge.h
> ./usr/include/linux/if_bridge.h
>
> In GIT path:
> .../build/tmp/work/qemux86-poky-linux/linux-yocto/3.8.11+git*/linux
> $ find . -name if_bridge.h
> ./include/uapi/linux/if_bridge.h
> ./include/linux/if_bridge.h
>
> ./usr/include/linux/if_bridge.h and ./include/uapi/linux/if_bridge.h are
> almost identical, except of #ifdef.
>
> I can manually patch the files and the compilation is successful. But I
> don't know how to create the patch file for the sysroots file, because the
> GIT path does not have the same file.
>
> So my question is: from where is the sysroots file coming? How should I
> generate the patch file for the sysroots ./usr/include/linux/if_bridge.h?
>
> Thanks
> -Ashish
>
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20131008/079c0906/attachment.html>


More information about the yocto mailing list