From 584052c28cdfe5c383f13471deb891ba9438843a Mon Sep 17 00:00:00 2001 From: Daniel Serpell Date: Wed, 22 Aug 2012 00:05:09 -0400 Subject: Compile stm32-f4 library with floating point support. This enables hard-float in the compilation of library and examples for the stm32f40* chips. --- examples/stm32/f4/Makefile.include | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/stm32/f4') diff --git a/examples/stm32/f4/Makefile.include b/examples/stm32/f4/Makefile.include index b735aa6..9dfe9d0 100644 --- a/examples/stm32/f4/Makefile.include +++ b/examples/stm32/f4/Makefile.include @@ -36,12 +36,13 @@ endif TOOLCHAIN_DIR := ../../../../.. endif CFLAGS += -Os -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include \ - -fno-common -mcpu=cortex-m4 -mthumb -msoft-float -MD -DSTM32F4 + -fno-common -mcpu=cortex-m4 -mthumb \ + -mfloat-abi=hard -mfpu=fpv4-sp-d16 -MD -DSTM32F4 LDSCRIPT ?= $(BINARY).ld LDFLAGS += -lc -lnosys -L$(TOOLCHAIN_DIR)/lib \ -L$(TOOLCHAIN_DIR)/lib/stm32/f4 \ -T$(LDSCRIPT) -nostartfiles -Wl,--gc-sections \ - -mthumb -mcpu=cortex-m4 -march=armv7 -mfix-cortex-m3-ldrd -msoft-float + -mthumb -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 OBJS += $(BINARY).o OOCD ?= openocd -- cgit v1.2.3