diff options
-rw-r--r-- | recipes-bsp/u-boot/u-boot-toradex_2022.07.bb | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/recipes-bsp/u-boot/u-boot-toradex_2022.07.bb b/recipes-bsp/u-boot/u-boot-toradex_2022.07.bb index dcf7fff..b343eb7 100644 --- a/recipes-bsp/u-boot/u-boot-toradex_2022.07.bb +++ b/recipes-bsp/u-boot/u-boot-toradex_2022.07.bb @@ -50,11 +50,25 @@ nand_padding () { } 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 + #Deploy u-boot-with-spl.imx + if [ -n "${UBOOT_CONFIG}" ] + then + for config in ${UBOOT_MACHINE}; do + i=$(expr $i + 1); + for type in ${UBOOT_CONFIG}; do + j=$(expr $j + 1); + if [ $j -eq $i ] + then + install -D -m 644 ${B}/${config}/u-boot-with-spl.imx ${DEPLOYDIR}/u-boot-with-spl.imx-${MACHINE}-${type} + ln -sf u-boot-with-spl.imx-${MACHINE}-${type} ${DEPLOYDIR}/u-boot-with-spl.imx + fi + done + unset j + done + unset i + else + install -D -m 644 ${B}/${config}/u-boot-with-spl.imx ${DEPLOYDIR}/u-boot-with-spl.imx + fi } # build imx-boot from within U-Boot |