net: wireless: rtlwifi: Fix issues with Makefiles
Subsystems (3)
cover net: wireless: rtlwifi: Fix issues with Makefiles
This patch series fixes two issues in the Makefiles for different rtlwifi drivers.
The first one lead to object files for the drivers always being included in obj-m even if the corresponding Kconfig option is set to 'y'.
The second one is likely to be a copy-and-paste mistake, which prevents compilation of the rtl8192ee driver unless the completely unrelated Kconfig option for the rtl8821ae driver (CONFIG_RTL8821AE) is also enabled.
Andreas Ruprecht (2):
net: wireless: rtlwifi: Do not always include drivers in obj-m
net: wireless: rtlwifi: rtl8192ee: Fix compilation of the driver
drivers/net/wireless/rtlwifi/rtl8192ee/Makefile | 5 +---- drivers/net/wireless/rtlwifi/rtl8723ae/Makefile | 3 --- drivers/net/wireless/rtlwifi/rtl8723be/Makefile | 3 --- drivers/net/wireless/rtlwifi/rtl8821ae/Makefile | 3 --- 4 files changed, 1 insertion(+), 13 deletions(-)
--
1.9.1
PATCH 1/2 net: wireless: rtlwifi: Do not always include drivers in obj-m
In four of the rtlwifi drivers, the Makefile contains superfluous statements indicating the compilation of the driver as an LKM regardless of the corresponding Kconfig option.
If the corresponding option is set to 'y', the build system will then see the object file in obj-m and obj-y, which leads to a compilation as a built-in only. Even though this leads to the desired behavior, the unconditional appearance in obj-m is confusing for someone reading the Makefile.
This patch removes the superfluous Makefile statements.
--- drivers/net/wireless/rtlwifi/rtl8192ee/Makefile | 3 --- drivers/net/wireless/rtlwifi/rtl8723ae/Makefile | 3 --- drivers/net/wireless/rtlwifi/rtl8723be/Makefile | 3 --- drivers/net/wireless/rtlwifi/rtl8821ae/Makefile | 3 --- 4 files changed, 12 deletions(-)
drivers/net/wireless/rtlwifi/rtl8192ee/Makefile +0 -3
@@ -1,6 +1,3 @@ -obj-m := rtl8192ee.o - - rtl8192ee-objs := \ dm.o \ fw.o \
drivers/net/wireless/rtlwifi/rtl8723ae/Makefile +0 -3
@@ -1,6 +1,3 @@ -obj-m := rtl8723ae.o - - rtl8723ae-objs := \ dm.o \ fw.o \
drivers/net/wireless/rtlwifi/rtl8723be/Makefile +0 -3
@@ -1,6 +1,3 @@ -obj-m := rtl8723be.o - - rtl8723be-objs := \ dm.o \ fw.o \
drivers/net/wireless/rtlwifi/rtl8821ae/Makefile +0 -3
@@ -1,6 +1,3 @@ -obj-m := rtl8821ae.o - - rtl8821ae-objs := \ dm.o \ fw.o \
Signature · 1 line
1.9.1
PATCH 2/2 net: wireless: rtlwifi: rtl8192ee: Fix compilation of the driver
In reply to Andreas RuprechtIn the Makefile for this driver, the wrong Kconfig option is used to trigger the compilation of the object file. This leads to the driver only being included into the kernel when both CONFIG_RTL8821AE and CONFIG_RTL8192AE are set to "y".
--- drivers/net/wireless/rtlwifi/rtl8192ee/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/rtlwifi/rtl8192ee/Makefile +1 -1
@@ -11,6 +11,6 @@ rtl8192ee-objs := \ trx.o \ -obj-$(CONFIG_RTL8821AE) += rtl8192ee.o +obj-$(CONFIG_RTL8192EE) += rtl8192ee.o ccflags-y += -D__CHECK_ENDIAN__
Signature · 1 line
1.9.1