xref: /linux/drivers/net/wireless/ath/ath9k/Makefile (revision 14e77332e74603efab8347c89d3cda447c3b97c9)
1# SPDX-License-Identifier: ISC
2ath9k-y +=	beacon.o \
3		gpio.o \
4		init.o \
5		main.o \
6		recv.o \
7		xmit.o \
8		link.o \
9		antenna.o \
10		channel.o
11
12ath9k-$(CONFIG_ATH9K_BTCOEX_SUPPORT) += mci.o
13ath9k-$(CONFIG_ATH9K_PCI) += pci.o
14ath9k-$(CONFIG_ATH9K_AHB) += ahb.o
15ath9k-$(CONFIG_ATH9K_DFS_DEBUGFS) += dfs_debug.o
16ath9k-$(CONFIG_ATH9K_DFS_CERTIFIED) += dfs.o
17ath9k-$(CONFIG_ATH9K_TX99) += tx99.o
18ath9k-$(CONFIG_ATH9K_WOW) += wow.o
19ath9k-$(CONFIG_ATH9K_HWRNG) += rng.o
20
21ath9k-$(CONFIG_ATH9K_DEBUGFS) += debug.o
22
23ath9k-$(CONFIG_ATH9K_STATION_STATISTICS) += debug_sta.o
24
25obj-$(CONFIG_ATH9K) += ath9k.o
26
27ath9k_hw-y:=	\
28		ar9002_hw.o \
29		ar9003_hw.o \
30		hw.o \
31		ar9003_phy.o \
32		ar9002_phy.o \
33		ar5008_phy.o \
34		ar9002_calib.o \
35		ar9003_calib.o \
36		calib.o \
37		eeprom.o \
38		eeprom_def.o \
39		eeprom_4k.o \
40		eeprom_9287.o \
41		ani.o \
42		mac.o \
43		ar9002_mac.o \
44		ar9003_mac.o \
45		ar9003_eeprom.o \
46		ar9003_paprd.o
47
48# FIXME: temporarily silence -Warray-bounds on non W=1+ builds
49ifndef KBUILD_EXTRA_WARN
50CFLAGS_mac.o += -Wno-array-bounds
51endif
52
53ath9k_hw-$(CONFIG_ATH9K_WOW) += ar9003_wow.o
54
55ath9k_hw-$(CONFIG_ATH9K_BTCOEX_SUPPORT) += btcoex.o \
56					   ar9003_mci.o \
57					   ar9003_aic.o
58
59ath9k_hw-$(CONFIG_ATH9K_PCOEM) += ar9003_rtt.o
60
61ath9k_hw-$(CONFIG_ATH9K_DYNACK) += dynack.o
62
63obj-$(CONFIG_ATH9K_HW) += ath9k_hw.o
64
65obj-$(CONFIG_ATH9K_COMMON) += ath9k_common.o
66ath9k_common-y:=	common.o \
67			common-init.o \
68			common-beacon.o \
69
70ath9k_common-$(CONFIG_ATH9K_COMMON_DEBUG) += common-debug.o
71ath9k_common-$(CONFIG_ATH9K_COMMON_SPECTRAL) += common-spectral.o
72
73ath9k_htc-y +=	htc_hst.o \
74		hif_usb.o \
75		wmi.o \
76		htc_drv_txrx.o \
77		htc_drv_main.o \
78		htc_drv_beacon.o \
79		htc_drv_init.o \
80		htc_drv_gpio.o
81
82ath9k_htc-$(CONFIG_ATH9K_HTC_DEBUGFS) += htc_drv_debug.o
83
84obj-$(CONFIG_ATH9K_HTC) += ath9k_htc.o
85
86obj-$(CONFIG_ATH9K_PCI_NO_EEPROM) += ath9k_pci_owl_loader.o
87