mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
scripts/image: Include device tree image into Amlogic OTA update package
This commit is contained in:
parent
0fbb9d1b38
commit
2e1ddeb80f
@ -416,6 +416,11 @@ fi
|
|||||||
cp -PR $INSTALL_SRC_DIR/files/* $AML_PKG_DIR
|
cp -PR $INSTALL_SRC_DIR/files/* $AML_PKG_DIR
|
||||||
fi
|
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
|
# create the update package
|
||||||
pushd "$AML_PKG_DIR" > /dev/null
|
pushd "$AML_PKG_DIR" > /dev/null
|
||||||
zip -rq update.zip *
|
zip -rq update.zip *
|
||||||
@ -432,9 +437,16 @@ fi
|
|||||||
pushd sign > /dev/null
|
pushd sign > /dev/null
|
||||||
echo --update_package=/sdcard/$IMAGE_NAME-update.zip > factory_update_param.aml
|
echo --update_package=/sdcard/$IMAGE_NAME-update.zip > factory_update_param.aml
|
||||||
cp $INSTALL_SRC_DIR/files/recovery.img .
|
cp $INSTALL_SRC_DIR/files/recovery.img .
|
||||||
|
|
||||||
if [ -f $INSTALL_SRC_DIR/files/aml_autoscript ]; then
|
if [ -f $INSTALL_SRC_DIR/files/aml_autoscript ]; then
|
||||||
cp $INSTALL_SRC_DIR/files/aml_autoscript .
|
cp $INSTALL_SRC_DIR/files/aml_autoscript .
|
||||||
fi
|
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 *
|
zip -q $TARGET_IMG/$IMAGE_NAME.zip *
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user