[yocto] [meta-rockchip][PATCH 1/2] u-boot: Copy ${SPL_BINARY} to the default search path

Romain Perier romain.perier at collabora.com
Fri Jun 16 06:47:39 PDT 2017

The do_install task from u-boot.inc, expects to find ${SPL_BINARY} into
${B}, while for some platforms, including Rockchip, this binary is
generated under the spl directory. Extend the compile task to copy
${SPL_BINARY} to the defaut search path and make the build process work.

Signed-off-by: Romain Perier <romain.perier at collabora.com>
 recipes-bsp/u-boot/u-boot_%.bbappend | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 recipes-bsp/u-boot/u-boot_%.bbappend

diff --git a/recipes-bsp/u-boot/u-boot_%.bbappend b/recipes-bsp/u-boot/u-boot_%.bbappend
new file mode 100644
index 0000000..efa5eae
--- /dev/null
+++ b/recipes-bsp/u-boot/u-boot_%.bbappend
@@ -0,0 +1,8 @@
+# Copyright (C) 2017 Romain Perier <romain.perier at collabora.com>
+# Released under the MIT license (see COPYING.MIT for the terms)
+do_compile_append () {
+    # Copy spl to default search path, so do_install from u-boot.inc
+    # works
+    cp ${B}/spl/${SPL_BINARY} ${B}/

More information about the yocto mailing list