File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 19
19
20
20
from tools .export .exporters import Exporter
21
21
from tools .targets import TARGET_MAP , TARGET_NAMES
22
+ from tools .settings import ARM_INC
22
23
23
24
# If you wish to add a new target, add it to project_generator_definitions, and then
24
25
# define progen_target name in the target class (`` self.progen_target = 'my_target_name' ``)
@@ -67,11 +68,14 @@ def generate(self):
67
68
68
69
# get flags from toolchain and apply
69
70
project_data ['tool_specific' ]['uvision' ]['misc' ] = {}
70
- project_data ['tool_specific' ]['uvision' ]['misc' ]['asm_flags' ] = list (set (self .toolchain .flags ['common' ] + self .toolchain .flags ['asm' ]))
71
+ # asm flags only, common are not valid within uvision project, they are armcc specific
72
+ project_data ['tool_specific' ]['uvision' ]['misc' ]['asm_flags' ] = list (set (self .toolchain .flags ['asm' ]))
71
73
# cxx flags included, as uvision have them all in one tab
72
74
project_data ['tool_specific' ]['uvision' ]['misc' ]['c_flags' ] = list (set (self .toolchain .flags ['common' ] + self .toolchain .flags ['c' ] + self .toolchain .flags ['cxx' ]))
73
75
# not compatible with c99 flag set in the template
74
76
project_data ['tool_specific' ]['uvision' ]['misc' ]['c_flags' ].remove ("--c99" )
77
+ # ARM_INC is by default as system inclusion, not required for exported project
78
+ project_data ['tool_specific' ]['uvision' ]['misc' ]['c_flags' ].remove ("-I \" " + ARM_INC + "\" " )
75
79
project_data ['tool_specific' ]['uvision' ]['misc' ]['ld_flags' ] = self .toolchain .flags ['ld' ]
76
80
77
81
i = 0
Original file line number Diff line number Diff line change @@ -67,7 +67,8 @@ def generate(self):
67
67
68
68
# get flags from toolchain and apply
69
69
project_data ['tool_specific' ]['uvision5' ]['misc' ] = {}
70
- project_data ['tool_specific' ]['uvision5' ]['misc' ]['asm_flags' ] = list (set (self .toolchain .flags ['common' ] + self .toolchain .flags ['asm' ]))
70
+ # asm flags only, common are not valid within uvision project, they are armcc specific
71
+ project_data ['tool_specific' ]['uvision5' ]['misc' ]['asm_flags' ] = list (set (self .toolchain .flags ['asm' ]))
71
72
# cxx flags included, as uvision have them all in one tab
72
73
project_data ['tool_specific' ]['uvision5' ]['misc' ]['c_flags' ] = list (set (self .toolchain .flags ['common' ] + self .toolchain .flags ['c' ] + self .toolchain .flags ['cxx' ]))
73
74
# not compatible with c99 flag set in the template
You can’t perform that action at this time.
0 commit comments