xref: /freebsd/sys/modules/iwlwifi/Makefile (revision e32fecd0c2c3ee37c47ee100f169e7eb0282a873)
1# $FreeBSD$
2
3DEVIWLWIFIDIR=	${SRCTOP}/sys/contrib/dev/iwlwifi
4
5.PATH: ${DEVIWLWIFIDIR}
6
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+=	fw/dbg.c fw/dump.c fw/img.c fw/notif-wait.c
17SRCS+=	fw/paging.c fw/pnvm.c fw/rs.c fw/smem.c fw/init.c
18#SRCS+=	fw/uefi.c
19SRCS+=	mvm/rs.c mvm/binding.c mvm/coex.c mvm/ftm-initiator.c
20SRCS+=	mvm/ftm-responder.c mvm/fw.c mvm/mac-ctxt.c
21SRCS+=	mvm/mac80211.c mvm/nvm.c mvm/offloading.c mvm/ops.c
22SRCS+=	mvm/phy-ctxt.c mvm/power.c mvm/quota.c mvm/rs-fw.c mvm/rfi.c
23SRCS+=	mvm/rx.c mvm/rxmq.c mvm/scan.c mvm/sf.c mvm/sta.c mvm/tdls.c
24SRCS+=	mvm/time-event.c mvm/tt.c mvm/tx.c mvm/utils.c
25#SRCS+=	mvm/led.c
26SRCS+=	pcie/ctxt-info-gen3.c pcie/ctxt-info.c
27SRCS+=	pcie/drv.c pcie/rx.c pcie/trans-gen2.c pcie/trans.c
28SRCS+=	pcie/tx-gen2.c pcie/tx.c
29SRCS+=	queue/tx.c
30
31.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0
32SRCS+=	fw/debugfs.c mvm/debugfs.c mvm/debugfs-vif.c
33CFLAGS+=	-DCONFIG_IWLWIFI_DEBUGFS=${WITH_DEBUGFS}
34CFLAGS+=	-DCONFIG_MAC80211_DEBUGFS=${WITH_DEBUGFS}
35.endif
36
37SRCS+=	iwl-devtrace.c
38
39# Other
40SRCS+=	${LINUXKPI_GENSRCS}
41SRCS+=	opt_wlan.h opt_inet6.h opt_inet.h opt_acpi.h
42
43CFLAGS+=	-DKBUILD_MODNAME='"iwlwifi"'
44
45CFLAGS+=	-I${DEVIWLWIFIDIR}
46CFLAGS+=	${LINUXKPI_INCLUDES}
47CFLAGS+=	-DCONFIG_IWLDVM=0
48CFLAGS+=	-DCONFIG_IWLMVM=1
49# Helpful after fresh imports.
50#CFLAGS+=	-ferror-limit=0
51
52#CFLAGS+=	-DCONFIG_ACPI=1
53#CFLAGS+=	-DCONFIG_INET=1		# Need LKPI TSO implementation.
54#CFLAGS+=	-DCONFIG_IPV6=1
55CFLAGS+=	-DCONFIG_IWLWIFI_DEBUG=1
56#CFLAGS+=	-DCONFIG_IWLWIFI_LEDS=1
57#CFLAGS+=	-DCONFIG_IWLWIFI_OPMODE_MODULAR=1
58CFLAGS+=	-DCONFIG_IWLWIFI_DEVICE_TRACING=1
59#CFLAGS+=	-DCONFIG_LOCKDEP=1
60#CFLAGS+=	-DCONFIG_NL80211_TESTMODE=1
61#CFLAGS+=	-DCONFIG_PM=1
62#CFLAGS+=	-DCONFIG_PM_SLEEP=1
63#CFLAGS+=	-DCONFIG_THERMAL=1
64#CFLAGS+=	-DCONFIG_EFI=1
65
66.include <bsd.kmod.mk>
67