brektrou / rtl8821CU

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

[FIXED] MakeFile does not work on Ubuntu ARM (Tested on Apple M1 via Parallels) #142

Open sebastianpulido opened 2 years ago

sebastianpulido commented 2 years ago

Hi, The MakeFile as it is doesnt really works with Ubuntu ARM (Ubuntu 20.04.2 LTS) / Apple M1 (Parallels). I have fixed it for this scenario. Just a few changes in few lines of code.

The MakeFile that now works on my Apple M1 machine can found at: https://github.com/sebastianpulido/rtl8821CU/blob/master/Makefile

Thanks, Seb.

sebastianpulido commented 2 years ago

diff UbuntuMakefile Makefile
102c102 < CONFIG_MP_VHT_HW_TX_MODE = n

CONFIG_MP_VHT_HW_TX_MODE = y

1216,1217c1216 < #EXTRA_CFLAGS += -mhard-float < EXTRA_CFLAGS += --warn-format EXTRA_CFLAGS += -mhard-float

1265,1266c1264 < #ARCH := $(R_ARCH) < ARCH := arm64 ARCH := $(R_ARCH)

2214c2212 < $(MAKE) ARCH=arm64 CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules