Compare commits

...

4 Commits

Author SHA1 Message Date
mattiggg
1620f7c8c5
Merge 27235c5ba98c3c28cb32b1f916f7e2ec1f0554dc into 1597dfeda6cefd2e603fc7020ceca226d05fb108 2024-09-14 20:51:39 +02:00
morrownr
1597dfeda6
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
2024-08-21 15:08:50 -05:00
pocketbroadcast
9edb1b026c
Fixing Makefile to respect out of tree builds as documented at https://docs.kernel.org/kbuild/modules.html
This change fixes an empty module target when invoked by `make -C <path_to_kernel_src> M=$PWD` due to missing `export CONFIG_RTL8821CU = m`.

Since kbuild only respects `obj-y := ...` for in-tree and `obj-m := ...` for out of tree builds, it is safe to assume obj-m to be the default as this mimicks existing behavior, still retaining the option to build in-tree if needed.
2024-08-21 20:44:39 +02:00
mattiggg
27235c5ba9
Create raölink 2024-07-20 18:54:06 +02:00
2 changed files with 8 additions and 3 deletions

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:

1
raölink Normal file
View File

@ -0,0 +1 @@