From: SnickerSun Date: Fri, 7 Jun 2024 08:52:12 +0000 (+0800) Subject: 修复ota脚本引用错误 X-Git-Tag: release_V1.2.70_20241020_135402~1027^2~3 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=d003dd6321cd746c18a5e3134ae4b71d1ad65966;p=mirrors%2FFD230.git 修复ota脚本引用错误 --- 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 6d95cb672..5be4ecff0 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(self.output,"ota_all")) : + if os.path.exists(os.path.join(info.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,7 +151,7 @@ def get_new_image(info): def get_old_image(info): # 要进行差分升级的image的旧版本镜像列表 image_list = [] - if os.path.exists(os.path.join(self.output,"ota_all")) : + if os.path.exists(os.path.join(info.output,"ota_all")) : 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"]))