Merge pull request #814 from CGarces/patch-3

Fix error on arm builds
This commit is contained in:
Christian Bremvåg 2021-01-18 09:48:01 +01:00 committed by GitHub
commit 059e06a51b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2130,14 +2130,6 @@ EXTRA_CFLAGS += -DMARK_KERNEL_PFU
else ifeq ($(ARCH), x86_64)
EXTRA_CFLAGS += -mhard-float
EXTRA_CFLAGS += -DMARK_KERNEL_PFU
else ifeq ($(ARCH), arm)
# Raspbian kernel is with soft-float.
# 'softfp' allows FP instructions, but no FP on function call interfaces
ifeq ($(CONFIG_PLATFORM_ARM_RPI), y)
EXTRA_CFLAGS += -mfloat-abi=softfp
else
EXTRA_CFLAGS += -mfloat-abi=hard
endif
endif
########### CUSTOMER ################################