1# $FreeBSD$ 2 3DEVIWLWIFIDIR= ${SRCTOP}/sys/contrib/dev/iwlwifi 4 5.PATH: ${DEVIWLWIFIDIR} 6 7KMOD= if_iwlwifi 8 9SRCS= iwl-drv.c 10SRCS+= iwl-dbg-tlv.c iwl-debug.c 11SRCS+= iwl-eeprom-parse.c iwl-eeprom-read.c 12SRCS+= iwl-io.c iwl-nvm-parse.c iwl-phy-db.c iwl-trans.c 13SRCS+= cfg/7000.c cfg/8000.c cfg/9000.c cfg/22000.c 14SRCS+= fw/dbg.c fw/dump.c fw/img.c fw/notif-wait.c 15SRCS+= fw/paging.c fw/pnvm.c fw/rs.c fw/smem.c fw/init.c 16#SRCS+= fw/uefi.c 17SRCS+= mvm/rs.c mvm/binding.c mvm/coex.c mvm/ftm-initiator.c 18SRCS+= mvm/ftm-responder.c mvm/fw.c mvm/mac-ctxt.c 19SRCS+= mvm/mac80211.c mvm/nvm.c mvm/offloading.c mvm/ops.c 20SRCS+= mvm/phy-ctxt.c mvm/power.c mvm/quota.c mvm/rs-fw.c mvm/rfi.c 21SRCS+= mvm/rx.c mvm/rxmq.c mvm/scan.c mvm/sf.c mvm/sta.c mvm/tdls.c 22SRCS+= mvm/time-event.c mvm/tt.c mvm/tx.c mvm/utils.c 23#SRCS+= mvm/led.c 24SRCS+= pcie/ctxt-info-gen3.c pcie/ctxt-info.c 25SRCS+= pcie/drv.c pcie/rx.c pcie/trans-gen2.c pcie/trans.c 26SRCS+= pcie/tx-gen2.c pcie/tx.c 27SRCS+= queue/tx.c 28 29SRCS+= iwl-devtrace.c 30 31# Other 32SRCS+= ${LINUXKPI_GENSRCS} 33SRCS+= opt_wlan.h opt_inet6.h opt_inet.h opt_acpi.h 34 35CFLAGS+= -DKBUILD_MODNAME='"iwlwifi"' 36 37CFLAGS+= -I${DEVIWLWIFIDIR} 38CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include 39CFLAGS+= -DCONFIG_IWLDVM=0 40CFLAGS+= -DCONFIG_IWLMVM=1 41# Helpful after fresh imports. 42#CFLAGS+= -ferror-limit=0 43 44#CFLAGS+= -DCONFIG_ACPI=1 45#CFLAGS+= -DCONFIG_INET=1 # Need LKPI TSO implementation. 46#CFLAGS+= -DCONFIG_IPV6=1 47#CFLAGS+= -DCONFIG_IWLWIFI_BCAST_FILTERING=1 48CFLAGS+= -DCONFIG_IWLWIFI_DEBUG=1 49#CFLAGS+= -DCONFIG_IWLWIFI_DEBUGFS=1 50#CFLAGS+= -DCONFIG_IWLWIFI_LEDS=1 51#CFLAGS+= -DCONFIG_IWLWIFI_OPMODE_MODULAR=1 52CFLAGS+= -DCONFIG_IWLWIFI_DEVICE_TRACING=1 53#CFLAGS+= -DCONFIG_LOCKDEP=1 54#CFLAGS+= -DCONFIG_MAC80211_DEBUGFS=1 55#CFLAGS+= -DCONFIG_NL80211_TESTMODE=1 56#CFLAGS+= -DCONFIG_PM=1 57#CFLAGS+= -DCONFIG_PM_SLEEP=1 58#CFLAGS+= -DCONFIG_THERMAL=1 59#CFLAGS+= -DCONFIG_EFI=1 60 61# GCC warns about NULL format strings passed to iwl_fw_dbg_collect_trig 62CWARNFLAGS.gcc+= -Wno-format 63 64.include <bsd.kmod.mk> 65