From 1dbbedbc2fe2ccfec3fa2b2a1305753020f1d0a8 Mon Sep 17 00:00:00 2001 From: SummerGift Date: Tue, 18 Jun 2019 10:34:43 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=AE=8C=E5=96=84=E3=80=91dist-ide=20?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=AE=9E=E7=8E=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/mkdist.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/tools/mkdist.py b/tools/mkdist.py index 96d0e63ef9..219fa35150 100644 --- a/tools/mkdist.py +++ b/tools/mkdist.py @@ -144,17 +144,16 @@ def bsp_update_kconfig_library(dist_dir): def bs_update_ide_project(bsp_root, rtt_root, rttide = None): import subprocess # default update the projects which have template file - tgt_dict = {'mdk4':('keil', 'armcc'), - 'mdk5':('keil', 'armcc'), - 'iar':('iar', 'iar'), - 'vs':('msvc', 'cl'), - 'vs2012':('msvc', 'cl'), - 'cdk':('gcc', 'gcc')} - ide_dict = {'eclipse':('gcc', 'gcc')} - - if rttide != None: - tgt_dict = ide_dict + if rttide == None: + tgt_dict = {'mdk4':('keil', 'armcc'), + 'mdk5':('keil', 'armcc'), + 'iar':('iar', 'iar'), + 'vs':('msvc', 'cl'), + 'vs2012':('msvc', 'cl'), + 'cdk':('gcc', 'gcc')} + else: + tgt_dict = {'eclipse':('gcc', 'gcc')} scons_env = os.environ.copy() scons_env['RTT_ROOT'] = rtt_root