From 75d4e97c4f41f37bc0e7110298bd5293fccff5f5 Mon Sep 17 00:00:00 2001 From: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com> Date: Fri, 19 Feb 2021 18:09:01 +0800 Subject: [PATCH] rtl8821cu: fix build on x86 platform Fix: #286 Signed-off-by: CN_SZTL --- package/ctcgfw/rtl8821cu/Makefile | 4 ++++ .../rtl8821cu/patches/010-remove-extra-cflags.patch | 11 ----------- ...peat-flies.patch => 010-remove-repeat-flies.patch} | 0 ...ble.patch => 020-change-value-of-vht-enable.patch} | 0 ...{040-wireless-5.8.patch => 030-wireless-5.8.patch} | 0 5 files changed, 4 insertions(+), 11 deletions(-) delete mode 100644 package/ctcgfw/rtl8821cu/patches/010-remove-extra-cflags.patch rename package/ctcgfw/rtl8821cu/patches/{020-remove-repeat-flies.patch => 010-remove-repeat-flies.patch} (100%) rename package/ctcgfw/rtl8821cu/patches/{030-change-value-of-vht-enable.patch => 020-change-value-of-vht-enable.patch} (100%) rename package/ctcgfw/rtl8821cu/patches/{040-wireless-5.8.patch => 030-wireless-5.8.patch} (100%) diff --git a/package/ctcgfw/rtl8821cu/Makefile b/package/ctcgfw/rtl8821cu/Makefile index fed7bf4d41..1c716a7bef 100644 --- a/package/ctcgfw/rtl8821cu/Makefile +++ b/package/ctcgfw/rtl8821cu/Makefile @@ -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)" \ diff --git a/package/ctcgfw/rtl8821cu/patches/010-remove-extra-cflags.patch b/package/ctcgfw/rtl8821cu/patches/010-remove-extra-cflags.patch deleted file mode 100644 index bc753af413..0000000000 --- a/package/ctcgfw/rtl8821cu/patches/010-remove-extra-cflags.patch +++ /dev/null @@ -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) diff --git a/package/ctcgfw/rtl8821cu/patches/020-remove-repeat-flies.patch b/package/ctcgfw/rtl8821cu/patches/010-remove-repeat-flies.patch similarity index 100% rename from package/ctcgfw/rtl8821cu/patches/020-remove-repeat-flies.patch rename to package/ctcgfw/rtl8821cu/patches/010-remove-repeat-flies.patch diff --git a/package/ctcgfw/rtl8821cu/patches/030-change-value-of-vht-enable.patch b/package/ctcgfw/rtl8821cu/patches/020-change-value-of-vht-enable.patch similarity index 100% rename from package/ctcgfw/rtl8821cu/patches/030-change-value-of-vht-enable.patch rename to package/ctcgfw/rtl8821cu/patches/020-change-value-of-vht-enable.patch diff --git a/package/ctcgfw/rtl8821cu/patches/040-wireless-5.8.patch b/package/ctcgfw/rtl8821cu/patches/030-wireless-5.8.patch similarity index 100% rename from package/ctcgfw/rtl8821cu/patches/040-wireless-5.8.patch rename to package/ctcgfw/rtl8821cu/patches/030-wireless-5.8.patch