u-boot-rockchip: copy spl binary from the good task

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 <romain.perier@collabora.com>
Tested-by: Trevor Woerner <twoerner@gmail.com>
This commit is contained in:
Romain Perier 2017-05-13 17:33:02 +02:00 committed by Trevor Woerner
parent 64a79b3bcc
commit d5566d1ad7

View File

@ -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}/
}