--- zzzz-none-000/linux-3.10.107/drivers/net/wireless/ath/wil6210/Makefile 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/net/wireless/ath/wil6210/Makefile 2021-02-04 17:41:59.000000000 +0000 @@ -1,15 +1,36 @@ obj-$(CONFIG_WIL6210) += wil6210.o -wil6210-objs := main.o -wil6210-objs += netdev.o -wil6210-objs += cfg80211.o -wil6210-objs += pcie_bus.o -wil6210-objs += debugfs.o -wil6210-objs += wmi.o -wil6210-objs += interrupt.o -wil6210-objs += txrx.o +wil6210-y := main.o +wil6210-y += netdev.o +wil6210-y += cfg80211.o +wil6210-y += pcie_bus.o +wil6210-$(CONFIG_WIL6210_DEBUGFS) += debugfs.o +wil6210-y += sysfs.o +wil6210-y += wmi.o +wil6210-y += interrupt.o +wil6210-y += txrx.o +wil6210-y += txrx_edma.o +wil6210-y += debug.o +wil6210-y += rx_reorder.o +wil6210-y += ioctl.o +wil6210-y += fw.o +wil6210-y += pm.o +wil6210-y += pmc.o +wil6210-$(CONFIG_WIL6210_TRACING) += trace.o +wil6210-y += wil_platform.o +wil6210-y += ethtool.o +wil6210-y += wil_crash_dump.o +wil6210-y += p2p.o +wil6210-y += wil_platform_ipq.o +wil6210-y += ftm.o +wil6210-y += umac.o + +# for tracing framework to find trace.h +CFLAGS_trace.o := -I$(src) -ifeq (, $(findstring -W,$(EXTRA_CFLAGS))) - subdir-ccflags-y += -Werror -endif subdir-ccflags-y += -D__CHECK_ENDIAN__ + +# NSS Support +ifeq (y, $(CONFIG_WIL6210_NSS_SUPPORT)) +subdir-ccflags-y += -DCONFIG_WIL6210_NSS_SUPPORT +endif