From e3461a0b4d163ab5dff0d8368028586a260ddbed Mon Sep 17 00:00:00 2001 From: Stefano Viola Date: Fri, 24 Jun 2022 11:19:20 +0200 Subject: u-boot-toradex: deploy u-boot-with-spl.imx for imx6 The u-boot-with-spl.imx binary (if available), will be copied in the DEPLOYDIR for MACHINE colibri-imx6 and apalis-imx6. This binary is needed to implement bootloader software update where having only one binary instead of SPL + u-boot.bin simplifies things especially in the cloud platform side. Signed-off-by: Stefano Viola --- recipes-bsp/u-boot/u-boot-toradex_2020.07.bb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/recipes-bsp/u-boot/u-boot-toradex_2020.07.bb b/recipes-bsp/u-boot/u-boot-toradex_2020.07.bb index f965e28..bc6405a 100644 --- a/recipes-bsp/u-boot/u-boot-toradex_2020.07.bb +++ b/recipes-bsp/u-boot/u-boot-toradex_2020.07.bb @@ -31,6 +31,14 @@ nand_padding () { dd bs=1024 count=1 if=/dev/zero | cat - ${PADDING_DIR}/u-boot.imx.zero-padded > ${PADDING_DIR}/u-boot-nand.imx } +deploy_uboot_with_spl () { + for config in ${UBOOT_MACHINE}; do + if [ -f "${B}/${config}/u-boot-with-spl.imx" ]; then + install -D -m 644 ${B}/${config}/u-boot-with-spl.imx ${DEPLOYDIR}/u-boot-with-spl.imx + fi + done +} + do_compile_append_colibri-imx6ull () { nand_padding } @@ -42,3 +50,11 @@ do_compile_append_colibri-imx7 () { do_compile_append_colibri-vf () { nand_padding } + +do_deploy_append_colibri-imx6 () { + deploy_uboot_with_spl +} + +do_deploy_append_apalis-imx6 () { + deploy_uboot_with_spl +} -- cgit v1.2.3