arm: Add support for both floating point ABIs
Add a Kconfig option to select between the Hard and Soft Float ABIs. We also default to the Hard Float ABI as this is what older SDK versions supported. JIRA: ZEP-555 Change-Id: I2180c98cd7556ab49f5ca9b46b31add2c11bd07b Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
966118ee18
commit
79606bccf0
2 changed files with 27 additions and 0 deletions
|
@ -16,8 +16,13 @@ cflags-cortex-m4 = $(call cc-option,-mabi=aapcs -mthumb -mcpu=cortex-m4) \
|
|||
$(call cc-option,-mthumb -march=armv7e-m)
|
||||
|
||||
ifeq ($(CONFIG_FLOAT), y)
|
||||
ifeq ($(CONFIG_FP_SOFTABI), y)
|
||||
cflags-cortex-m4 += $(call cc-option,-mfloat-abi=softfp -mfpu=fpv4-sp-d16)
|
||||
endif
|
||||
ifeq ($(CONFIG_FP_HARDABI), y)
|
||||
cflags-cortex-m4 += $(call cc-option,-mfloat-abi=hard -mfpu=fpv4-sp-d16)
|
||||
endif
|
||||
endif
|
||||
|
||||
cflags-cortex-m7 = $(call cc-option,-mabi=aapcs -mthumb -mcpu=cortex-m7) \
|
||||
$(call cc-option,-mthumb -march=armv7e-m)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue