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

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: