文件路径:
rk3568-linux-sdk/device/rockchip/:
diff --git a/common/scripts/mk-updateimg.sh b/common/scripts/mk-updateimg.sh
index 69dcc2b..0b50032 100755
--- a/common/scripts/mk-updateimg.sh
+++ b/common/scripts/mk-updateimg.sh
@@ -51,11 +51,11 @@ gen_package_file()
do_build_updateimg()
{
check_config RK_UPDATE || false
-
- TYPE="update${1:+-$1}"
+ TYPE="update${1:+-$1}"
+ name="update-$RK_ROOTFS_SYSTEM-$(date +"%Y%m%d")${1:+-$1}"
OUT_DIR="$RK_OUTDIR/$TYPE"
IMAGE_DIR="$OUT_DIR/Image"
- TARGET="$RK_FIRMWARE_DIR/$TYPE.img"
+ TARGET="$RK_FIRMWARE_DIR/$name.img"
case "$TYPE" in
*ota*) PKG_FILE="$RK_OTA_PACKAGE_FILE" ;;
@@ -238,3 +238,4 @@ case "$@" in
;;
*) post_build_hook ${@:-updateimg} ;;
esac