rtl8821cu: fix build on x86 platform

Fix: #286
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
This commit is contained in:
AmadeusGhost 2021-02-19 18:09:01 +08:00 committed by CN_SZTL
parent 6a2066c9e5
commit 75d4e97c4f
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
5 changed files with 4 additions and 11 deletions

View File

@ -66,6 +66,10 @@ ifeq ($(ARCH),arm)
EXTRA_CFLAGS += -mfloat-abi=softfp
endif
ifeq ($(BOARD),x86)
EXTRA_CFLAGS += -mhard-float
endif
MAKE_OPTS:= \
$(KERNEL_MAKE_FLAGS) \
M="$(PKG_BUILD_DIR)" \

View File

@ -1,11 +0,0 @@
--- a/Makefile
+++ b/Makefile
@@ -2103,8 +2103,6 @@ ifeq ($(ARCH), i386)
EXTRA_CFLAGS += -mhard-float
else ifeq ($(ARCH), x86_64)
EXTRA_CFLAGS += -mhard-float
-else ifeq ($(ARCH), arm)
-EXTRA_CFLAGS += -mfloat-abi=hard
endif
ifeq ($(CONFIG_MULTIDRV), y)