From 704644be590ebfd9e827881ac272123e1dadfa0b Mon Sep 17 00:00:00 2001 From: "Mr.zhao" Date: Thu, 17 Jul 2025 11:48:01 +0000 Subject: [PATCH] =?UTF-8?q?=E9=9D=9E=E7=B2=BE=E5=87=86=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E9=A2=84=E4=B8=8B=E8=BD=BD=E6=83=85=E5=86=B5=E4=B8=8B=EF=BC=8C?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=B8=8D=E4=B8=8B=E8=BD=BDsdk,=20=E5=87=8F?= =?UTF-8?q?=E5=B0=91=E7=8B=AC=E7=AB=8B=E7=BC=96=E8=AF=91=E9=97=A8=E7=A6=81?= =?UTF-8?q?=E8=80=97=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mr.zhao --- prebuilts_config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/prebuilts_config.py b/prebuilts_config.py index 2df03e2a7f..e20c7ebbbb 100644 --- a/prebuilts_config.py +++ b/prebuilts_config.py @@ -62,6 +62,9 @@ def main(): config_parser = ConfigParser(config_file, global_args) download_operate, other_operate = config_parser.get_operate(global_args.part_names) + # 若没有指定--part-names参数(即执行bash build/prebuilts_config.sh),则默认不下载sdk + if not global_args.part_names: + other_operate = [item for item in other_operate if item["type"] != "download_sdk"] prebuilts_path = os.path.join(global_args.code_dir, "prebuilts") if not os.path.exists(prebuilts_path): os.makedirs(prebuilts_path) -- Gitee