scripts/image: Include device tree image into Amlogic OTA update package

This commit is contained in:
Alex Deryskyba 2016-07-29 15:37:18 +02:00
parent 0fbb9d1b38
commit 2e1ddeb80f

View File

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