brektrou / rtl8821CU

Realtek RTL8811CU/RTL8821CU USB Wi-Fi adapter driver for Linux
GNU General Public License v2.0
1.59k stars 461 forks source link

Compilation fails when cross compiling for arm32 #129

Open githubchriste opened 3 years ago

githubchriste commented 3 years ago

Hi,

I'm trying to cross-compile the source code of the driver in order to install it on a i.MX6 arm cpu. My host OS is Ubuntu 18.04 and I'm trying to build the driver for a Yocto target. After running the 3 commands which should fix the arm build from the README.md document, I see this error when compiling:

"arm-oe-linux-gnueabi-gcc: error: -mfloat-abi=soft and -mfloat-abi=hard may not be used together".

Can you help me with this issue?

Thank you!

sylogic69 commented 2 years ago

Here is what I'm trying at line 2103 of the make file but I'm facing some other error furthur:

ifeq ($(ARCH), arm)

EXTRA_CFLAGS += -mfloat-abi=hard

LBITS := $(shell getconf LONG_BIT)
ifeq ($(LBITS),64)
   EXTRA_CFLAGS += -mfloat-abi=hard
else
   EXTRA_CFLAGS += -mfloat-abi=soft
endif

endif