[meta-zephyr,3/4] tune-cortexm3.inc: set '-mfloat-abi=soft' floating-point ABI

Submitted by Naveen Saini on Jan. 9, 2020, 9:23 a.m. | Patch ID: 168738

Details

Message ID 20200109092310.9730-3-naveen.kumar.saini@intel.com
State New
Headers show

Commit Message

Naveen Saini Jan. 9, 2020, 9:23 a.m.
Due to default -mfloat-abi=softfp facing below error log:
"Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"

Ref: https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
---
 conf/machine/include/tune-cortexm3.inc | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/conf/machine/include/tune-cortexm3.inc b/conf/machine/include/tune-cortexm3.inc
index 25d7590..3fba827 100644
--- a/conf/machine/include/tune-cortexm3.inc
+++ b/conf/machine/include/tune-cortexm3.inc
@@ -18,3 +18,4 @@  PACKAGE_EXTRA_ARCHS_tune-cortexm3 ="cortexm3"
 TUNE_FEATURES_tune-cortexm3 = "armv7m vfp cortexm3"
 PACKAGE_EXTRA_ARCHS_tune-cortexm3 = "${PACKAGE_EXTRA_ARCHS_tune-armv7at} armv7m-vfp"
 
+TUNE_CCARGS_MFLOAT = "soft"