You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2017/02/08 18:52:46 UTC

[2/5] incubator-mynewt-core git commit: MYNEWT-581; set compiler flags to use FPU when HARDFLOAT is set.

MYNEWT-581; set compiler flags to use FPU when HARDFLOAT is set.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/522d97b6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/522d97b6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/522d97b6

Branch: refs/heads/develop
Commit: 522d97b671b02b12ba0bb45c067b38a5cce5b26e
Parents: d557a92
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Tue Feb 7 13:28:36 2017 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Tue Feb 7 13:28:36 2017 -0800

----------------------------------------------------------------------
 hw/bsp/frdm-k64f/pkg.yml                  | 4 +++-
 hw/bsp/nrf52dk/pkg.yml                    | 3 +++
 hw/bsp/olimex_stm32-e407_devboard/pkg.yml | 3 +++
 3 files changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/522d97b6/hw/bsp/frdm-k64f/pkg.yml
----------------------------------------------------------------------
diff --git a/hw/bsp/frdm-k64f/pkg.yml b/hw/bsp/frdm-k64f/pkg.yml
index 24d337f..a8dd573 100644
--- a/hw/bsp/frdm-k64f/pkg.yml
+++ b/hw/bsp/frdm-k64f/pkg.yml
@@ -27,7 +27,6 @@ pkg.keywords:
 pkg.cflags:
     - -DDEBUG
     - -fno-builtin -fno-common -ffreestanding
-    - -mfloat-abi=hard -mfpu=fpv4-sp-d16
     - -DCPU_MK64FN1M0VMD12
     - -DPRINTF_FLOAT_ENABLE=0
     - -DSCANF_FLOAT_ENABLE=0
@@ -39,6 +38,9 @@ pkg.cflags:
     - -Wl,--defsym=__ram_vector_table__=1
     - -D__STARTUP_CLEAR_BSS
 
+pkg.cflags.HARDFLOAT:
+    - -mfloat-abi=hard -mfpu=fpv4-sp-d16
+
 pkg.deps:
     - hw/mcu/nxp/MK64F12
     - libc/baselibc

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/522d97b6/hw/bsp/nrf52dk/pkg.yml
----------------------------------------------------------------------
diff --git a/hw/bsp/nrf52dk/pkg.yml b/hw/bsp/nrf52dk/pkg.yml
index 2dd56c5..a2bb7c2 100644
--- a/hw/bsp/nrf52dk/pkg.yml
+++ b/hw/bsp/nrf52dk/pkg.yml
@@ -78,6 +78,9 @@ pkg.cflags:
     - '-DUART0_ENABLED=1'
     - '-DWDT_ENABLED=1'
 
+pkg.cflags.HARDFLOAT:
+    - -mfloat-abi=hard -mfpu=fpv4-sp-d16
+
 pkg.deps:
     - hw/mcu/nordic/nrf52xxx
     - libc/baselibc

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/522d97b6/hw/bsp/olimex_stm32-e407_devboard/pkg.yml
----------------------------------------------------------------------
diff --git a/hw/bsp/olimex_stm32-e407_devboard/pkg.yml b/hw/bsp/olimex_stm32-e407_devboard/pkg.yml
index 99daebe..7aefaab 100644
--- a/hw/bsp/olimex_stm32-e407_devboard/pkg.yml
+++ b/hw/bsp/olimex_stm32-e407_devboard/pkg.yml
@@ -31,6 +31,9 @@ pkg.cflags:
     # STM SDK files require these defines.
     - '-DSTM32F407xx'
 
+pkg.cflags.HARDFLOAT:
+    - -mfloat-abi=hard -mfpu=fpv4-sp-d16
+
 pkg.deps:
     - hw/mcu/stm/stm32f4xx
     - libc/baselibc