| export CPTCFG_MAC80211=m |
| export CPTCFG_MAC80211_LEDS=y |
| export CPTCFG_IWLWIFI=m |
| export CPTCFG_IWLMVM=m |
| export CPTCFG_IWLWIFI_OPMODE_MODULAR=y |
| export CPTCFG_IWLWIFI_DEBUG=y |
| export CPTCFG_IWLWIFI_SUPPORT_DEBUG_OVERRIDES=y |
| |
| ifeq ($(CONFIG_IWL7000_TESTMODE),y) |
| export CPTCFG_IWLWIFI_DEVICE_TESTMODE=y |
| endif |
| |
| ifeq ($(CONFIG_IWL7000_VENDOR_CMDS),y) |
| export CPTCFG_IWLMVM_VENDOR_CMDS=y |
| endif |
| |
| ifeq ($(CONFIG_IWL7000_DEBUGFS),y) |
| export CPTCFG_IWLWIFI_DEBUGFS=y |
| export CPTCFG_MAC80211_DEBUGFS=y |
| endif |
| |
| ifeq ($(CONFIG_IWL7000_TRACING),y) |
| export CPTCFG_IWLWIFI_DEVICE_TRACING=y |
| export CPTCFG_MAC80211_MESSAGE_TRACING=y |
| endif |
| |
| ifeq ($(CONFIG_IWL7000_LEDS),y) |
| export CPTCFG_IWLWIFI_LEDS=y |
| endif |
| |
| ifeq ($(CONFIG_IWL7000_XVT),m) |
| export CPTCFG_IWLXVT=m |
| endif |
| |
| subdir-ccflags-y := -I$(srctree)/$(src) -include "hdrs/iwl-chrome.h" |
| subdir-ccflags-y += -I$(srctree)/$(src)/hdrs/ |
| # otherwise ieee80211_band vs. nl80211_band warnings come up |
| subdir-ccflags-y += $(call cc-option,-Wno-enum-compare) |
| subdir-ccflags-y += $(call cc-option,-Wno-enum-conversion) |
| subdir-ccflags-y += $(call cc-option,-Wno-int-in-bool-context) |
| # cfg80211 compatibility porting mechanism sometimes causes these |
| subdir-ccflags-y += $(call cc-option,-Wno-unused-const-variable) |
| subdir-ccflags-y += $(call cc-option,-Wno-unused-variable) |
| # upstream moved, move the driver for a few constructions such as |
| # variable declarations in for loops |
| subdir-ccflags-y += -std=gnu11 |
| # and these are then also done in correspondence by upstream |
| subdir-ccflags=y += $(call cc-option,-Wdeclaration-after-statement) |
| subdir-ccflags-y += $(call cc-option,-Wno-shift-negative-value) |
| |
| obj-$(CONFIG_IWL7000) += mac80211/ |
| obj-$(CONFIG_IWL7000) += iwlwifi/ |