I'll have to investigate this further. From a completely clean build do_install_prepend always fails the first time, but simply restarting the build again causes it to succeed. With do_deploy_prepend it always succeeds without issue whether its the first or subsequent tries.
On Mon, Feb 20, 2017 at 6:14 AM, Eddie Cai <eddie.cai.li...@gmail.com> wrote: > > > 2017-02-19 22:33 GMT+08:00 Eddie Cai <eddie.cai.li...@gmail.com>: >> >> >> >> 2017-02-19 22:22 GMT+08:00 Jacob Chen <jacobchen...@gmail.com>: >>> >>> Hi, >>> >>> 2017-02-19 10:43 GMT+08:00 Trevor Woerner <twoer...@gmail.com>: >>> > This recipe was taken from the Rockchip team's recipe at >>> > >>> > https://github.com/rockchip-linux/meta-rockchip/commit/6a139d5b7510c7ba36aace82c239b894d5741cac >>> > >>> > It was mostly written by Jacob Chen <jacob-c...@iotwrt.com> and I've >>> > made a >>> > couple small modifications. >>> > >>> > Signed-off-by: Trevor Woerner <twoer...@gmail.com> >>> > --- >>> > recipes-bsp/u-boot/u-boot-rockchip_git.bb | 19 +++++++++++++++++++ >>> > 1 file changed, 19 insertions(+) >>> > create mode 100644 recipes-bsp/u-boot/u-boot-rockchip_git.bb >>> > >>> > diff --git a/recipes-bsp/u-boot/u-boot-rockchip_git.bb >>> > b/recipes-bsp/u-boot/u-boot-rockchip_git.bb >>> > new file mode 100644 >>> > index 0000000..3b4f109 >>> > --- /dev/null >>> > +++ b/recipes-bsp/u-boot/u-boot-rockchip_git.bb >>> > @@ -0,0 +1,19 @@ >>> > +# Copyright (C) 2017 Fuzhou Rockchip Electronics Co., Ltd >>> > +# Copyright (C) 2017 Trevor Woerner <twoer...@gmail.com> >>> > +# Released under the MIT license (see COPYING.MIT for the terms) >>> > + >>> > +require recipes-bsp/u-boot/u-boot.inc >>> > + >>> > +DESCRIPTION = "Rockchip next-dev U-Boot" >>> > +LICENSE = "GPLv2+" >>> > +LIC_FILES_CHKSUM = >>> > "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6" >>> > +COMPATIBLE_MACHINE = "(firefly-rk3288)" >>> > + >>> > +SRC_URI = "git://github.com/rockchip-linux/u-boot.git;branch=release;" >>> > +SRCREV = "${AUTOREV}" >>> > +S = "${WORKDIR}/git" >>> > + >>> > +do_deploy_prepend () { >>> > + # copy to default search path >>> > + cp ${B}/spl/${SPL_BINARY} ${B}/ >>> > +} >>> >>> I can't pass build if use do_deploy_prepend instead of >>> do_install_prepend. >> >> It works for me. Did you delete build/tmp? > > I failed when i did a clean build(delete build dir). I modify > do_deploy_prepend to do_install_prepend. Everything is fine. I guess i can > build before because sstate-cache cache the previous build data. >>> >>> >>> > -- >>> > 2.12.0.rc1.48.g076c053 >>> > >>> > -- >>> > _______________________________________________ >>> > yocto mailing list >>> > yocto@yoctoproject.org >>> > https://lists.yoctoproject.org/listinfo/yocto >>> -- >>> _______________________________________________ >>> yocto mailing list >>> yocto@yoctoproject.org >>> https://lists.yoctoproject.org/listinfo/yocto >> >> > -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto