From c4bd553145abba2b247b135e51b4acc276768efa Mon Sep 17 00:00:00 2001 From: SnickerSun Date: Sat, 29 Jun 2024 18:34:53 +0800 Subject: [PATCH] =?utf8?q?=E6=94=AF=E6=8C=81res=5Fonly=EF=BC=8Cota=5Fall?= =?utf8?q?=20flag=E5=88=B6=E4=BD=9C=20ota=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../config/target_config/brandy/build_brandy_update.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/code/sdk/build/config/target_config/brandy/build_brandy_update.py b/code/sdk/build/config/target_config/brandy/build_brandy_update.py index 55388e64e..26c4ccc58 100755 --- a/code/sdk/build/config/target_config/brandy/build_brandy_update.py +++ b/code/sdk/build/config/target_config/brandy/build_brandy_update.py @@ -109,6 +109,7 @@ def get_new_image(info): # 要升级的image列表,需根据升级的实际情况进行增删 image_list = [] if os.path.exists(os.path.join(info.root_path,"output","ota_all")) : + print( os.path.join(info.root_path,"output","ota_all")+" 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"])) @@ -116,7 +117,11 @@ def get_new_image(info): 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!") image_list.append("=".join([info.app_bin, "application"])) if os.path.exists(info.res_dir) : @@ -157,8 +162,10 @@ def get_old_image(info): 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( os.path.join(info.root_path,"output","ota_all")+" not exist ") + print( " ota_all 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"])) -- 2.17.1