Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sebastianpulido opened this issue Jul 19, 2021 · 1 comment

Comments

@sebastianpulido
Copy link

sebastianpulido commented Jul 19, 2021

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 sebastianpulido changed the title [FIXED] MakeFile does not work on Ubuntu on Apple M1 (Ubuntu) [FIXED] MakeFile does not work on Ubuntu on Apple M1 (Parallels) Jul 19, 2021
@sebastianpulido sebastianpulido changed the title [FIXED] MakeFile does not work on Ubuntu on Apple M1 (Parallels) [FIXED] MakeFile does not work on Ubuntu ARM on Apple M1 (Parallels) Jul 19, 2021
@sebastianpulido
Copy link
Author

sebastianpulido commented Jul 20, 2021

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

@sebastianpulido sebastianpulido changed the title [FIXED] MakeFile does not work on Ubuntu ARM on Apple M1 (Parallels) [FIXED] MakeFile does not work on Ubuntu ARM (Tested on Apple M1 via Parallels) Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant