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

Kernel module is not built with a dkms package due to CONFIG_RTL8822BU not being defined #234

Open
dleidert opened this issue Nov 26, 2022 · 1 comment

Comments

@dleidert
Copy link

Hi. I created a Debian -dkms package from your source for a Raspberry Pi-based project (latest Raspbian, arm64), and the module didn't build during installation. dkms said that it was unable to determine the module to build. When I debugged the issue, I found this:

https://github.com/cilynx/rtl88x2bu/blob/5.8.7.1_35809.20191129_COEX20191120-7777/Makefile#L2383-L2387

The obj-m variable would be necessary to let dkms know, that we are building whatever $(MODULE_NAME) holds. But CONFIG_RTL8822BU is not defined at this stage, and it is also only defined (and exported) a few lines later, and only in the elsepart of some condition you are using, so it cannot be defined at all in line 2383 IMHO. If I move the declaration up, everything works as expected. I'm honestly a bit perplexed here that other people have not yet stumbled into this issue because this seems like a legitimate bug to me.

@MaxG87
Copy link
Collaborator

MaxG87 commented Jan 5, 2023

This looks very odd, indeed. Would you like to create a PR and ping me afterwards?

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

2 participants