[STM32F7] add FPU option for assembly compiling (needed for rtos library)

pull/1738/head
adustm 2016-05-13 11:19:07 +02:00
parent dbb99d4eee
commit e5c1d37c25
1 changed files with 4 additions and 1 deletions

View File

@ -60,7 +60,10 @@ class IAR(mbedToolchain):
IAR_BIN = join(IAR_PATH, "bin") IAR_BIN = join(IAR_PATH, "bin")
main_cc = join(IAR_BIN, "iccarm") main_cc = join(IAR_BIN, "iccarm")
self.asm = [join(IAR_BIN, "iasmarm")] + ["--cpu", cpuchoice] if target.core == "Cortex-M7F":
self.asm = [join(IAR_BIN, "iasmarm")] + ["--cpu", cpuchoice] + ["--fpu", "VFPv5_sp"]
else:
self.asm = [join(IAR_BIN, "iasmarm")] + ["--cpu", cpuchoice]
if not "analyze" in self.options: if not "analyze" in self.options:
self.cc = [main_cc] + c_flags self.cc = [main_cc] + c_flags
self.cppc = [main_cc, "--c++", "--no_rtti", "--no_exceptions"] + c_flags self.cppc = [main_cc, "--c++", "--no_rtti", "--no_exceptions"] + c_flags