ARM: ARMC6: Specify CPU for ARM scatter file preprocessor

Fixes #5796
pull/5797/head
Evan Hosseini 2018-01-05 15:16:57 -06:00
parent af9e07357a
commit 453a1d79f1
1 changed files with 3 additions and 0 deletions

View File

@ -81,6 +81,8 @@ class ARM(mbedToolchain):
self.ar = join(ARM_BIN, "armar")
self.elf2bin = join(ARM_BIN, "fromelf")
self.SHEBANG += " --cpu=%s" % target.core.lower()
def parse_dependencies(self, dep_path):
dependencies = []
for line in open(dep_path).readlines():
@ -356,6 +358,7 @@ class ARMC6(ARM_STD):
self.ar = [join(TOOLCHAIN_PATHS["ARMC6"], "armar")]
self.elf2bin = join(TOOLCHAIN_PATHS["ARMC6"], "fromelf")
self.SHEBANG += " -mcpu=%s" % target.core.lower()
def parse_dependencies(self, dep_path):
return mbedToolchain.parse_dependencies(self, dep_path)