Skip to content

Commit c550f9d

Browse files
committed
Fix some tracebacks, add zip exporter to the CLI
1 parent cadd233 commit c550f9d

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

tools/export/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
'atmelstudio' : atmelstudio.AtmelStudio,
4343
'sw4stm32' : sw4stm32.Sw4STM32,
4444
'e2studio' : e2studio.E2Studio,
45+
'zip' : zip.ZIP,
4546
}
4647

4748
ERROR_MESSAGE_UNSUPPORTED_TOOLCHAIN = """

tools/export/uvision4.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ def generate(self):
8080
project_data['misc']['asm_flags'] = [asm_flag_string]
8181
# cxx flags included, as uvision have them all in one tab
8282
project_data['misc']['c_flags'] = list(set(['-D__ASSERT_MSG']
83-
+ self.progen_flags['common_flags']
84-
+ self.progen_flags['c_flags']
85-
+ self.progen_flags['cxx_flags']))
83+
+ self.flags['common_flags']
84+
+ self.flags['c_flags']
85+
+ self.flags['cxx_flags']))
8686
# not compatible with c99 flag set in the template
8787
project_data['misc']['c_flags'].remove("--c99")
8888
# cpp is not required as it's implicit for cpp files

tools/export/uvision5.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ def generate(self):
7979
project_data['misc']['asm_flags'] = [asm_flag_string]
8080
# cxx flags included, as uvision have them all in one tab
8181
project_data['misc']['c_flags'] = list(set(['-D__ASSERT_MSG']
82-
+ self.progen_flags['common_flags']
83-
+ self.progen_flags['c_flags']
84-
+ self.progen_flags['cxx_flags']))
82+
+ self.flags['common_flags']
83+
+ self.flags['c_flags']
84+
+ self.flags['cxx_flags']))
8585
# not compatible with c99 flag set in the template
8686
project_data['misc']['c_flags'].remove("--c99")
8787
# cpp is not required as it's implicit for cpp files

tools/project_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ def export_project(src_paths, export_path, target, ide,
256256
files, exporter = generate_project_files(resources, export_path,
257257
target, name, toolchain, ide,
258258
macros=macros)
259+
files.append(config_header)
259260
if zip_proj:
260261
if isinstance(zip_proj, basestring):
261262
zip_export(join(export_path, zip_proj), name, resource_dict, files)

0 commit comments

Comments
 (0)