mirror of
https://github.com/morrownr/8821cu-20210916.git
synced 2024-12-22 14:26:30 +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:
commit
1597dfeda6
10
Makefile
10
Makefile
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user