From f55373d804a4622db8f1ee4c8161fc210a6a114f Mon Sep 17 00:00:00 2001 From: SnickerSun Date: Fri, 7 Jun 2024 17:25:40 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E6=AD=A3=E5=88=B6=E4=BD=9Cota=E5=8C=85?= =?utf8?q?=E6=97=B6=EF=BC=8Cota=5Fall=E7=9A=84=E6=A0=87=E5=BF=97=E6=96=87?= =?utf8?q?=E4=BB=B6=E7=9A=84=E4=BD=8D=E7=BD=AE=20code/sdk/output/ota=5Fall?= =?utf8?q?=EF=BC=8C=E6=96=B9=E4=BE=BF=E5=88=87=E6=8D=A2=E5=8F=AA=E5=8D=87?= =?utf8?q?=E7=BA=A7application=E5=92=8C=E5=85=A8=E5=8C=85=E5=8D=87?= =?utf8?q?=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../config/target_config/brandy/build_brandy_update.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 5be4ecff0..55388e64e 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 @@ -108,7 +108,7 @@ class upg_base_info: def get_new_image(info): # 要升级的image列表,需根据升级的实际情况进行增删 image_list = [] - if os.path.exists(os.path.join(info.output,"ota_all")) : + if os.path.exists(os.path.join(info.root_path,"output","ota_all")) : image_list.append("=".join([info.ssb_bin, "ssb"])) image_list.append("=".join([info.recovery_bin, "recovery"])) image_list.append("=".join([info.app_bin, "application"])) @@ -151,12 +151,14 @@ def get_new_image(info): def get_old_image(info): # 要进行差分升级的image的旧版本镜像列表 image_list = [] - if os.path.exists(os.path.join(info.output,"ota_all")) : + 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.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"])) else: + print( os.path.join(info.root_path,"output","ota_all")+" not exist ") 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