Currently, the spl binary (that is ${SPL_BINARY}) is copied before the
install task, as part of a prepended func. The u-boot include in poky,
defines the deploy task to be run after the compile task, there is
absolutely no order between this deploy task and the install task. In
some cases, the install task can be executed after the deploy task,
resulting to an error because do_deploy will not find the spl binary in
${B}.This commit, move the copy of the spl binary after the compile task. Signed-off-by: Romain Perier <[email protected]> --- recipes-bsp/u-boot/u-boot-rockchip_git.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes-bsp/u-boot/u-boot-rockchip_git.bb b/recipes-bsp/u-boot/u-boot-rockchip_git.bb index dda8bb4..2865fab 100644 --- a/recipes-bsp/u-boot/u-boot-rockchip_git.bb +++ b/recipes-bsp/u-boot/u-boot-rockchip_git.bb @@ -18,7 +18,7 @@ SRC_URI = " \ SRCREV = "${AUTOREV}" S = "${WORKDIR}/git" -do_install_prepend () { - # copy to default search path - cp ${B}/spl/${SPL_BINARY} ${B}/ +do_compile_append () { + # copy to default search path + cp ${B}/spl/${SPL_BINARY} ${B}/ } -- 1.8.3.1 -- _______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
