修正制作ota包时,ota_all的标志文件的位置 code/sdk/output/ota_all,方便切换只升级application和全包升级 236/1 236/head 237/target/1 238/target/1 239/target/1
authorSnickerSun <snickersun@163.com>
Fri, 7 Jun 2024 09:25:40 +0000 (17:25 +0800)
committerSnickerSun <snickersun@163.com>
Fri, 7 Jun 2024 09:25:40 +0000 (17:25 +0800)
code/sdk/build/config/target_config/brandy/build_brandy_update.py

index 5be4ecf..55388e6 100755 (executable)
@@ -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"]))