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


Naveen Saini
 

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@...>
---
conf/machine/include/tune-cortexm3.inc | 1 +
1 file changed, 1 insertion(+)

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"
--
2.17.1

Join yocto@lists.yoctoproject.org to automatically receive all group messages.