scripts/mkimage: Fix an issue when device tree image is not included into SD card images for WeTek devices

This commit is contained in:
Alex Deryskyba 2017-12-17 16:58:31 +02:00
parent a059cd6cd2
commit ce2d407491

View File

@ -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