Skip to content

Commit 0906be6

Browse files
Merge pull request #5093 from theotherjimmy/export-no-response-files
Disable response files on export
2 parents 7b42891 + a62f89d commit 0906be6

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

tools/export/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ def export_project(src_paths, export_path, target, ide, libraries_paths=None,
310310
extra_verbose=extra_verbose, config=config, build_profile=build_profile,
311311
app_config=app_config)
312312
# The first path will give the name to the library
313+
toolchain.RESPONSE_FILES = False
313314
if name is None:
314315
name = basename(normpath(abspath(src_paths[0])))
315316

tools/export/makefile/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def prepare_sys_lib(libname):
225225

226226
def generate(self):
227227
if self.resources.linker_script:
228-
new_script = self.toolchain.make_real_scatter(
228+
new_script = self.toolchain.correct_scatter_shebang(
229229
self.resources.linker_script)
230230
if new_script is not self.resources.linker_script:
231231
self.resources.linker_script = new_script

tools/export/uvision/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,9 @@ def format_flags(self):
167167
"""Format toolchain flags for Uvision"""
168168
flags = copy.deepcopy(self.flags)
169169
# to be preprocessed with armcc
170-
asm_flag_string = '--cpreproc --cpreproc_opts=-D__ASSERT_MSG,' + \
171-
",".join(flags['asm_flags'])
170+
asm_flag_string = (
171+
'--cpreproc --cpreproc_opts=-D__ASSERT_MSG,' +
172+
",".join(filter(lambda f: f.startswith("-D"), flags['asm_flags'])))
172173
flags['asm_flags'] = asm_flag_string
173174
# All non-asm flags are in one template field
174175
c_flags = list(set(flags['c_flags'] + flags['cxx_flags'] +flags['common_flags']))

tools/export/uvision/uvision.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@
394394
<MiscControls>{{asm_flags}}</MiscControls>
395395
<Define></Define>
396396
<Undefine></Undefine>
397-
<IncludePath></IncludePath>
397+
<IncludePath>{{include_paths}}</IncludePath>
398398
</VariousControls>
399399
</Aads>
400400
<LDads>

0 commit comments

Comments
 (0)