[BUILD] Allow to override FP_FLAGS in make as specified in libopencm3 README
This commit is contained in:
@@ -21,7 +21,8 @@
|
|||||||
LIBNAME = opencm3_lm3s
|
LIBNAME = opencm3_lm3s
|
||||||
DEFS = -DLM3S
|
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
|
# OpenOCD specific variables
|
||||||
|
|||||||
@@ -22,7 +22,8 @@
|
|||||||
LIBNAME = opencm3_lm4f
|
LIBNAME = opencm3_lm4f
|
||||||
DEFS = -DLM4F
|
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
|
# OpenOCD specific variables
|
||||||
|
|||||||
@@ -21,7 +21,8 @@
|
|||||||
LIBNAME = opencm3_lpc13xx
|
LIBNAME = opencm3_lpc13xx
|
||||||
DEFS = -DLPC13XX
|
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
|
# OpenOCD specific variables
|
||||||
|
|||||||
@@ -22,7 +22,8 @@
|
|||||||
LIBNAME = opencm3_lpc17xx
|
LIBNAME = opencm3_lpc17xx
|
||||||
DEFS = -DLPC17XX
|
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
|
# OpenOCD specific variables
|
||||||
|
|||||||
@@ -24,7 +24,8 @@
|
|||||||
LIBNAME = opencm3_lpc43xx
|
LIBNAME = opencm3_lpc43xx
|
||||||
DEFS = -DLPC43XX
|
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
|
# OpenOCD specific variables
|
||||||
|
|||||||
@@ -21,7 +21,8 @@
|
|||||||
LIBNAME = opencm3_stm32f0
|
LIBNAME = opencm3_stm32f0
|
||||||
DEFS = -DSTM32F0
|
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
|
# OpenOCD specific variables
|
||||||
|
|||||||
@@ -21,7 +21,8 @@
|
|||||||
LIBNAME = opencm3_stm32f1
|
LIBNAME = opencm3_stm32f1
|
||||||
DEFS = -DSTM32F1
|
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
|
# OpenOCD specific variables
|
||||||
|
|||||||
@@ -22,7 +22,8 @@
|
|||||||
LIBNAME = opencm3_stm32f2
|
LIBNAME = opencm3_stm32f2
|
||||||
DEFS = -DSTM32F2
|
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
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|||||||
@@ -22,7 +22,8 @@
|
|||||||
LIBNAME = opencm3_stm32f3
|
LIBNAME = opencm3_stm32f3
|
||||||
DEFS = -DSTM32F3
|
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
|
# OpenOCD specific variables
|
||||||
|
|||||||
@@ -22,7 +22,8 @@
|
|||||||
LIBNAME = opencm3_stm32f4
|
LIBNAME = opencm3_stm32f4
|
||||||
DEFS = -DSTM32F4
|
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
|
# OpenOCD specific variables
|
||||||
|
|||||||
@@ -21,7 +21,8 @@
|
|||||||
LIBNAME = opencm3_stm32l1
|
LIBNAME = opencm3_stm32l1
|
||||||
DEFS = -DSTM32L1
|
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
|
# OpenOCD specific variables
|
||||||
|
|||||||
Reference in New Issue
Block a user