aboutsummaryrefslogtreecommitdiff
path: root/examples/lm4f/Makefile.include
diff options
context:
space:
mode:
authorAlexandru Gagniuc2012-11-28 17:13:27 -0600
committerAlexandru Gagniuc2012-12-31 01:35:27 -0600
commitc1381bf54aac2f092fccf5023c28ff0c4f6f2584 (patch)
tree691046b880f997c8bf05913ae83af1a47391b1ed /examples/lm4f/Makefile.include
parentc08bd17d905332333af1e5eb609848b2ec10477c (diff)
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 <mr.nuke.me@gmail.com>
Diffstat (limited to 'examples/lm4f/Makefile.include')
-rw-r--r--examples/lm4f/Makefile.include2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/lm4f/Makefile.include b/examples/lm4f/Makefile.include
index 4d2675c..60987e8 100644
--- a/examples/lm4f/Makefile.include
+++ b/examples/lm4f/Makefile.include
@@ -36,7 +36,7 @@ $(info We seem to be building the example in the source directory. Using local l
endif
endif
-ARCH_FLAGS = -mthumb -mcpu=cortex-m4
+ARCH_FLAGS = -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16
CFLAGS += -O0 -g3 -Wall -Wextra -I$(TOOLCHAIN_DIR)/include \
-fno-common $(ARCH_FLAGS) -MD -DLM4F
LDSCRIPT ?= $(BINARY).ld