1DEVIWLWIFIDIR= ${SRCTOP}/sys/contrib/dev/iwlwifi 2 3.PATH: ${DEVIWLWIFIDIR} 4 5WITH_CONFIG_PM= 0 6WITH_DEBUGFS= 0 7 8KMOD= if_iwlwifi 9 10SRCS= iwl-drv.c 11SRCS+= iwl-dbg-tlv.c iwl-debug.c 12SRCS+= iwl-eeprom-parse.c iwl-eeprom-read.c 13SRCS+= iwl-io.c iwl-nvm-parse.c iwl-phy-db.c iwl-trans.c 14SRCS+= cfg/7000.c cfg/8000.c cfg/9000.c cfg/22000.c 15SRCS+= cfg/ax210.c cfg/bz.c cfg/sc.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 25SRCS+= mvm/link.c 26SRCS+= mvm/mld-key.c mvm/mld-mac.c mvm/mld-mac80211.c mvm/mld-sta.c 27SRCS+= mvm/ptp.c mvm/time-sync.c 28#SRCS+= mvm/led.c 29SRCS+= pcie/ctxt-info-gen3.c pcie/ctxt-info.c 30SRCS+= pcie/drv.c pcie/rx.c pcie/trans-gen2.c pcie/trans.c 31SRCS+= pcie/tx-gen2.c pcie/tx.c 32SRCS+= queue/tx.c 33 34.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0 35SRCS+= fw/debugfs.c mvm/debugfs.c mvm/debugfs-vif.c 36CFLAGS+= -DCONFIG_IWLWIFI_DEBUGFS=${WITH_DEBUGFS} 37CFLAGS+= -DCONFIG_MAC80211_DEBUGFS=${WITH_DEBUGFS} 38.endif 39.if defined(WITH_CONFIG_PM) && ${WITH_CONFIG_PM} > 0 40SRCS+= mvm/d3.c 41CFLAGS+= -DCONFIG_PM=${WITH_CONFIG_PM} 42CFLAGS+= -DCONFIG_PM_SLEEP=${WITH_CONFIG_PM} 43.endif 44 45SRCS+= iwl-devtrace.c 46 47# Other 48SRCS+= ${LINUXKPI_GENSRCS} 49SRCS+= opt_wlan.h opt_inet6.h opt_inet.h opt_acpi.h 50 51CFLAGS+= -DKBUILD_MODNAME='"iwlwifi"' 52 53CFLAGS+= -I${DEVIWLWIFIDIR} 54CFLAGS+= ${LINUXKPI_INCLUDES} 55CFLAGS+= -DCONFIG_IWLDVM=0 56CFLAGS+= -DCONFIG_IWLMVM=1 57# Helpful after fresh imports. 58#CFLAGS+= -ferror-limit=0 59 60#CFLAGS+= -DCONFIG_ACPI=1 61#CFLAGS+= -DCONFIG_INET=1 # Need LKPI TSO implementation. 62#CFLAGS+= -DCONFIG_IPV6=1 63CFLAGS+= -DCONFIG_IWLWIFI_DEBUG=1 64#CFLAGS+= -DCONFIG_IWLWIFI_LEDS=1 65#CFLAGS+= -DCONFIG_IWLWIFI_OPMODE_MODULAR=1 66CFLAGS+= -DCONFIG_IWLWIFI_DEVICE_TRACING=1 67#CFLAGS+= -DCONFIG_LOCKDEP=1 68#CFLAGS+= -DCONFIG_NL80211_TESTMODE=1 69#CFLAGS+= -DCONFIG_THERMAL=1 70#CFLAGS+= -DCONFIG_EFI=1 71 72.include <bsd.kmod.mk> 73