mirror of https://github.com/ARMmbed/mbed-os.git
Make toolchain use hard float, and remove debugging statement.
parent
fe625b1f65
commit
9d488c6ea7
|
|
@ -327,8 +327,6 @@ class mbedToolchain:
|
||||||
if hasattr(self, "cc_extra"):
|
if hasattr(self, "cc_extra"):
|
||||||
command.extend(self.cc_extra(base))
|
command.extend(self.cc_extra(base))
|
||||||
|
|
||||||
print " ".join(command)
|
|
||||||
|
|
||||||
self.debug(command)
|
self.debug(command)
|
||||||
_, stderr, rc = run_cmd(command, dirname(object), chroot=self.CHROOT)
|
_, stderr, rc = run_cmd(command, dirname(object), chroot=self.CHROOT)
|
||||||
|
|
||||||
|
|
@ -634,6 +632,10 @@ class GCC_ARM(GCC):
|
||||||
if target in ["LPC1768", "STM32F407"]:
|
if target in ["LPC1768", "STM32F407"]:
|
||||||
self.ld.extend(["-u", "_printf_float", "-u", "_scanf_float"])
|
self.ld.extend(["-u", "_printf_float", "-u", "_scanf_float"])
|
||||||
|
|
||||||
|
if target == "STM32F407":
|
||||||
|
self.cc.extend(["-mfloat-abi=hard", "-mfpu=fpv4-sp-d16"])
|
||||||
|
self.cppc.extend(["-mfloat-abi=hard", "-mfpu=fpv4-sp-d16"])
|
||||||
|
|
||||||
self.sys_libs.append("nosys")
|
self.sys_libs.append("nosys")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue