image_list.append("=".join([info.bt_bin, "bt"]))
image_list.append("=".join([info.dsp_main_bin, "dsp_main"]))
image_list.append("=".join([info.dsp_overlay_bin, "dsp_overlay"]))
+ elif os.path.exists(os.path.join(info.root_path,"output","ota_all_with_nv")) :
+ print( os.path.join(info.root_path,"output","ota_all_with_nv")+" exist ")
+ image_list.append("=".join([info.ssb_bin, "ssb"]))
+ image_list.append("=".join([info.recovery_bin, "recovery"]))
+ image_list.append("=".join([info.app_bin, "application"]))
+ image_list.append("=".join([info.bt_bin, "bt"]))
+ image_list.append("=".join([info.dsp_main_bin, "dsp_main"]))
+ image_list.append("=".join([info.dsp_overlay_bin, "dsp_overlay"]))
image_list.append("=".join([info.nv_bin, "nv"]))
elif os.path.exists(os.path.join(info.root_path,"output","res_only")) :
print( os.path.join(info.root_path,"output","res_only")+" exist ")
print("update resource only")
else:
- print( "ota_all or res_only not exist in folder "+os.path.join(info.root_path,"output")+",application only!")
+ print( "ota_all or ota_all_with_nv or res_only not exist in folder "+os.path.join(info.root_path,"output")+",application only!")
image_list.append("=".join([info.app_bin, "application"]))
if os.path.exists(info.res_dir) :
image_list.append("=".join([info.bt_old_bin, "bt"]))
image_list.append("=".join([info.dsp_main_old_bin, "dsp_main"]))
image_list.append("=".join([info.dsp_overlay_old_bin, "dsp_overlay"]))
+ elif os.path.exists(os.path.join(info.root_path,"output","ota_all_with_nv")) :
+ print( os.path.join(info.root_path,"output","ota_all_with_nv")+" exist ")
+ image_list.append("=".join([info.app_old_bin, "application"]))
+ image_list.append("=".join([info.bt_old_bin, "bt"]))
+ image_list.append("=".join([info.dsp_main_old_bin, "dsp_main"]))
+ image_list.append("=".join([info.dsp_overlay_old_bin, "dsp_overlay"]))
elif os.path.exists(os.path.join(info.root_path,"output","res_only")) :
print("update resource only")
else:
- print( " ota_all or res_only not exist in folder "+os.path.join(info.root_path,"output")+",application only!")
+ print( " ota_all or ota_all_with_nv or res_only not exist in folder "+os.path.join(info.root_path,"output")+",application only!")
image_list.append("=".join([info.app_old_bin, "application"]))
# image_list.append("=".join([info.app_old_sign, "application_sign"]))
# image_list.append("=".join([info.bt_old_sign, "bt_sign"]))
ROOTDIR=`basename $PWD`
ADDITIONAL_RES_DIR=$PWD/code/sdk/output/additional_fs
OTA_ALL_FLAG_PATH=$PWD/code/sdk/output/ota_all
+OTA_ALL_WITH_NV_FLAG_PATH=$PWD/code/sdk/output/ota_all_with_nv
RES_ONLY_FLAG_PATH=$PWD/code/sdk/output/res_only
OTA_DIFF_FLAG_PATH=$PWD/code/sdk/output/ota_diff
if [ ! -d "$PWD/code/sdk/output" ] ; then
exit 0
fi
-rm $OTA_ALL_FLAG_PATH $RES_ONLY_FLAG_PATH $OTA_DIFF_FLAG_PATH -f
+rm $OTA_ALL_FLAG_PATH $RES_ONLY_FLAG_PATH $OTA_DIFF_FLAG_PATH $OTA_ALL_WITH_NV_FLAG_PATH -f
if [ "$3" == "ota_all" ]; then
touch $OTA_ALL_FLAG_PATH
OTA_PKG_HEAD=ota_all_
+elif [ "$3" == "ota_all_with_nv" ]; then
+touch $OTA_ALL_WITH_NV_FLAG_PATH
+OTA_PKG_HEAD=ota_all_nv_
elif [ "$3" == "ota_diff" ]; then
touch $OTA_DIFF_FLAG_PATH
OTA_PKG_HEAD=ota_diff_