From 6b60aab136c19e4febfd8ebc9ecbff25c4672bb4 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Thu, 29 Sep 2022 12:42:29 -0400 Subject: [PATCH] =?UTF-8?q?[dist-ide]=20=E4=BC=98=E5=8C=96=E5=AF=BC?= =?UTF-8?q?=E5=87=BARTThread=20Studio=E5=B7=A5=E7=A8=8B=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=20-=20=E5=AF=BC=E5=87=BArtstudio=E5=B7=A5=E7=A8=8B=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=A4=9A=E5=A2=9E=E5=8A=A0=E4=B8=80=E7=BA=A7=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=EF=BC=8C=E9=98=B2=E6=AD=A2BSP=E6=9C=AC=E5=9C=B0Sconsc?= =?UTF-8?q?ript=E5=92=8C=E5=AF=BC=E5=87=BA=E7=9A=84=E5=B7=A5=E7=A8=8B?= =?UTF-8?q?=E7=9A=84Sconscript=E7=B2=98=E6=8E=A5=20=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E5=87=BA=E9=94=99=20-=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E5=88=AB=E5=90=8D=20--dist-rtstudio=20?= =?UTF-8?q?=E8=AF=A5=E5=91=BD=E4=BB=A4=E5=92=8C=20--dist-ide=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E6=89=A7=E8=A1=8C=E4=B8=80=E8=87=B4=EF=BC=8C=E6=96=B9?= =?UTF-8?q?=E4=BE=BF=E7=94=A8=E6=88=B7=E7=90=86=E8=A7=A3=EF=BC=8C--dist-id?= =?UTF-8?q?e=20IDE=E8=A1=A8=E7=A4=BA=E7=9A=84=E5=86=85=E5=AE=B9=E8=BF=87?= =?UTF-8?q?=E4=BA=8E=E5=AE=BD=E6=B3=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- tools/building.py | 7 ++++--- tools/options.py | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index a4bb176b30..f08897fb2d 100644 --- a/.gitignore +++ b/.gitignore @@ -32,7 +32,7 @@ documentation/html tools/kconfig-frontends/kconfig-mconf packages dist -dist_ide_project +rt-studio-project cconfig.h GPUCache diff --git a/tools/building.py b/tools/building.py index dfcfd1b689..97f0b41450 100644 --- a/tools/building.py +++ b/tools/building.py @@ -909,13 +909,14 @@ def EndBuilding(target, program = None): project_path = GetOption('project-path') project_name = GetOption('project-name') - if not isinstance(project_path, str) or len(project_path) == 0 : - project_path = os.path.join(BSP_ROOT, 'dist_ide_project') - print("\nwarning : --project-path not specified, use default path: {0}.".format(project_path)) if not isinstance(project_name, str) or len(project_name) == 0: project_name = "dist_ide_project" print("\nwarning : --project-name not specified, use default project name: {0}.".format(project_name)) + if not isinstance(project_path, str) or len(project_path) == 0 : + project_path = os.path.join(BSP_ROOT, 'rt-studio-project', project_name) + print("\nwarning : --project-path not specified, use default path: {0}.".format(project_path)) + rtt_ide = {'project_path' : project_path, 'project_name' : project_name} MkDist(program, BSP_ROOT, Rtt_Root, Env, rtt_ide) need_exit = True diff --git a/tools/options.py b/tools/options.py index edc39d5e75..0840deed81 100644 --- a/tools/options.py +++ b/tools/options.py @@ -38,7 +38,7 @@ def AddOptions(): action = 'store_true', default = False, help = 'make distribution and strip useless files') - AddOption('--dist-ide', + AddOption('--dist-ide', '--dist-rtstudio', dest = 'make-dist-ide', action = 'store_true', default = False, -- GitLab