From 2e1ddeb80f9729f3ef9be0c33747ffacb34f3b49 Mon Sep 17 00:00:00 2001 From: Alex Deryskyba Date: Fri, 29 Jul 2016 15:37:18 +0200 Subject: [PATCH] scripts/image: Include device tree image into Amlogic OTA update package --- scripts/image | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/image b/scripts/image index 73c77fbce4..9ccb8fe1f8 100755 --- a/scripts/image +++ b/scripts/image @@ -416,6 +416,11 @@ fi cp -PR $INSTALL_SRC_DIR/files/* $AML_PKG_DIR fi + # copy device tree image if any + if [ -f "$INSTALL/usr/share/bootloader/dtb.img" ]; then + cp "$INSTALL/usr/share/bootloader/dtb.img" $AML_PKG_DIR/dtb.img + fi + # create the update package pushd "$AML_PKG_DIR" > /dev/null zip -rq update.zip * @@ -432,9 +437,16 @@ fi pushd sign > /dev/null echo --update_package=/sdcard/$IMAGE_NAME-update.zip > factory_update_param.aml cp $INSTALL_SRC_DIR/files/recovery.img . + if [ -f $INSTALL_SRC_DIR/files/aml_autoscript ]; then cp $INSTALL_SRC_DIR/files/aml_autoscript . fi + + # copy device tree image if any + if [ -f "$ROOT/$INSTALL/usr/share/bootloader/dtb.img" ]; then + cp "$ROOT/$INSTALL/usr/share/bootloader/dtb.img" . + fi + zip -q $TARGET_IMG/$IMAGE_NAME.zip * popd > /dev/null fi