From c1381bf54aac2f092fccf5023c28ff0c4f6f2584 Mon Sep 17 00:00:00 2001 From: Alexandru Gagniuc Date: Wed, 28 Nov 2012 17:13:27 -0600 Subject: lm4f: Compile with FPU support Specify the -mfloat-abi=hard and -mfpu=fpv4-sp-d16 flags so that FPU is enabled by default. While this compiles with FPU support, in order to use the floating point types, the FPU must be explicitly enabled at runtime. Signed-off-by: Alexandru Gagniuc --- lib/lm4f/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/lm4f/Makefile') diff --git a/lib/lm4f/Makefile b/lib/lm4f/Makefile index c4c2aa7..8f4c151 100644 --- a/lib/lm4f/Makefile +++ b/lib/lm4f/Makefile @@ -24,7 +24,7 @@ PREFIX ?= arm-none-eabi CC = $(PREFIX)-gcc AR = $(PREFIX)-ar CFLAGS = -Os -g -Wall -Wextra -I../../include -fno-common \ - -mcpu=cortex-m4 -mthumb -Wstrict-prototypes \ + -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -Wstrict-prototypes \ -ffunction-sections -fdata-sections -MD -DLM4F # ARFLAGS = rcsv ARFLAGS = rcs -- cgit v1.2.3