diff --git a/Makefile b/Makefile index a23673b..7ba03bb 100755 --- a/Makefile +++ b/Makefile @@ -1118,16 +1118,6 @@ endif ifeq ($(CONFIG_MP_VHT_HW_TX_MODE), y) EXTRA_CFLAGS += -DCONFIG_MP_VHT_HW_TX_MODE -ifeq ($(CONFIG_PLATFORM_I386_PC), y) -## For I386 X86 ToolChain use Hardware FLOATING -EXTRA_CFLAGS += -mhard-float -EXTRA_CFLAGS += -DMARK_KERNEL_PFU -else -## For ARM ToolChain use Hardware FLOATING -# Raspbian kernel is with soft-float. -# 'softfp' allows FP instructions, but no FP on function call interfaces -EXTRA_CFLAGS += -mfloat-abi=softfp -endif endif ifeq ($(CONFIG_APPEND_VENDOR_IE_ENABLE), y) @@ -2134,6 +2124,22 @@ endif endif +ifeq ($(ARCH), i386) +EXTRA_CFLAGS += -mhard-float +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 ################################ ifeq ($(CONFIG_CUSTOMER_HUAWEI_GENERAL), y) CONFIG_CUSTOMER_HUAWEI = y