[BUILD] Allow to override FP_FLAGS in make as specified in libopencm3 README

This commit is contained in:
Frantisek Burian
2014-01-09 07:33:11 +01:00
parent 94ddb178eb
commit ffe9376c55
11 changed files with 22 additions and 11 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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
################################################################################

View File

@@ -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

View File

@@ -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

View File

@@ -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