xref: /freebsd/sys/modules/iwlwifi/Makefile (revision 59c8e88e72633afbc47a4ace0d2170d00d51f7dc)
1
2DEVIWLWIFIDIR=	${SRCTOP}/sys/contrib/dev/iwlwifi
3
4.PATH: ${DEVIWLWIFIDIR}
5
6WITH_CONFIG_PM=	0
7WITH_DEBUGFS=	0
8
9KMOD=	if_iwlwifi
10
11SRCS=	iwl-drv.c
12SRCS+=	iwl-dbg-tlv.c iwl-debug.c
13SRCS+=	iwl-eeprom-parse.c iwl-eeprom-read.c
14SRCS+=	iwl-io.c iwl-nvm-parse.c iwl-phy-db.c iwl-trans.c
15SRCS+=	cfg/7000.c cfg/8000.c cfg/9000.c cfg/22000.c
16SRCS+=	cfg/ax210.c cfg/bz.c cfg/sc.c
17SRCS+=	fw/dbg.c fw/dump.c fw/img.c fw/notif-wait.c
18SRCS+=	fw/paging.c fw/pnvm.c fw/rs.c fw/smem.c fw/init.c
19#SRCS+=	fw/uefi.c
20SRCS+=	mvm/rs.c mvm/binding.c mvm/coex.c mvm/ftm-initiator.c
21SRCS+=	mvm/ftm-responder.c mvm/fw.c mvm/mac-ctxt.c
22SRCS+=	mvm/mac80211.c mvm/nvm.c mvm/offloading.c mvm/ops.c
23SRCS+=	mvm/phy-ctxt.c mvm/power.c mvm/quota.c mvm/rs-fw.c mvm/rfi.c
24SRCS+=	mvm/rx.c mvm/rxmq.c mvm/scan.c mvm/sf.c mvm/sta.c mvm/tdls.c
25SRCS+=	mvm/time-event.c mvm/tt.c mvm/tx.c mvm/utils.c
26SRCS+=	mvm/link.c
27SRCS+=	mvm/mld-key.c mvm/mld-mac.c mvm/mld-mac80211.c mvm/mld-sta.c
28SRCS+=	mvm/ptp.c mvm/time-sync.c
29#SRCS+=	mvm/led.c
30SRCS+=	pcie/ctxt-info-gen3.c pcie/ctxt-info.c
31SRCS+=	pcie/drv.c pcie/rx.c pcie/trans-gen2.c pcie/trans.c
32SRCS+=	pcie/tx-gen2.c pcie/tx.c
33SRCS+=	queue/tx.c
34
35.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0
36SRCS+=	fw/debugfs.c mvm/debugfs.c mvm/debugfs-vif.c
37CFLAGS+=	-DCONFIG_IWLWIFI_DEBUGFS=${WITH_DEBUGFS}
38CFLAGS+=	-DCONFIG_MAC80211_DEBUGFS=${WITH_DEBUGFS}
39.endif
40.if defined(WITH_CONFIG_PM) && ${WITH_CONFIG_PM} > 0
41SRCS+=	mvm/d3.c
42CFLAGS+=	-DCONFIG_PM=${WITH_CONFIG_PM}
43CFLAGS+=	-DCONFIG_PM_SLEEP=${WITH_CONFIG_PM}
44.endif
45
46SRCS+=	iwl-devtrace.c
47
48# Other
49SRCS+=	${LINUXKPI_GENSRCS}
50SRCS+=	opt_wlan.h opt_inet6.h opt_inet.h opt_acpi.h
51
52CFLAGS+=	-DKBUILD_MODNAME='"iwlwifi"'
53
54CFLAGS+=	-I${DEVIWLWIFIDIR}
55CFLAGS+=	${LINUXKPI_INCLUDES}
56CFLAGS+=	-DCONFIG_IWLDVM=0
57CFLAGS+=	-DCONFIG_IWLMVM=1
58# Helpful after fresh imports.
59#CFLAGS+=	-ferror-limit=0
60
61#CFLAGS+=	-DCONFIG_ACPI=1
62#CFLAGS+=	-DCONFIG_INET=1		# Need LKPI TSO implementation.
63#CFLAGS+=	-DCONFIG_IPV6=1
64CFLAGS+=	-DCONFIG_IWLWIFI_DEBUG=1
65#CFLAGS+=	-DCONFIG_IWLWIFI_LEDS=1
66#CFLAGS+=	-DCONFIG_IWLWIFI_OPMODE_MODULAR=1
67CFLAGS+=	-DCONFIG_IWLWIFI_DEVICE_TRACING=1
68#CFLAGS+=	-DCONFIG_LOCKDEP=1
69#CFLAGS+=	-DCONFIG_NL80211_TESTMODE=1
70#CFLAGS+=	-DCONFIG_THERMAL=1
71#CFLAGS+=	-DCONFIG_EFI=1
72
73.include <bsd.kmod.mk>
74