@@ -47,7 +47,7 @@ def get_target_config(self, ctx, configuration):
47
47
48
48
target_specific = _CONFIGS_OPTIONS ['targets' ]
49
49
if tgt .name in target_specific :
50
- target_info = target_specific [tgt .name ]['generic' ]
50
+ eclipse_config . update ( target_specific [tgt .name ]['generic' ])
51
51
if configuration in target_specific [tgt .name ]:
52
52
target_info .update (target_specific [tgt .name ][configuration ])
53
53
@@ -75,17 +75,17 @@ def generate(self):
75
75
76
76
launch_cfgs = {}
77
77
for launch_name in supported_launches :
78
- launch = dict (ctx . items () )
79
- launch .update ({'device' : self .get_target_config (ctx , launch_name )}. items () )
80
- launch_cfgs . update ({ launch_name : launch })
78
+ launch = deepcopy (ctx )
79
+ launch .update ({'device' : self .get_target_config (ctx , launch_name )})
80
+ launch_cfgs [ launch_name ] = launch
81
81
82
82
if not exists (join (self .export_dir ,'eclipse-extras' )):
83
83
makedirs (join (self .export_dir ,'eclipse-extras' ))
84
84
85
85
for launch_name , ctx in launch_cfgs .items ():
86
86
# Generate launch configurations for former GNU ARM Eclipse plug-in
87
87
self .gen_file ('cdt/%s' % 'pyocd_settings_gnu_arm.tmpl' , ctx , join ('eclipse-extras' ,
88
- '{target}_{project}_{conf}_{launch} .launch' .format (
88
+ '{target}_{project}_{conf}_pyocd_settings .launch' .format (
89
89
target = self .target ,
90
90
project = self .project_name ,
91
91
conf = launch_name ,
0 commit comments