File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ def generate(self):
111
111
for key in ['include_paths' , 'library_paths' , 'hex_files' ,
112
112
'to_be_compiled' ]:
113
113
ctx [key ] = sorted (ctx [key ])
114
- ctx .update (self .flags )
114
+ ctx .update (self .format_flags () )
115
115
116
116
for templatefile in \
117
117
['makefile/%s_%s.tmpl' % (self .TEMPLATE ,
@@ -128,6 +128,17 @@ def generate(self):
128
128
else :
129
129
raise NotSupportedException ("This make tool is in development" )
130
130
131
+ def format_flags (self ):
132
+ """Format toolchain flags for Makefile"""
133
+ flags = {}
134
+ for k , v in self .flags .iteritems ():
135
+ if k in ['asm_flags' , 'c_flags' , 'cxx_flags' ]:
136
+ flags [k ] = map (lambda x : x .replace ('"' , '\\ "' ), v )
137
+ else :
138
+ flags [k ] = v
139
+
140
+ return flags
141
+
131
142
@staticmethod
132
143
def build (project_name , log_name = "build_log.txt" , cleanup = True ):
133
144
""" Build Make project """
You can’t perform that action at this time.
0 commit comments