From ce2d407491cd82b556f12161b64cce26cd8d94a7 Mon Sep 17 00:00:00 2001 From: Alex Deryskyba Date: Sun, 17 Dec 2017 16:58:31 +0200 Subject: [PATCH] scripts/mkimage: Fix an issue when device tree image is not included into SD card images for WeTek devices --- scripts/mkimage | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/mkimage b/scripts/mkimage index 5cb88f7d8c..9a4e2f4e27 100755 --- a/scripts/mkimage +++ b/scripts/mkimage @@ -263,6 +263,11 @@ EOF mcopy $RELEASE_DIR/target/KERNEL.md5 "::/$KERNEL_NAME.md5" mcopy $RELEASE_DIR/target/SYSTEM.md5 ::/SYSTEM.md5 + # copy Amlogic device tree image + if [ -f "$RELEASE_DIR/3rdparty/bootloader/dtb.img" ]; then + mcopy $RELEASE_DIR/3rdparty/bootloader/dtb.img :: + fi + elif [ "$BOOTLOADER" = "u-boot" ]; then echo "to make an image using u-boot UBOOT_SYSTEM must be set" cleanup