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