1
0
mirror of https://github.com/morrownr/8821cu-20210916.git synced 2024-11-08 20:25:10 +00:00

Merge pull request #158 from pocketbroadcast/patch-1

Fixing Makefile to respect out of tree builds as documented at https://docs.kernel.org/kbuild/modules.html
This commit is contained in:
morrownr 2024-08-21 15:08:50 -05:00 committed by GitHub
commit 1597dfeda6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2485,12 +2485,16 @@ ifeq ($(CONFIG_RTL8723B), y)
$(MODULE_NAME)-$(CONFIG_MP_INCLUDED)+= core/rtw_bt_mp.o
endif
obj-$(CONFIG_RTL8821CU) := $(MODULE_NAME).o
# export CONFIG_RTL8821CU=y to build driver in tree
# else driver will be built out of tree by default
ifeq ($(CONFIG_RTL8821CU), y)
obj-y := $(MODULE_NAME).o
else
obj-m := $(MODULE_NAME).o
endif
else
export CONFIG_RTL8821CU = m
all: modules
modules: