From ffe9376c55cc045f100226350ebcf14b18ab2045 Mon Sep 17 00:00:00 2001 From: Frantisek Burian Date: Thu, 9 Jan 2014 07:33:11 +0100 Subject: [PATCH] [BUILD] Allow to override FP_FLAGS in make as specified in libopencm3 README --- examples/lm3s/Makefile.include | 3 ++- examples/lm4f/Makefile.include | 3 ++- examples/lpc13xx/Makefile.include | 3 ++- examples/lpc17xx/Makefile.include | 3 ++- examples/lpc43xx/Makefile.include | 3 ++- examples/stm32/f0/Makefile.include | 3 ++- examples/stm32/f1/Makefile.include | 3 ++- examples/stm32/f2/Makefile.include | 3 ++- examples/stm32/f3/Makefile.include | 3 ++- examples/stm32/f4/Makefile.include | 3 ++- examples/stm32/l1/Makefile.include | 3 ++- 11 files changed, 22 insertions(+), 11 deletions(-) diff --git a/examples/lm3s/Makefile.include b/examples/lm3s/Makefile.include index 06dd29c..54c0f05 100644 --- a/examples/lm3s/Makefile.include +++ b/examples/lm3s/Makefile.include @@ -21,7 +21,8 @@ LIBNAME = opencm3_lm3s DEFS = -DLM3S -ARCH_FLAGS = -mthumb -mcpu=cortex-m3 -msoft-float +FP_FLAGS ?= -msoft-float +ARCH_FLAGS = -mthumb -mcpu=cortex-m3 $(FP_FLAGS) ################################################################################ # OpenOCD specific variables diff --git a/examples/lm4f/Makefile.include b/examples/lm4f/Makefile.include index 54a64a9..09d6223 100644 --- a/examples/lm4f/Makefile.include +++ b/examples/lm4f/Makefile.include @@ -22,7 +22,8 @@ LIBNAME = opencm3_lm4f DEFS = -DLM4F -ARCH_FLAGS = -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 +FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16 +ARCH_FLAGS = -mthumb -mcpu=cortex-m4 $(FP_FLAGS) ################################################################################ # OpenOCD specific variables diff --git a/examples/lpc13xx/Makefile.include b/examples/lpc13xx/Makefile.include index 1ca0ee4..73ba526 100644 --- a/examples/lpc13xx/Makefile.include +++ b/examples/lpc13xx/Makefile.include @@ -21,7 +21,8 @@ LIBNAME = opencm3_lpc13xx DEFS = -DLPC13XX -ARCH_FLAGS = -mthumb -mcpu=cortex-m3 -msoft-float -mfix-cortex-m3-ldrd +FP_FLAGS ?= -msoft-float +ARCH_FLAGS = -mthumb -mcpu=cortex-m3 $(FP_FLAGS) -mfix-cortex-m3-ldrd ################################################################################ # OpenOCD specific variables diff --git a/examples/lpc17xx/Makefile.include b/examples/lpc17xx/Makefile.include index d727d22..e5401c1 100644 --- a/examples/lpc17xx/Makefile.include +++ b/examples/lpc17xx/Makefile.include @@ -22,7 +22,8 @@ LIBNAME = opencm3_lpc17xx DEFS = -DLPC17XX -ARCH_FLAGS = -mthumb -mcpu=cortex-m3 -msoft-float -mfix-cortex-m3-ldrd +FP_FLAGS ?= -msoft-float +ARCH_FLAGS = -mthumb -mcpu=cortex-m3 $(FP_FLAGS) -mfix-cortex-m3-ldrd ################################################################################ # OpenOCD specific variables diff --git a/examples/lpc43xx/Makefile.include b/examples/lpc43xx/Makefile.include index 37a4e10..2c57a3b 100644 --- a/examples/lpc43xx/Makefile.include +++ b/examples/lpc43xx/Makefile.include @@ -24,7 +24,8 @@ LIBNAME = opencm3_lpc43xx DEFS = -DLPC43XX -ARCH_FLAGS = -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 +FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16 +ARCH_FLAGS = -mthumb -mcpu=cortex-m4 $(FP_FLAGS) ################################################################################ # OpenOCD specific variables diff --git a/examples/stm32/f0/Makefile.include b/examples/stm32/f0/Makefile.include index 3e3fded..8f4098c 100644 --- a/examples/stm32/f0/Makefile.include +++ b/examples/stm32/f0/Makefile.include @@ -21,7 +21,8 @@ LIBNAME = opencm3_stm32f0 DEFS = -DSTM32F0 -ARCH_FLAGS = -mthumb -mcpu=cortex-m0 -msoft-float +FP_FLAGS ?= -msoft-float +ARCH_FLAGS = -mthumb -mcpu=cortex-m0 $(FP_FLAGS) ################################################################################ # OpenOCD specific variables diff --git a/examples/stm32/f1/Makefile.include b/examples/stm32/f1/Makefile.include index 942ae9b..379c8a5 100644 --- a/examples/stm32/f1/Makefile.include +++ b/examples/stm32/f1/Makefile.include @@ -21,7 +21,8 @@ LIBNAME = opencm3_stm32f1 DEFS = -DSTM32F1 -ARCH_FLAGS = -mthumb -mcpu=cortex-m3 -msoft-float -mfix-cortex-m3-ldrd +FP_FLAGS ?= -msoft-float +ARCH_FLAGS = -mthumb -mcpu=cortex-m3 $(FP_FLAGS) -mfix-cortex-m3-ldrd ################################################################################ # OpenOCD specific variables diff --git a/examples/stm32/f2/Makefile.include b/examples/stm32/f2/Makefile.include index 42e7c09..cf6b9ae 100644 --- a/examples/stm32/f2/Makefile.include +++ b/examples/stm32/f2/Makefile.include @@ -22,7 +22,8 @@ LIBNAME = opencm3_stm32f2 DEFS = -DSTM32F2 -ARCH_FLAGS = -mthumb -mcpu=cortex-m3 -msoft-float -mfix-cortex-m3-ldrd +FP_FLAGS ?= -msoft-float +ARCH_FLAGS = -mthumb -mcpu=cortex-m3 $(FP_FLAGS) -mfix-cortex-m3-ldrd ################################################################################ diff --git a/examples/stm32/f3/Makefile.include b/examples/stm32/f3/Makefile.include index 4e062b8..cb6129d 100644 --- a/examples/stm32/f3/Makefile.include +++ b/examples/stm32/f3/Makefile.include @@ -22,7 +22,8 @@ LIBNAME = opencm3_stm32f3 DEFS = -DSTM32F3 -ARCH_FLAGS = -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 +FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16 +ARCH_FLAGS = -mthumb -mcpu=cortex-m4 $(FP_FLAGS) ################################################################################ # OpenOCD specific variables diff --git a/examples/stm32/f4/Makefile.include b/examples/stm32/f4/Makefile.include index 8d27ea8..0833f5d 100644 --- a/examples/stm32/f4/Makefile.include +++ b/examples/stm32/f4/Makefile.include @@ -22,7 +22,8 @@ LIBNAME = opencm3_stm32f4 DEFS = -DSTM32F4 -ARCH_FLAGS = -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 +FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16 +ARCH_FLAGS = -mthumb -mcpu=cortex-m4 $(FP_FLAGS) ################################################################################ # OpenOCD specific variables diff --git a/examples/stm32/l1/Makefile.include b/examples/stm32/l1/Makefile.include index 7cf8d06..e9a5feb 100644 --- a/examples/stm32/l1/Makefile.include +++ b/examples/stm32/l1/Makefile.include @@ -21,7 +21,8 @@ LIBNAME = opencm3_stm32l1 DEFS = -DSTM32L1 -ARCH_FLAGS = -mthumb -mcpu=cortex-m3 -msoft-float -mfix-cortex-m3-ldrd +FP_FLAGS ?= -msoft-float +ARCH_FLAGS = -mthumb -mcpu=cortex-m3 $(FP_FLAGS) -mfix-cortex-m3-ldrd ################################################################################ # OpenOCD specific variables