From 23368c91c21ac82dbe2ae670fe529c640d805950 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Mon, 11 Nov 2019 19:20:18 +0100 Subject: [PATCH] Fixup for the -mhard-float and -mfloat-abi=softfp RPI tags --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 45a4b81..27fbf0b 100755 --- a/Makefile +++ b/Makefile @@ -1124,6 +1124,9 @@ ifeq ($(CONFIG_PLATFORM_I386_PC), y) ## For I386 X86 ToolChain use Hardware FLOATING EXTRA_CFLAGS += -mhard-float EXTRA_CFLAGS += -DMARK_KERNEL_PFU +else ifeq ($(CONFIG_PLATFORM_ARM_RPI), y) +## For Rpi3: use hardware floating, but not on the api +EXTRA_CFLAGS += -mfloat-abi=softfp else ## For ARM ToolChain use Hardware FLOATING # Raspbian kernel is with soft-float. @@ -1156,7 +1159,6 @@ INSTALL_PREFIX := STAGINGMODDIR := /lib/modules/$(KVER)/kernel/drivers/staging endif - ifeq ($(CONFIG_PLATFORM_ARM_RPI), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT