aboutsummaryrefslogtreecommitdiffstats
path: root/demos/STM32/RT-STM32L476-DISCOVERY
diff options
context:
space:
mode:
Diffstat (limited to 'demos/STM32/RT-STM32L476-DISCOVERY')
-rw-r--r--demos/STM32/RT-STM32L476-DISCOVERY/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/demos/STM32/RT-STM32L476-DISCOVERY/Makefile b/demos/STM32/RT-STM32L476-DISCOVERY/Makefile
index 26e343617..9c33696ac 100644
--- a/demos/STM32/RT-STM32L476-DISCOVERY/Makefile
+++ b/demos/STM32/RT-STM32L476-DISCOVERY/Makefile
@@ -74,6 +74,11 @@ ifeq ($(USE_FPU),)
USE_FPU = no
endif
+# FPU-related options.
+ifeq ($(USE_FPU_OPT),)
+ USE_FPU_OPT = -mfloat-abi=$(USE_FPU) -mfpu=fpv4-sp-d16 -fsingle-precision-constant
+endif
+
#
# Architecture or project specific options
##############################################################################
@@ -103,6 +108,8 @@ include $(CHIBIOS)/os/hal/osal/rt/osal.mk
# RTOS files (optional).
include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
+# Auto-build files in ./source recursively.
+include $(CHIBIOS)/tools/mk/autobuild.mk
# Other files (optional).
include $(CHIBIOS)/test/lib/test.mk
include $(CHIBIOS)/test/rt/rt_test.mk
@@ -171,7 +178,7 @@ ULIBDIR =
ULIBS =
#
-# End of user defines
+# End of user section
##############################################################################
##############################################################################