summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2023-09-14 18:45:30 -0400
committerMeco Man <[email protected]>2023-09-15 08:52:48 -0400
commit77f31f8d8f552aa864c07d625d2726247ae6d4ab (patch)
treeef961716eee4c550071bc30373cafb91b3dd6664
parentc19c907b62e241b0649673e8cfd02bb46f48d18c (diff)
[env][dist] adjust dist sequence
-rw-r--r--tools/mkdist.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/mkdist.py b/tools/mkdist.py
index 64458961e4..d44f2336b1 100644
--- a/tools/mkdist.py
+++ b/tools/mkdist.py
@@ -243,10 +243,6 @@ def MkDist(program, BSP_ROOT, RTT_ROOT, Env, project_name, project_path):
# delete testcases in Kconfig
bsp_update_kconfig_testcases(dist_dir)
- # make zip package
- if project_path == None:
- zip_dist(dist_dir, project_name)
-
target_project_type = GetOption('target')
if target_project_type:
child = subprocess.Popen('scons --target={} --project-name="{}"'.format(target_project_type, project_name), cwd=dist_dir, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
@@ -258,4 +254,8 @@ def MkDist(program, BSP_ROOT, RTT_ROOT, Env, project_name, project_path):
else:
print('suggest to use command scons --dist [--target=xxx] [--project-name="xxx"] [--project-path="xxx"]')
+ # make zip package
+ if project_path == None:
+ zip_dist(dist_dir, project_name)
+
print('dist project successfully!')