viktor.barna@xxxxxxxxxx writes: > +cl-objs += \ > + wrs.o \ > + phy.o \ > + key.o \ > + sta.o \ > + hw.o \ > + chip.o \ > + fw.o \ > + utils.o \ > + channel.o \ > + rx.o \ > + tx.o \ > + main.o \ > + mac_addr.o \ > + ampdu.o \ > + dfs.o \ > + enhanced_tim.o \ > + e2p.o \ > + calib.o \ > + stats.o \ > + power.o \ > + motion_sense.o \ > + bf.o \ > + sounding.o \ > + debug.o \ > + temperature.o \ > + recovery.o \ > + rates.o \ > + radio.o \ > + config.o \ > + tcv.o \ > + traffic.o \ > + vns.o \ > + maintenance.o \ > + ela.o \ > + rfic.o \ > + vif.o \ > + dsp.o \ > + pci.o \ > + version.o \ > + regdom.o \ > + mac80211.o \ > + platform.o \ > + scan.o > + > +ifneq ($(CONFIG_CL8K),) > +cl8k-y += $(cl-objs) > +endif I don't understand why you need ifneq here. Please check how are other drivers (like iwlwifi) do it, Makefile can be really simple -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches