diff --git a/scripts/mkimage b/scripts/mkimage index 04b0e2cd1c..40051a0ec4 100755 --- a/scripts/mkimage +++ b/scripts/mkimage @@ -216,8 +216,8 @@ elif [ "${BOOTLOADER}" = "u-boot" -a -n "${UBOOT_SYSTEM}" ]; then # create bootloader configuration echo "image: creating bootloader configuration..." - if [ "${UBOOT_SYSTEM}" != "box" ]; then - DTB="$(${SCRIPTS}/uboot_helper ${PROJECT} ${DEVICE} ${UBOOT_SYSTEM} dtb)" + DTB="$(${SCRIPTS}/uboot_helper ${PROJECT} ${DEVICE} ${UBOOT_SYSTEM} dtb)" + if [ -n "${DTB}" ]; then if [ -f "${RELEASE_DIR}/3rdparty/bootloader/${DTB}" ]; then mcopy "${RELEASE_DIR}/3rdparty/bootloader/${DTB}" ::