Correct call to add_file_ref

pull/9966/head
Brian Daniels 2019-04-05 11:46:39 -05:00
parent 3b9baf9600
commit 2a080a0840
2 changed files with 8 additions and 4 deletions

View File

@ -272,10 +272,14 @@ class Arm(Makefile):
if self.resources.linker_script:
sct_file = self.resources.get_file_refs(FileType.LD_SCRIPT)[-1]
new_script = self.toolchain.correct_scatter_shebang(
sct_file, dirname(sct_file.name))
sct_file, dirname(sct_file.name)
)
if new_script is not sct_file:
self.resources.add_files_to_type(
FileType.LD_SCRIPT, [new_script])
self.resources.add_file_ref(
FileType.LD_SCRIPT,
new_script.name,
new_script.path
)
return super(Arm, self).generate()
class Armc5(Arm):

View File

@ -284,7 +284,7 @@ class ARM(mbedToolchain):
scatter file
Return:
The location of the correct scatter file
The FileRef of the correct scatter file
Side Effects:
This method MAY write a new scatter file to disk