mkota.sh 添加 res_only 、ota_all 参数 414/target/2 415/1 415/head 416/target/1
authorSnickerSun <snickersun@163.com>
Sat, 29 Jun 2024 02:57:04 +0000 (10:57 +0800)
committerSnickerSun <snickersun@163.com>
Sat, 29 Jun 2024 02:57:04 +0000 (10:57 +0800)
mkota.sh

index 9ecf96e..e82d392 100755 (executable)
--- a/mkota.sh
+++ b/mkota.sh
@@ -9,6 +9,7 @@ RES_DIR=$3
 ROOTDIR=`basename $PWD`
 ADDITIONAL_RES_DIR=$PWD/code/sdk/output/additional_fs
 OTA_ALL_FLAG_PATH=$PWD/code/sdk/output/ota_all
+RES_ONLY_FLAG_PATH=$PWD/code/sdk/output/res_only
 if [ ! -d "$SOURCE_DIR" ] ; then
 echo "$SOURCE_DIR not exist , skip create ota package"
 echo ""
@@ -22,8 +23,10 @@ fi
 
 if [ "$3" == "ota_all" ]; then
 touch $OTA_ALL_FLAG_PATH
+elif [ "$3" == "res_only" ]; then
+touch $RES_ONLY_FLAG_PATH
 else
-rm $OTA_ALL_FLAG_PATH -f
+rm $OTA_ALL_FLAG_PATH $RES_ONLY_FLAG_PATH -f
 fi