| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515 |
- # bcmdhd
- #
- # Portions of this code are copyright (c) 2020 Cypress Semiconductor Corporation
- #
- # Copyright (C) 1999-2020, Broadcom Corporation
- #
- # Unless you and Broadcom execute a separate written software license
- # agreement governing use of this software, this software is licensed to you
- # under the terms of the GNU General Public License version 2 (the "GPL"),
- # available at http://www.broadcom.com/licenses/GPLv2.php, with the
- # following added to such license:
- #
- # As a special exception, the copyright holders of this software give you
- # permission to link this software with independent modules, and to copy and
- # distribute the resulting executable under terms of your choice, provided that
- # you also meet, for each linked independent module, the terms and conditions of
- # the license of that module. An independent module is a module which is not
- # derived from this software. The special exception does not apply to any
- # modifications of the software.
- #
- # Notwithstanding the above, under no circumstances may you combine this
- # software in any way with any other Broadcom software provided under a license
- # other than the GPL, without Broadcom's express prior written consent.
- #
- #
- # <<Broadcom-WL-IPTag/Open:>>
- #
- #####################
- # SDIO Basic feature
- #####################
- DHDCFLAGS += -Wall -Wstrict-prototypes -Dlinux -DLINUX -DBCMDRIVER \
- -DBCMDONGLEHOST -DUNRELEASEDCHIP -DBCMDMA32 -DBCMFILEIMAGE \
- -DDHDTHREAD -DSHOW_EVENTS -DBCMDBG -DWLP2P \
- -DWIFI_ACT_FRAME -DARP_OFFLOAD_SUPPORT \
- -DKEEP_ALIVE -DCSCAN -DPKT_FILTER_SUPPORT \
- -DEMBEDDED_PLATFORM -DPNO_SUPPORT -DSHOW_LOGTRACE \
- -DGET_CUSTOM_MAC_ENABLE \
- -DSEC_ENHANCEMENT -DDHD_FW_COREDUMP -DCHIPS_CUSTOMER_HW6 \
- -DDHD_RND_DEBUG -DDHD_DUMP_FILE_WRITE_FROM_KERNEL \
- -DDHD_DONOT_FORWARD_BCMEVENT_AS_NETWORK_PKT
- # In case not supported by compiler, remove the below option
- DHDCFLAGS += -Wno-error=date-time
- #################
- # Common feature
- #################
- DHDCFLAGS += -DWL_VIRTUAL_APSTA
- # Dongle init fail
- DHDCFLAGS += -DDEBUG_DNGL_INIT_FAIL
- DHDCFLAGS += -DPOWERUP_MAX_RETRY=0
- DHDCFLAGS += -DWL_SUPPORT_AUTO_CHANNEL
- # DHDCFLAGS += -DWL_STATIC_IF # Shall be enabled to get secondary static interface for AP on Android
- # Wapi
- DHDCFLAGS += -DBCMWAPI_WPI -DBCMWAPI_WAI
- # Allow wl event forwarding as network packet
- DHDCFLAGS += -DWL_EVENT_ENAB
- DHDCFLAGS += -DWL_CFG80211
- # Print out kernel panic point of file and line info when assertion happened
- DHDCFLAGS += -DBCMASSERT_LOG
- # Enable Log Dump
- DHDCFLAGS += -DDHD_LOG_DUMP
- DHDCFLAGS += -DOEM_ANDROID
- # Enable Register access via dhd IOVAR
- DHDCFLAGS += -DDHD_PCIE_REG_ACCESS -DDHD_BUS_MEM_ACCESS
- # Disable ASPM to avoid CTO in Interposer
- DHDCFLAGS += -DDHD_DISABLE_ASPM
- # CUSTOMER4 flags
- DHDCFLAGS += -DDHD_PKTID_AUDIT_ENABLED
- DHDCFLAGS += -DSUPPORT_HIDDEN_AP
- DHDCFLAGS += -DPASS_ALL_MCAST_PKTS -DESCAN_BUF_OVERFLOW_MGMT -DPKTPRIO_OVERRIDE
- DHDCFLAGS += -DUSE_INITIAL_SHORT_DWELL_TIME
- DHDCFLAGS += -DENABLE_BCN_LI_BCN_WAKEUP -DSOFTAP_UAPSD_OFF
- DHDCFLAGS += -DSUPPORT_LTECX -DSUPPORT_2G_VHT
- DHDCFLAGS += -DSUPPORT_WL_TXPOWER -DBLOCK_IPV6_PACKET -DSUPPORT_DEEP_SLEEP
- DHDCFLAGS += -DSUPPORT_AMPDU_MPDU_CMD -DSOFTAP_SEND_HANGEVT -DNUM_SCB_MAX_PROBE=3
- DHDCFLAGS += -DCUSTOM_TCPACK_DELAY_TIME=10
- DHDCFLAGS += -DDEBUGFS_CFG80211
- DHDCFLAGS += -DSUPPORT_SOFTAP_WPAWPA2_MIXED
- DHDCFLAGS += -DSUPPORT_2G_VHT -DSUPPORT_5G_1024QAM_VHT
- DHDCFLAGS += -DEWP_ECNTRS_LOGGING
- DHDCFLAGS += -DEWP_ETD_PRSRV_LOGS
- # Runtime PM feature
- # DHDCFLAGS += -DDHD_PCIE_RUNTIMEPM -DMAX_IDLE_COUNT=11 -DCUSTOM_DHD_RUNTIME_MS=100
- # DMA64 suppports on 64bit Architecture
- ifeq ($(CONFIG_ARM64),y)
- DHDCFLAGS := $(filter-out -DBCMDMA32,$(DHDCFLAGS))
- DHDCFLAGS += -DBCMDMA64OSL
- endif
- # DMA64 suppports on x64bit Architecture
- #ifeq ($(CONFIG_64BIT),y)
- # DHDCFLAGS := $(filter-out -DBCMDMA32,$(DHDCFLAGS))
- # DHDCFLAGS += -DBCMDMA64OSL
- #endif // endif
- ## OOB
- ifeq ($(CONFIG_BCMDHD_OOB_HOST_WAKE),y)
- DHDCFLAGS += -DBCMPCIE_OOB_HOST_WAKE
- endif
- # keepalive
- DHDCFLAGS += -DCUSTOM_KEEP_ALIVE_SETTING=28000
- DHDCFLAGS += -DVSDB
- # For p2p connection issue
- DHDCFLAGS += -DWL_SCB_TIMEOUT=10
- # TDLS enable
- DHDCFLAGS += -DWLTDLS -DWLTDLS_AUTO_ENABLE
- # For TDLS tear down inactive time 40 sec
- DHDCFLAGS += -DCUSTOM_TDLS_IDLE_MODE_SETTING=10000
- # for TDLS RSSI HIGH for establishing TDLS link
- DHDCFLAGS += -DCUSTOM_TDLS_RSSI_THRESHOLD_HIGH=-80
- # for TDLS RSSI HIGH for tearing down TDLS link
- DHDCFLAGS += -DCUSTOM_TDLS_RSSI_THRESHOLD_LOW=-85
- # Roaming
- DHDCFLAGS += -DROAM_AP_ENV_DETECTION
- DHDCFLAGS += -DROAM_ENABLE -DROAM_CHANNEL_CACHE -DROAM_API
- DHDCFLAGS += -DENABLE_FW_ROAM_SUSPEND
- # Roaming trigger
- DHDCFLAGS += -DCUSTOM_ROAM_TRIGGER_SETTING=-75
- DHDCFLAGS += -DCUSTOM_ROAM_DELTA_SETTING=10
- # Set PM 2 always regardless suspend/resume
- DHDCFLAGS += -DSUPPORT_PM2_ONLY
- # For special PNO Event keep wake lock for 10sec
- DHDCFLAGS += -DCUSTOM_PNO_EVENT_LOCK_xTIME=10
- DHDCFLAGS += -DMIRACAST_AMPDU_SIZE=8
- #Vendor Extension
- DHDCFLAGS += -DWL_VENDOR_EXT_SUPPORT
- #Gscan
- DHDCFLAGS += -DGSCAN_SUPPORT
- #PNO Scan Result Version
- DHDCFLAGS += -DPFN_SCANRESULT_2
- #RSSI Monitor
- DHDCFLAGS += -DRSSI_MONITOR_SUPPORT
- #RTT
- DHDCFLAGS += -DRTT_SUPPORT -DRTT_DEBUG
- #APF
- DHDCFLAGS += -DAPF
- #NDOffload
- DHDCFLAGS += -DNDO_CONFIG_SUPPORT
- DHDCFLAGS += -DIPV6_NDO_SUPPORT
- #Link Statistics
- DHDCFLAGS += -DLINKSTAT_SUPPORT
- #Debugaility
- DHDCFLAGS += -DDBG_PKT_MON -DDBG_PKT_MON_INIT_DEFAULT
- DHDCFLAGS += -DWL_SCHED_SCAN
- DHDCFLAGS += -DDNGL_EVENT_SUPPORT
- #RSSI Monitor
- DHDCFLAGS += -DRSSI_MONITOR_SUPPORT
- # Early suspend
- DHDCFLAGS += -DDHD_USE_EARLYSUSPEND
- # For Scan result patch
- DHDCFLAGS += -DESCAN_RESULT_PATCH
- # NAN
- DHDCFLAGS += -DWL_NAN -DWL_NAN_DISC_CACHE
- # For Static Buffer
- ifeq ($(CONFIG_DHD_USE_STATIC_BUF),y)
- DHDCFLAGS += -DENHANCED_STATIC_BUF
- DHDCFLAGS += -DSTATIC_WL_PRIV_STRUCT
- endif
- ifneq ($(CONFIG_DHD_USE_SCHED_SCAN),)
- DHDCFLAGS += -DWL_SCHED_SCAN
- endif
- # Ioctl timeout 5000ms
- DHDCFLAGS += -DIOCTL_RESP_TIMEOUT=5000
- # Prevent rx thread monopolize
- DHDCFLAGS += -DWAIT_DEQUEUE
- # idle count
- DHDCFLAGS += -DDHD_USE_IDLECOUNT
- # SKB TAILPAD to avoid out of boundary memory access
- DHDCFLAGS += -DDHDENABLE_TAILPAD
- # Wi-Fi Direct
- DHDCFLAGS += -DWL_CFG80211_VSDB_PRIORITIZE_SCAN_REQUEST
- DHDCFLAGS += -DWL_CFG80211_STA_EVENT
- DHDCFLAGS += -DWL_IFACE_COMB_NUM_CHANNELS
- DHDCFLAGS += -DWL_SUPPORT_MULTIP2P
- #SCAN time
- DHDCFLAGS += -DCUSTOM_SET_SHORT_DWELL_TIME
- DHDCFLAGS += -DCUSTOM_FORCE_NODFS_FLAG
- ifeq ($(CONFIG_ANDROID),y)
- DHDCFLAGS += -DKEEP_WIFION_OPTION
- endif
- # SoftAP
- DHDCFLAGS += -DSET_RANDOM_MAC_SOFTAP
- DHDCFLAGS += -DWL_CFG80211_ACL
- # Disable FRAMEBURST on VSDB
- DHDCFLAGS += -DDISABLE_FRAMEBURST_VSDB
- # WPS
- DHDCFLAGS += -DWL_WPS_SYNC -DBCMCRYPTO_COMPONENT
- #WPA3
- ifneq ($(CONFIG_BCMDHD_WPA3),)
- DHDCFLAGS += -DWL_SAE
- endif
- ifneq ($(CONFIG_BCMDHD_PCIE),)
- DHDCFLAGS += -DDHD_4WAYM4_FAIL_DISCONNECT
- endif
- # Uncomment the below line for AP to receive disconnect management frame.
- # DHDCFLAGS += -DWL_CFG80211_AP_RX_MGMT_DISCONNECT
- # Bandsteer support
- # DHDCFLAGS += -DDHD_BANDSTEER
- ##########################
- # driver type
- # m: module type driver
- # y: built-in type driver
- ##########################
- DRIVER_TYPE ?= $(CONFIG_BCMDHD)
- #########################
- # Chip dependent feature
- #########################
- ifneq ($(filter y, ) $(CONFIG_BCM4358) $(CONFIG_BCM4359) $(CONFIG_BCM4361) $(CONFIG_BCM4373) $(CONFIG_BCM89273),)
- DHDCFLAGS += -DUSE_WL_TXBF
- DHDCFLAGS += -DCUSTOM_DPC_CPUCORE=0
- # New Features
- DHDCFLAGS += -DWL11U
- DHDCFLAGS += -DMFP
- DHDCFLAGS += -DDHD_ENABLE_LPC
- DHDCFLAGS += -DCUSTOM_COUNTRY_CODE
- DHDCFLAGS += -DRTT_SUPPORT -DRTT_DEBUG
- DHDCFLAGS += -DNDO_CONFIG_SUPPORT
- DHDCFLAGS += -DIPV6_NDO_SUPPORT
- DHDCFLAGS += -DIGUANA_LEGACY_CHIPS
- ifneq ($(CONFIG_BCMDHD_SDMMC),)
- DHDCFLAGS += -DBCMLXSDMMC -DCUSTOM_TXGLOM=1
- endif
- ifneq ($(CONFIG_BCMDHD_SDIOH_STD),)
- DHDCFLAGS += -DBCMSDIOH_STD
- endif
- ifneq ($(CONFIG_BCMDHD_SDIO),)
- DHDCFLAGS += -DBDC -DHW_OOB -DDHD_BCMEVENTS -DMMC_SDIO_ABORT
- DHDCFLAGS += -DBCMSDIO -DUSE_SDIOFIFO_IOVAR
- DHDCFLAGS += -DPROP_TXSTATUS -DLIMIT_BORROW
- DHDCFLAGS += -DUSE_WL_FRAMEBURST
- DHDCFLAGS += -DCUSTOM_AMPDU_MPDU=16
- # tput enhancement
- DHDCFLAGS += -DCUSTOM_GLOM_SETTING=8 -DCUSTOM_RXCHAIN=1
- DHDCFLAGS += -DUSE_DYNAMIC_F2_BLKSIZE -DDYNAMIC_F2_BLKSIZE_FOR_NONLEGACY=128
- DHDCFLAGS += -DBCMSDIOH_TXGLOM -DAMPDU_HOSTREORDER
- DHDCFLAGS += -DDHDTCPACK_SUPPRESS
- DHDCFLAGS += -DRXFRAME_THREAD
- DHDCFLAGS += -DREPEAT_READFRAME
- DHDCFLAGS += -DCUSTOM_MAX_TXGLOM_SIZE=40
- DHDCFLAGS += -DMAX_HDR_READ=128
- DHDCFLAGS += -DDHD_FIRSTREAD=64
- ifneq ($(CONFIG_BCM4373),)
- DHDCFLAGS += -DCUSTOM_AMPDU_BA_WSIZE=32
- endif
- # bcn_timeout
- DHDCFLAGS += -DCUSTOM_BCN_TIMEOUT_SETTING=5
- DHDCFLAGS += -DWLFC_STATE_PREALLOC
- DHDCFLAGS += -DREVERSE_AIFSN
- endif
- # Expand TCP tx queue to 10 times of default size
- DHDCFLAGS += -DTSQ_MULTIPLIER=10
- ifneq ($(CONFIG_BCMDHD_PCIE),)
- DHDCFLAGS += -DPCIE_FULL_DONGLE -DBCMPCIE -DCUSTOM_DPC_PRIO_SETTING=-1
- # tput enhancement
- DHDCFLAGS += -DCUSTOM_AMPDU_BA_WSIZE=64
- DHDCFLAGS += -DPROP_TXSTATUS_VSDB
- # Disable watchdog thread
- DHDCFLAGS += -DCUSTOM_DHD_WATCHDOG_MS=0
- # HEAP ASLR
- DHDCFLAGS += -DBCM_ASLR_HEAP
- DHDCFLAGS += -DMAX_CNTL_TX_TIMEOUT=1
- ifneq ($(CONFIG_ARCH_MSM),)
- DHDCFLAGS += -DMSM_PCIE_LINKDOWN_RECOVERY
- endif
- ifeq ($(CONFIG_DHD_USE_STATIC_BUF),y)
- DHDCFLAGS += -DDHD_USE_STATIC_IOCTLBUF
- endif
- # DONGLE_ENABLE_ISOLATION flag causes system freeze during cert test
- # DHDCFLAGS += -DDONGLE_ENABLE_ISOLATION
- # Enable health check event handling
- DHDCFLAGS += -DDNGL_EVENT_SUPPORT
- DHDCFLAGS += -DHCHK_COMMON_SW_EVENT
- ifneq ($(CONFIG_DHD_OF_SUPPORT),)
- DHDCFLAGS += -DDHD_OF_SUPPORT
- DHDOFILES += dhd_custom_msm.o
- ifneq ($(CONFIG_BROADCOM_WIFI_RESERVED_MEM),)
- DHDOFILES += dhd_custom_memprealloc.o
- endif
- endif
- # Enable Load Balancing support by default.
- # DHD_LB_RXP - Perform RX Packet processing in parallel
- # DHD_LB_STATS - To display the Load Blancing statistics
- DHDCFLAGS += -DDHD_LB -DDHD_LB_RXP -DDHD_LB_STATS
- DHDCFLAGS += -DDHD_LB_PRIMARY_CPUS=0xF0 -DDHD_LB_SECONDARY_CPUS=0x0E
- # Runtime PM feature
- # DHDCFLAGS += -DDHD_PCIE_RUNTIMEPM -DMAX_IDLE_COUNT=11 -DCUSTOM_DHD_RUNTIME_MS=100
- # debug info
- DHDCFLAGS += -DDHD_WAKE_STATUS -DDHD_WAKE_RX_STATUS -DDHD_WAKE_EVENT_STATUS
- # Enable SSSR Dump
- DHDCFLAGS += -DDHD_SSSR_DUMP
- endif
- # Print 802.1X packets
- DHDCFLAGS += -DDHD_8021X_DUMP
- # prioritize 802.1x packet
- DHDCFLAGS += -DEAPOL_PKT_PRIO
- # Enable MSI interrupt Support
- DHDCFLAGS += -DDHD_MSI_SUPPORT
- endif
- ifneq ($(filter y, $(CONFIG_BCM4354) $(CONFIG_BCM4356)),)
- DHDCFLAGS += -DUSE_WL_TXBF
- DHDCFLAGS += -DUSE_WL_FRAMEBURST
- DHDCFLAGS += -DCUSTOM_DPC_CPUCORE=0
- DHDCFLAGS += -DPROP_TXSTATUS_VSDB
- DHDCFLAGS += -DCUSTOM_PSPRETEND_THR=30
- DHDCFLAGS += -DMAX_AP_CLIENT_CNT=10
- DHDCFLAGS += -DMAX_GO_CLIENT_CNT=5
- # New Features
- DHDCFLAGS += -DWL11U
- DHDCFLAGS += -DMFP
- DHDCFLAGS += -DDHD_ENABLE_LPC
- DHDCFLAGS += -DCUSTOM_COUNTRY_CODE
- DHDCFLAGS += -DSAR_SUPPORT
- # debug info
- DHDCFLAGS += -DDHD_WAKE_STATUS
- ifneq ($(CONFIG_BCMDHD_SDIO),)
- DHDCFLAGS += -DBDC -DOOB_INTR_ONLY -DHW_OOB -DDHD_BCMEVENTS -DMMC_SDIO_ABORT
- DHDCFLAGS += -DBCMSDIO -DBCMLXSDMMC -DUSE_SDIOFIFO_IOVAR
- DHDCFLAGS += -DPROP_TXSTATUS
- DHDCFLAGS += -DCUSTOM_AMPDU_MPDU=16
- DHDCFLAGS += -DCUSTOM_AMPDU_BA_WSIZE=64
- # tput enhancement
- DHDCFLAGS += -DCUSTOM_GLOM_SETTING=8 -DCUSTOM_RXCHAIN=1
- DHDCFLAGS += -DUSE_DYNAMIC_F2_BLKSIZE -DDYNAMIC_F2_BLKSIZE_FOR_NONLEGACY=128
- DHDCFLAGS += -DBCMSDIOH_TXGLOM -DCUSTOM_TXGLOM=1 -DBCMSDIOH_TXGLOM_HIGHSPEED
- DHDCFLAGS += -DDHDTCPACK_SUPPRESS
- DHDCFLAGS += -DRXFRAME_THREAD
- DHDCFLAGS += -DREPEAT_READFRAME
- DHDCFLAGS += -DCUSTOM_MAX_TXGLOM_SIZE=40
- DHDCFLAGS += -DMAX_HDR_READ=128
- DHDCFLAGS += -DDHD_FIRSTREAD=128
- # bcn_timeout
- DHDCFLAGS += -DCUSTOM_BCN_TIMEOUT=5
- DHDCFLAGS += -DWLFC_STATE_PREALLOC
- endif
- ifneq ($(CONFIG_BCMDHD_PCIE),)
- DHDCFLAGS += -DPCIE_FULL_DONGLE -DBCMPCIE -DCUSTOM_DPC_PRIO_SETTING=-1
- # tput enhancement
- DHDCFLAGS += -DCUSTOM_AMPDU_BA_WSIZE=64
- DHDCFLAGS += -DPROP_TXSTATUS_VSDB
- # Disable watchdog thread
- DHDCFLAGS += -DCUSTOM_DHD_WATCHDOG_MS=0
- DHDCFLAGS += -DMAX_CNTL_TX_TIMEOUT=1
- DHDCFLAGS += -DSUPPORT_LINKDOWN_RECOVERY
- # Enable health check event handling
- DHDCFLAGS += -DDNGL_EVENT_SUPPORT
- DHDCFLAGS += -DHCHK_COMMON_SW_EVENT
- endif
- ifeq ($(CONFIG_DHD_USE_STATIC_BUF),y)
- DHDCFLAGS += -DDHD_USE_STATIC_IOCTLBUF
- endif
- # DONGLE_ENABLE_ISOLATION flag causes system freeze during cert test
- # DHDCFLAGS += -DDONGLE_ENABLE_ISOLATION
- # Print 802.1X packets
- DHDCFLAGS += -DDHD_8021X_DUMP
- # Print DHCP packets
- DHDCFLAGS += -DDHD_DHCP_DUMP
- endif
- ifneq ($(CONFIG_BCM4339),)
- DHDCFLAGS += -DBCM4339_CHIP -DHW_OOB
- # tput enhancement
- DHDCFLAGS += -DCUSTOM_GLOM_SETTING=8 -DCUSTOM_RXCHAIN=1
- DHDCFLAGS += -DUSE_DYNAMIC_F2_BLKSIZE -DDYNAMIC_F2_BLKSIZE_FOR_NONLEGACY=128
- DHDCFLAGS += -DBCMSDIOH_TXGLOM -DCUSTOM_TXGLOM=1 -DBCMSDIOH_TXGLOM_HIGHSPEED
- DHDCFLAGS += -DDHDTCPACK_SUPPRESS
- DHDCFLAGS += -DUSE_WL_TXBF
- DHDCFLAGS += -DUSE_WL_FRAMEBURST
- DHDCFLAGS += -DRXFRAME_THREAD
- DHDCFLAGS += -DCUSTOM_AMPDU_BA_WSIZE=64
- DHDCFLAGS += -DCUSTOM_DPC_CPUCORE=0
- DHDCFLAGS += -DPROP_TXSTATUS_VSDB
- DHDCFLAGS += -DCUSTOM_MAX_TXGLOM_SIZE=32
- # New Features
- DHDCFLAGS += -DWL11U
- DHDCFLAGS += -DDHD_ENABLE_LPC
- DHDCFLAGS += -DCUSTOM_PSPRETEND_THR=30
- endif
- #EXTRA_LDFLAGS += --strip-debug
- ifeq ($(DRIVER_TYPE),y)
- DHDCFLAGS += -DENABLE_INSMOD_NO_FW_LOAD
- DHDCFLAGS += -DUSE_LATE_INITCALL_SYNC
- # Use kernel strlcpy() implementation instead of one, defined in bcmstdlib_s.c
- DHDCFLAGS += -DBCM_USE_PLATFORM_STRLCPY
- endif
- EXTRA_CFLAGS += $(DHDCFLAGS) -DDHD_DEBUG
- EXTRA_CFLAGS += -DSRCBASE=\"$(src)\"
- EXTRA_CFLAGS += -I$(src)/include/ -I$(src)/
- KBUILD_CFLAGS += -I$(LINUXDIR)/include -I$(CURDIR)
- DHDOFILES := dhd_pno.o dhd_common.o dhd_ip.o dhd_custom_gpio.o \
- dhd_linux.o dhd_linux_sched.o dhd_cfg80211.o dhd_linux_wq.o aiutils.o \
- bcmevent.o bcmutils.o bcmwifi_channels.o hndpmu.o linux_osl.o linux_pkt.o \
- sbutils.o siutils.o wl_android.o wl_roam.o wl_cfg80211.o wl_cfgscan.o wl_cfgp2p.o \
- wl_cfg_btcoex.o wldev_common.o wl_linux_mon.o dhd_linux_platdev.o \
- dhd_pno.o dhd_rtt.o dhd_linux_pktdump.o wl_cfg_btcoex.o hnd_pktq.o \
- hnd_pktpool.o wl_cfgvendor.o bcmxtlv.o bcm_app_utils.o dhd_debug.o \
- dhd_debug_linux.o wl_cfgnan.o dhd_mschdbg.o bcmbloom.o dhd_dbg_ring.o bcmstdlib_s.o \
- dhd_linux_exportfs.o
- ifneq ($(CONFIG_DHD_OF_SUPPORT),)
- DHDCFLAGS += -DDHD_OF_SUPPORT
- DHDOFILES += dhd_custom_msm.o
- ifneq ($(CONFIG_BROADCOM_WIFI_RESERVED_MEM),)
- DHDOFILES += dhd_custom_memprealloc.o
- endif
- endif
- ifneq ($(CONFIG_BCMDHD_SDMMC),)
- DHDOFILES += bcmsdh_sdmmc.o bcmsdh_sdmmc_linux.o
- endif
- ifneq ($(CONFIG_BCMDHD_SDIO),)
- DHDOFILES += bcmsdh.o bcmsdh_linux.o
- DHDOFILES += dhd_cdc.o dhd_wlfc.o dhd_sdio.o
- endif
- ifneq ($(CONFIG_BCMDHD_SDIOH_STD),)
- DHDOFILES += bcmsdstd.o bcmsdstd_linux.o
- endif
- ifneq ($(CONFIG_BCMDHD_PCIE),)
- DHDOFILES += dhd_pcie.o dhd_pcie_linux.o dhd_msgbuf.o dhd_flowring.o
- DHDOFILES += pcie_core.o
- endif
- ifeq ($(CONFIG_ARCH_ARKMICRO), y)
- #ARCH := arm
- #KDIR :=
- endif
- ifneq ($(filter -DDHD_LB, $(DHDCFLAGS)),)
- DHDOFILES += dhd_linux_lb.o
- endif
- ifneq ($(filter -DDHD_BANDSTEER, $(DHDCFLAGS)),)
- DHDOFILES += dhd_bandsteer.o
- endif
- bcmdhd-objs := $(DHDOFILES)
- obj-$(DRIVER_TYPE) += bcmdhd.o
- all:
- @echo "$(MAKE) --no-print-directory -C $(KDIR) SUBDIRS=$(CURDIR) modules"
- @$(MAKE) --no-print-directory -C $(KDIR) SUBDIRS=$(CURDIR) modules
- clean:
- rm -rf *.o *.ko *.mod.c *~ .*.cmd *.o.cmd .*.o.cmd \
- Module.symvers modules.order .tmp_versions modules.builtin
- install:
- @$(MAKE) --no-print-directory -C $(KDIR) \
- SUBDIRS=$(CURDIR) modules_install
|