File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed
tools/export/gnuarmeclipse Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -273,22 +273,13 @@ def generate(self):
273
273
'u' : u ,
274
274
}
275
275
276
- # TODO: it would be good to have jinja stop if one of the
277
- # expected context values is not defined.
278
276
self .gen_file ('gnuarmeclipse/.project.tmpl' , jinja_ctx ,
279
277
'.project' , trim_blocks = True , lstrip_blocks = True )
280
278
self .gen_file ('gnuarmeclipse/.cproject.tmpl' , jinja_ctx ,
281
279
'.cproject' , trim_blocks = True , lstrip_blocks = True )
282
280
self .gen_file ('gnuarmeclipse/makefile.targets.tmpl' , jinja_ctx ,
283
281
'makefile.targets' , trim_blocks = True , lstrip_blocks = True )
284
-
285
- if not exists ('.mbedignore' ):
286
- print
287
- print 'Create .mbedignore'
288
- with open ('.mbedignore' , 'w' ) as f :
289
- for bf in build_folders :
290
- print bf + '/'
291
- f .write (bf + '/\n ' )
282
+ self .gen_file ('gnuarmeclipse/mbedignore.tmpl' , jinja_ctx , '.mbedignore' )
292
283
293
284
print
294
285
print 'Done. Import the \' {0}\' project in Eclipse.' .format (self .project_name )
Original file line number Diff line number Diff line change
1
+ {%- for config in options.values() -%}
2
+ {{config.name}}/*
3
+ {% endfor -%}
You can’t perform that action at this time.
0 commit comments