xref: /freebsd/sys/modules/iwlwifi/Makefile (revision b214fcceacad6b842545150664bd2695c1c2b34f)
1#-
2# SPDX-License-Identifier: BSD-2-Clause
3#
4# Copyright (c) 2020-2021 The FreeBSD Foundation
5#
6# This software was developed by Björn Zeeb under sponsorship from
7# the FreeBSD Foundation.
8#
9# Redistribution and use in source and binary forms, with or without
10# modification, are permitted provided that the following conditions
11# are met:
12# 1. Redistributions of source code must retain the above copyright
13#    notice, this list of conditions and the following disclaimer.
14# 2. Redistributions in binary form must reproduce the above copyright
15#    notice, this list of conditions and the following disclaimer in the
16#    documentation and/or other materials provided with the distribution.
17#
18# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
19# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
22# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28# SUCH DAMAGE.
29#
30# $FreeBSD$
31#
32
33DEVIWLWIFIDIR=	${SRCTOP}/sys/contrib/dev/iwlwifi
34
35.PATH: ${DEVIWLWIFIDIR}
36
37KMOD=	if_iwlwifi
38
39SRCS=	iwl-drv.c
40SRCS+=	iwl-dbg-tlv.c iwl-debug.c
41SRCS+=	iwl-eeprom-parse.c iwl-eeprom-read.c
42SRCS+=	iwl-io.c iwl-nvm-parse.c iwl-phy-db.c iwl-trans.c
43SRCS+=	cfg/7000.c cfg/8000.c cfg/9000.c cfg/22000.c
44SRCS+=	fw/dbg.c fw/dump.c fw/img.c fw/notif-wait.c
45SRCS+=	fw/paging.c fw/pnvm.c fw/rs.c fw/smem.c fw/init.c
46#SRCS+=	fw/uefi.c
47SRCS+=	mvm/rs.c mvm/binding.c mvm/coex.c mvm/ftm-initiator.c
48SRCS+=	mvm/ftm-responder.c mvm/fw.c mvm/mac-ctxt.c
49SRCS+=	mvm/mac80211.c mvm/nvm.c mvm/offloading.c mvm/ops.c
50SRCS+=	mvm/phy-ctxt.c mvm/power.c mvm/quota.c mvm/rs-fw.c mvm/rfi.c
51SRCS+=	mvm/rx.c mvm/rxmq.c mvm/scan.c mvm/sf.c mvm/sta.c mvm/tdls.c
52SRCS+=	mvm/time-event.c mvm/tt.c mvm/tx.c mvm/utils.c
53#SRCS+=	mvm/led.c
54SRCS+=	pcie/ctxt-info-gen3.c pcie/ctxt-info.c
55SRCS+=	pcie/drv.c pcie/rx.c pcie/trans-gen2.c pcie/trans.c
56SRCS+=	pcie/tx-gen2.c pcie/tx.c
57SRCS+=	queue/tx.c
58
59SRCS+=	iwl-devtrace.c
60
61# Other
62SRCS+=	${LINUXKPI_GENSRCS}
63SRCS+=	opt_wlan.h opt_inet6.h opt_inet.h opt_acpi.h
64
65CFLAGS+=	-DKBUILD_MODNAME='"iwlwifi"'
66
67CFLAGS+=	-I${DEVIWLWIFIDIR}
68CFLAGS+=	-I${SRCTOP}/sys/compat/linuxkpi/common/include
69CFLAGS+=	-DCONFIG_IWLDVM=0
70CFLAGS+=	-DCONFIG_IWLMVM=1
71# Helpful after fresh imports.
72#CFLAGS+=	-ferror-limit=0
73
74#CFLAGS+=	-DCONFIG_ACPI=1
75#CFLAGS+=	-DCONFIG_INET=1		# Need LKPI TSO implementation.
76#CFLAGS+=	-DCONFIG_IPV6=1
77CFLAGS+=	-DCONFIG_IWLWIFI_BCAST_FILTERING=1
78CFLAGS+=	-DCONFIG_IWLWIFI_DEBUG=1
79#CFLAGS+=	-DCONFIG_IWLWIFI_LEDS=1
80CFLAGS+=	-DCONFIG_IWLWIFI_OPMODE_MODULAR=1
81CFLAGS+=	-DCONFIG_IWLWIFI_DEVICE_TRACING=1
82#CFLAGS+=	-DCONFIG_LOCKDEP=1
83#CFLAGS+=	-DCONFIG_MAC80211_DEBUGFS=1
84#CFLAGS+=	-DCONFIG_NL80211_TESTMODE=1
85#CFLAGS+=	-DCONFIG_PM=1
86#CFLAGS+=	-DCONFIG_PM_SLEEP=1
87#CFLAGS+=	-DCONFIG_THERMAL=1
88#CFLAGS+=	-DCONFIG_EFI=1
89
90.include <bsd.kmod.mk>
91