Hi, i have solved like this:

- i created a bbappend under my layer:
meta-mylayer/recipes-bsp/platform-init/platform-init.bbappend

    COMPATIBLE_MACHINE_microzed-zynq7 = "microzed-zynq7"
    FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

    do_install_append() {
        install -m 06444 ${THISDIR}/files/microzed-zynq7/ps7_init_gpl.c
${D}${PLATFORM_INIT_DIR}/
        install -m 06444 ${THISDIR}/files/microzed-zynq7/ps7_init_gpl.h
${D}${PLATFORM_INIT_DIR}/
    }


- Under
"~/home/jksandek/poky/meta-xilinx/meta-xilinx-bsp/recipes-bsp/platform-init/files/microzed-zynq7"
i put my ps7_init_gpl.[ch]

- Finally i inserted in microzed-zynq7.conf this: FORCE_PLATFORM_INIT = "1"

This works for me.

Tanks you all.

Il giorno mar 9 lug 2019 alle ore 15:35 Jean-Francois Dagenais <
jeff.dagen...@gmail.com> ha scritto:

> Hi Nathan,
>
> > On Jul 9, 2019, at 09:23, Nathan Rossi <nat...@nathanrossi.com> wrote:
> >
> > 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
> ).
>
> Great... for me. This will fix my problem. Unfortunately for Jek, I don't
> think this will help since he is using platform-init.bb.
>
> Jek, I suggest you look carefully at u-boot-spl-zynq-init.inc. Several
> variables must work right in order for your psu_init files to end up in
> u-boot's source directory prior to the configure and compile steps.
>
> Good luck!
>
> Thanks for the info Nathan!
-- 
_______________________________________________
meta-xilinx mailing list
meta-xilinx@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-xilinx

Reply via email to