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:
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.
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. ButCONFIG_RTL8822BU
is not defined at this stage, and it is also only defined (and exported) a few lines later, and only in theelse
part 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.