Skip to contentSkip to conversation

iwlwifi: fix modular 3945 only build

PATCH New Johannes Berg 1 participant 1 message Nov 18, 2010 Networking drivers (wireless)

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 1/1 iwlwifi: fix modular 3945 only build

From: Johannes Berg <[email protected]>

If only 3945 is selected, and is a module, build fails because iwl-legacy.c won't be compiled. Fix this by adding it to the build correctly.

This doesn't happen for 4965 because it is a bool option, not tristate, since it's built into the AGN module.

---
 drivers/net/wireless/iwlwifi/Makefile |    4 ++++
 1 file changed, 4 insertions(+)
drivers/net/wireless/iwlwifi/Makefile +4 -0
@@ -7,6 +7,10 @@ iwlcore-$(CONFIG_IWL4965) += iwl-legacy.
 iwlcore-$(CONFIG_IWLWIFI_DEBUGFS) += iwl-debugfs.o
 iwlcore-$(CONFIG_IWLWIFI_DEVICE_TRACING) += iwl-devtrace.o
 
+# If 3945 is selected only, iwl-legacy.o will be added
+# to iwlcore-m above, but it needs to be built in.
+iwlcore-objs += $(iwlcore-m)
+
 CFLAGS_iwl-devtrace.o := -I$(src)
 
 # AGN