On Tue, 9 Jul 2019 at 23:12, Jean-Francois Dagenais
<jeff.dagen...@gmail.com> wrote:
>
> Hi Jek, Xilinx people,
>
> > On Jul 7, 2019, at 12:51, Jek F. <jek.fes...@gmail.com> wrote:
> >
> > i'm a newbie and i'm tring to build an image for microzed with a custom 
> > ps7_init_gpl created in Vivado. I tried to create a custom layer 
> > (meta-mylayer/recipes-bsp/platform-init/platform-init.bbappend) to append 
> > ps7_init_gpl files but this didn't work. Which is the right way to Insert 
> > ps7_init_gpl files in Yocto Project?
> >
>
> I also had trouble with this. I worked around it by changing 
> xilinx-init-platform.bbclass:
>
> -PLATFORM_INIT_DIR ?= "/usr/src/xilinx-platform-init"
> +PLATFORM_INIT_DIR ?= "/usr/lib/xilinx-platform-init"
>
> I was not using platform-init per se but our own recipe which declares it is 
> providing "virtual/xilinx-platform-init". So my u-boot recipe was indeed 
> pulling on my platform-init files. And my custom platform-init recipe was 
> indeed providing the psu_init_gpl.[ch] files in the default package. But 
> somehow do_prepare_recipe_sysroot did not put the psu_init_gpl files under 
> tmp/work/mymachine/u-boot/*/recipe_sysroot/usr/src ?
>
> I don't know exactly why it didn't work with /usr/src because I had to move 
> on. Perhaps there is a special case in populate_recipe_sysroot for /usr/src? 
> I know normally, the /usr/src contents are collected by the "${PN}-dbg" 
> packaging, not the default "${PN}" packaging.

You should not need to do this change to xilinx-init-platform.bbclass,
however you will need to make sure you recipe populates into the
sysroot correctly. By default /usr/src is not populated into the
sysroot (not to be confused with packaging). This is the purpose of
the "SYSROOT_DIRS" line in platform-init.bb
(http://git.yoctoproject.org/cgit/cgit.cgi/meta-xilinx/tree/meta-xilinx-bsp/recipes-bsp/platform-init/platform-init.bb#n24).

Regards,
Nathan

>
> It may be a regression caused by an update to the poky layer. The original 
> code in xilinx-init-platform.bbclass from Nathan is dated 2017-01-14 which 
> would be 2-3 Yocto releases back.
>
> Hope this helps!
-- 
_______________________________________________
meta-xilinx mailing list
meta-xilinx@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-xilinx

Reply via email to