From a92467dcb408031ec839fa63c29391155c320be5 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Sun, 3 Sep 2017 15:05:21 +0200 Subject: u-boot-toradex: fix mixed spl/standard workaround The workaround for U-Boot being compiled with and without SPL assumes a certain directory structure. For machines only building one U-Boot, the workaround may introduce and error. Fix this. Signed-off-by: Max Krummenacher Acked-by: Stefan Agner --- recipes-bsp/u-boot/u-boot-toradex_2016.11.bb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'recipes-bsp/u-boot/u-boot-toradex_2016.11.bb') diff --git a/recipes-bsp/u-boot/u-boot-toradex_2016.11.bb b/recipes-bsp/u-boot/u-boot-toradex_2016.11.bb index 1a5ec54..ad57c83 100644 --- a/recipes-bsp/u-boot/u-boot-toradex_2016.11.bb +++ b/recipes-bsp/u-boot/u-boot-toradex_2016.11.bb @@ -13,9 +13,12 @@ COMPATIBLE_MACHINE = "(mx6|mx7|vf)" # if using UBOOT_CONFIG to build more than one configuration, the current code in # u-boot.inc assumes all are either with or without SPL. do_compile_append_mx6() { - for config in ${UBOOT_MACHINE}; do - touch ${B}/${config}/${SPL_BINARY} - done + if [ -n "${UBOOT_CONFIG}" ] + then + for config in ${UBOOT_MACHINE}; do + touch ${B}/${config}/${SPL_BINARY} + done + fi } do_deploy_append_mx6() { # if SPL is zero sized file, remove all deployed artefacts -- cgit v1.2.3