1# bcmdhd 2# 3# Portions of this code are copyright (c) 2021 Cypress Semiconductor Corporation 4# 5# Copyright (C) 1999-2017, Broadcom Corporation 6# 7# Unless you and Broadcom execute a separate written software license 8# agreement governing use of this software, this software is licensed to you 9# under the terms of the GNU General Public License version 2 (the "GPL"), 10# available at http://www.broadcom.com/licenses/GPLv2.php, with the 11# following added to such license: 12# 13# As a special exception, the copyright holders of this software give you 14# permission to link this software with independent modules, and to copy and 15# distribute the resulting executable under terms of your choice, provided that 16# you also meet, for each linked independent module, the terms and conditions of 17# the license of that module. An independent module is a module which is not 18# derived from this software. The special exception does not apply to any 19# modifications of the software. 20# 21# Notwithstanding the above, under no circumstances may you combine this 22# software in any way with any other Broadcom software provided under a license 23# other than the GPL, without Broadcom's express prior written consent. 24# 25# 26# <<Broadcom-WL-IPTag/Open:>> 27# 28 29##################### 30# SDIO Basic feature 31##################### 32 33DHDCFLAGS += -Wall -Wstrict-prototypes -Dlinux -DLINUX -DBCMDRIVER \ 34 -DBCMDONGLEHOST -DUNRELEASEDCHIP -DBCMDMA32 -DBCMFILEIMAGE \ 35 -DDHDTHREAD -DSHOW_EVENTS -DBCMDBG -DWLP2P \ 36 -DWIFI_ACT_FRAME -DARP_OFFLOAD_SUPPORT \ 37 -DKEEP_ALIVE -DCSCAN -DPKT_FILTER_SUPPORT \ 38 -DEMBEDDED_PLATFORM -DPNO_SUPPORT \ 39 -DGET_CUSTOM_MAC_ENABLE \ 40 -DSEC_ENHANCEMENT -DCHIPS_CUSTOMER_HW6 \ 41 -DDHD_DUMP_FILE_WRITE_FROM_KERNEL \ 42 -DDHD_DONOT_FORWARD_BCMEVENT_AS_NETWORK_PKT 43 44GCCVERSIONGTEQ9 := $(shell expr `$(CROSS_COMPILE)gcc -dumpversion | cut -f1 -d.` \>= 9) 45ifeq "$(GCCVERSIONGTEQ9)" "1" 46 DHDCFLAGS += -Wno-error=date-time 47endif 48DHDCFLAGS += $(call cc-disable-warning, date-time) 49DHDCFLAGS += $(call cc-disable-warning, stringop-overflow) 50 51########################## 52# Platform Configuration 53########################## 54DHD_MODULE_NAME := CYW54591 55 56CONFIG_DHD_CHIP := cyw54591 57CONFIG_DHD_PLATFORM := Rockchip 58CONFIG_BCMDHD = m 59CONFIG_BCMDHD_PCIE := 60CONFIG_BCMDHD_SDIO = y 61CONFIG_BCMDHD_OOB := y 62CONFIG_BCMDHD_SDMMC := y 63CONFIG_BCMDHD_WPA3 := y 64CONFIG_DHD_ANDROID_VTS :=y 65 66################# 67# Common feature 68################# 69#DHDCFLAGS += -DAUTOMOTIVE_FEATURE 70DHDCFLAGS += -DWL_VIRTUAL_APSTA 71# Dongle init fail 72DHDCFLAGS += -DDEBUG_DNGL_INIT_FAIL 73#DHDCFLAGS += -DPOWERUP_MAX_RETRY=0 74DHDCFLAGS += -DWL_SUPPORT_AUTO_CHANNEL 75 76# Print 802.1X packets 77DHDCFLAGS += -DDHD_8021X_DUMP 78# prioritize 802.1x packet 79DHDCFLAGS += -DEAPOL_PKT_PRIO 80 81# Wapi 82DHDCFLAGS += -DBCMWAPI_WPI -DBCMWAPI_WAI 83 84# Allow wl event forwarding as network packet 85DHDCFLAGS += -DWL_EVENT_ENAB 86 87DHDCFLAGS += -DWL_CFG80211 88# Print out kernel panic point of file and line info when assertion happened 89DHDCFLAGS += -DBCMASSERT_LOG 90 91# Enable Log Dump 92DHDCFLAGS += -DDHD_LOG_DUMP 93DHDCFLAGS += -DOEM_ANDROID 94 95# Enable Register access via dhd IOVAR 96DHDCFLAGS += -DDHD_PCIE_REG_ACCESS -DDHD_BUS_MEM_ACCESS 97 98# CUSTOMER4 flags 99DHDCFLAGS += -DDHD_PKTID_AUDIT_ENABLED 100DHDCFLAGS += -DSUPPORT_HIDDEN_AP 101DHDCFLAGS += -DPASS_ALL_MCAST_PKTS -DESCAN_BUF_OVERFLOW_MGMT -DPKTPRIO_OVERRIDE 102DHDCFLAGS += -DUSE_INITIAL_SHORT_DWELL_TIME 103DHDCFLAGS += -DSOFTAP_UAPSD_OFF 104DHDCFLAGS += -DSUPPORT_LTECX -DSUPPORT_2G_VHT 105DHDCFLAGS += -DSUPPORT_WL_TXPOWER -DBLOCK_IPV6_PACKET -DSUPPORT_DEEP_SLEEP 106DHDCFLAGS += -DSUPPORT_AMPDU_MPDU_CMD -DSOFTAP_SEND_HANGEVT -DNUM_SCB_MAX_PROBE=3 107DHDCFLAGS += -DCUSTOM_TCPACK_DELAY_TIME=10 108DHDCFLAGS += -DDEBUGFS_CFG80211 109DHDCFLAGS += -DSUPPORT_SOFTAP_WPAWPA2_MIXED 110DHDCFLAGS += -DSUPPORT_2G_VHT -DSUPPORT_5G_1024QAM_VHT 111#DHDCFLAGS += -DEWP_ECNTRS_LOGGING 112#DHDCFLAGS += -DEWP_ETD_PRSRV_LOGS 113DHDCFLAGS += -DCFI_CHECK 114 115# Runtime PM feature 116# DHDCFLAGS += -DDHD_PCIE_RUNTIMEPM -DMAX_IDLE_COUNT=11 -DCUSTOM_DHD_RUNTIME_MS=100 117 118# DMA64 suppports on 64bit Architecture 119ifeq ($(CONFIG_ARM64),y) 120 DHDCFLAGS := $(filter-out -DBCMDMA32,$(DHDCFLAGS)) 121 DHDCFLAGS += -DBCMDMA64OSL 122endif 123 124# DMA64 suppports on x64bit Architecture 125#ifeq ($(CONFIG_64BIT),y) 126# DHDCFLAGS := $(filter-out -DBCMDMA32,$(DHDCFLAGS)) 127# DHDCFLAGS += -DBCMDMA64OSL 128#endif // endif 129 130## OOB 131ifeq ($(CONFIG_BCMDHD_OOB_HOST_WAKE),y) 132 DHDCFLAGS += -DBCMPCIE_OOB_HOST_WAKE 133endif 134 135# keepalive 136DHDCFLAGS += -DCUSTOM_KEEP_ALIVE_SETTING=28000 137 138DHDCFLAGS += -DVSDB 139 140# For p2p connection issue 141DHDCFLAGS += -DWL_SCB_TIMEOUT=10 142 143# TDLS enable 144DHDCFLAGS += -DWLTDLS -DWLTDLS_AUTO_ENABLE 145# For TDLS tear down inactive time 40 sec 146DHDCFLAGS += -DCUSTOM_TDLS_IDLE_MODE_SETTING=10000 147# for TDLS RSSI HIGH for establishing TDLS link 148DHDCFLAGS += -DCUSTOM_TDLS_RSSI_THRESHOLD_HIGH=-80 149# for TDLS RSSI HIGH for tearing down TDLS link 150DHDCFLAGS += -DCUSTOM_TDLS_RSSI_THRESHOLD_LOW=-85 151 152# Roaming 153DHDCFLAGS += -DROAM_AP_ENV_DETECTION 154DHDCFLAGS += -DROAM_ENABLE -DROAM_CHANNEL_CACHE -DROAM_API 155DHDCFLAGS += -DENABLE_FW_ROAM_SUSPEND 156# Roaming trigger 157DHDCFLAGS += -DCUSTOM_ROAM_TRIGGER_SETTING=-75 158DHDCFLAGS += -DCUSTOM_ROAM_DELTA_SETTING=10 159# Set PM 2 always regardless suspend/resume 160DHDCFLAGS += -DSUPPORT_PM2_ONLY 161 162# FT roam 163DHDCFLAGS += -DWLFBT -DGTK_OFFLOAD_SUPPORT 164DHDCFLAGS += -DBCMCCX 165DHDCFLAGS += -DWBTEXT 166DHDCFLAGS += -DDHD_LOSSLESS_ROAMING 167 168# For special PNO Event keep wake lock for 10sec 169DHDCFLAGS += -DCUSTOM_PNO_EVENT_LOCK_xTIME=10 170DHDCFLAGS += -DMIRACAST_AMPDU_SIZE=8 171#Vendor Extension 172#DHDCFLAGS += -DWL_VENDOR_EXT_SUPPORT 173#Gscan 174DHDCFLAGS += -DGSCAN_SUPPORT 175#PNO Scan Result Version 176DHDCFLAGS += -DPFN_SCANRESULT_2 177#RSSI Monitor 178DHDCFLAGS += -DRSSI_MONITOR_SUPPORT 179#APF 180DHDCFLAGS += -DAPF 181#NDOffload 182DHDCFLAGS += -DNDO_CONFIG_SUPPORT 183DHDCFLAGS += -DIPV6_NDO_SUPPORT 184 185#Link Statistics 186DHDCFLAGS += -DLINKSTAT_SUPPORT 187 188DHDCFLAGS += -DWL_SCHED_SCAN 189DHDCFLAGS += -DDNGL_EVENT_SUPPORT 190 191#RSSI Monitor 192DHDCFLAGS += -DRSSI_MONITOR_SUPPORT 193 194# Early suspend 195DHDCFLAGS += -DDHD_USE_EARLYSUSPEND 196 197# For Scan result patch 198DHDCFLAGS += -DESCAN_RESULT_PATCH 199 200# NAN 201#DHDCFLAGS += -DWL_NAN -DWL_NAN_DISC_CACHE 202 203# For Static Buffer 204ifeq ($(CONFIG_DHD_USE_STATIC_BUF),y) 205 DHDCFLAGS += -DENHANCED_STATIC_BUF 206 DHDCFLAGS += -DSTATIC_WL_PRIV_STRUCT 207endif 208ifneq ($(CONFIG_DHD_USE_SCHED_SCAN),) 209DHDCFLAGS += -DWL_SCHED_SCAN 210endif 211 212# Prevent rx thread monopolize 213DHDCFLAGS += -DWAIT_DEQUEUE 214 215# idle count 216DHDCFLAGS += -DDHD_USE_IDLECOUNT 217 218# SKB TAILPAD to avoid out of boundary memory access 219DHDCFLAGS += -DDHDENABLE_TAILPAD 220 221# Wi-Fi Direct 222DHDCFLAGS += -DWL_CFG80211_VSDB_PRIORITIZE_SCAN_REQUEST 223DHDCFLAGS += -DWL_CFG80211_STA_EVENT 224DHDCFLAGS += -DWL_IFACE_COMB_NUM_CHANNELS 225DHDCFLAGS += -DWL_SUPPORT_MULTIP2P 226#SCAN time 227DHDCFLAGS += -DCUSTOM_SET_SHORT_DWELL_TIME 228DHDCFLAGS += -DCUSTOM_FORCE_NODFS_FLAG 229ifeq ($(CONFIG_ANDROID),y) 230 DHDCFLAGS += -DKEEP_WIFION_OPTION 231 DHDCFLAGS += -Wno-date-time 232endif 233 234# SoftAP 235DHDCFLAGS += -DSET_RANDOM_MAC_SOFTAP 236DHDCFLAGS += -DWL_CFG80211_ACL 237ifeq ($(CONFIG_WL_AP_IF),y) 238 DHDCFLAGS += -DWL_STATIC_IF 239 DHDCFLAGS += -DDHD_NUM_STATIC_IFACES=2 240endif 241 242# QT support 243ifeq ($(CONFIG_QT), y) 244 DHDCFLAGS += -DBCMQT_HW -DBCMSLTGT -DBCMQT 245endif 246 247# Disable FRAMEBURST on VSDB 248DHDCFLAGS += -DDISABLE_FRAMEBURST_VSDB 249 250# WPS 251DHDCFLAGS += -DWL_WPS_SYNC -DBCMCRYPTO_COMPONENT 252 253#WPA3 254ifneq ($(CONFIG_BCMDHD_WPA3),) 255 DHDCFLAGS += -DWL_SAE 256endif 257 258ifneq ($(CONFIG_BCMDHD_PCIE),) 259 DHDCFLAGS += -DDHD_4WAYM4_FAIL_DISCONNECT 260endif 261 262# Uncomment the below line for AP to receive disconnect management frame. 263# DHDCFLAGS += -DWL_CFG80211_AP_RX_MGMT_DISCONNECT 264 265# Bandsteer support 266# DHDCFLAGS += -DDHD_BANDSTEER 267 268# Android VTS 269ifneq ($(CONFIG_DHD_ANDROID_VTS),) 270#Debugaility 271 DHDCFLAGS += -DDEBUGABILITY 272 DHDCFLAGS += -DDBG_PKT_MON -DDBG_PKT_MON_INIT_DEFAULT 273 274 DHDCFLAGS += -DDHD_FW_COREDUMP 275 DHDCFLAGS += -DDHD_WAKE_STATUS -DDHD_WAKE_RX_STATUS 276endif 277 278########################## 279# driver type 280# m: module type driver 281# y: built-in type driver 282########################## 283DRIVER_TYPE ?= $(CONFIG_BCMDHD) 284 285############################# 286# Bring up WARs for CYW89570. 287# # To be removed later 288# ############################# 289ifneq ($(CONFIG_WIRELESS_EXT),) 290 DHDOFILES += wl_iw.o bcm_app_utils.o 291 DHDCFLAGS += -DWL_WIRELESS_EXT -DWLLXIW -DUSE_IW 292endif 293 294ifeq ($(CONFIG_TRXHDR_V3),y) 295 DHDCFLAGS += -DBCMTRXV3 296else 297 DHDCFLAGS += -DBCMTRXV4 298endif 299 300######################### 301# Chip dependent feature 302######################### 303DHDCFLAGS += -DUSE_WL_TXBF 304DHDCFLAGS += -DCUSTOM_DPC_CPUCORE=0 305 306# New Features 307DHDCFLAGS += -DWL11U 308DHDCFLAGS += -DMFP 309# Disabling LPC for 89570 for now. 310# DHDCFLAGS += -DDHD_ENABLE_LPC 311DHDCFLAGS += -DCUSTOM_COUNTRY_CODE 312DHDCFLAGS += -DNDO_CONFIG_SUPPORT 313DHDCFLAGS += -DIPV6_NDO_SUPPORT 314 315# Expand TCP tx queue to 10 times of default size 316DHDCFLAGS += -DTSQ_MULTIPLIER=10 317 318ifeq ($(CONFIG_BCMDHD_SDMMC),y) 319 DHDCFLAGS += -DBCMLXSDMMC -DCUSTOM_TXGLOM=1 320endif 321 322ifeq ($(CONFIG_BCMDHD_SDIOH_STD),y) 323 DHDCFLAGS += -DBCMSDIOH_STD 324endif 325 326ifeq ($(CONFIG_BCMDHD_SDIO),y) 327 DHDCFLAGS += -DBDC -DHW_OOB -DDHD_BCMEVENTS -DMMC_SDIO_ABORT 328 DHDCFLAGS += -DBCMSDIO -DUSE_SDIOFIFO_IOVAR 329 DHDCFLAGS += -DPROP_TXSTATUS -DLIMIT_BORROW 330 DHDCFLAGS += -DPROP_TXSTATUS_VSDB 331 DHDCFLAGS += -DUSE_WL_FRAMEBURST 332# tput enhancement 333 DHDCFLAGS += -DCUSTOM_GLOM_SETTING=8 -DCUSTOM_RXCHAIN=1 334 DHDCFLAGS += -DUSE_DYNAMIC_F2_BLKSIZE -DDYNAMIC_F2_BLKSIZE_FOR_NONLEGACY=128 335 DHDCFLAGS += -DBCMSDIOH_TXGLOM -DAMPDU_HOSTREORDER 336 DHDCFLAGS += -DDHDTCPACK_SUPPRESS 337 DHDCFLAGS += -DRXFRAME_THREAD 338 DHDCFLAGS += -DREPEAT_READFRAME 339 DHDCFLAGS += -DCUSTOM_MAX_TXGLOM_SIZE=40 340 DHDCFLAGS += -DMAX_HDR_READ=128 341 DHDCFLAGS += -DDHD_FIRSTREAD=64 342 343# bcn_timeout 344 DHDCFLAGS += -DCUSTOM_BCN_TIMEOUT_SETTING=5 345 346 DHDCFLAGS += -DWLFC_STATE_PREALLOC 347 DHDCFLAGS += -DREVERSE_AIFSN 348 349# SDIO OOB 350ifeq ($(CONFIG_BCMDHD_OOB),y) 351 DHDCFLAGS += -DOOB_INTR_ONLY -DCUSTOMER_OOB -DHW_OOB 352else 353 DHDCFLAGS += -DSDIO_ISR_THREAD 354endif 355endif 356 357ifneq ($(CONFIG_BCMDHD_PCIE),) 358 DHDCFLAGS += -DPCIE_FULL_DONGLE -DBCMPCIE -DCUSTOM_DPC_PRIO_SETTING=-1 359# tput enhancement 360 DHDCFLAGS += -DCUSTOM_AMPDU_BA_WSIZE=64 361 DHDCFLAGS += -DPROP_TXSTATUS_VSDB 362# Disable watchdog thread 363 DHDCFLAGS += -DCUSTOM_DHD_WATCHDOG_MS=0 364# HEAP ASLR 365 DHDCFLAGS += -DBCM_ASLR_HEAP 366 DHDCFLAGS += -DMAX_CNTL_TX_TIMEOUT=1 367 368# Enable health check event handling 369 DHDCFLAGS += -DDNGL_EVENT_SUPPORT 370 DHDCFLAGS += -DHCHK_COMMON_SW_EVENT 371 372# Enable Load Balancing support by default. 373# DHD_LB_RXP - Perform RX Packet processing in parallel 374# DHD_LB_STATS - To display the Load Blancing statistics 375 DHDCFLAGS += -DDHD_LB -DDHD_LB_RXP -DDHD_LB_STATS 376 DHDCFLAGS += -DDHD_LB_PRIMARY_CPUS=0xF0 -DDHD_LB_SECONDARY_CPUS=0x0E 377 378# Runtime PM feature 379# DHDCFLAGS += -DDHD_PCIE_RUNTIMEPM -DMAX_IDLE_COUNT=11 -DCUSTOM_DHD_RUNTIME_MS=100 380 381# debug info 382 DHDCFLAGS += -DDHD_WAKE_STATUS -DDHD_WAKE_RX_STATUS 383 384# Enable SSSR Dump 385 DHDCFLAGS += -DDHD_SSSR_DUMP 386 387# Enabling temporarily due to build failure 388 DHDCFLAGS += -DDHD_PKTTS -DTX_STATUS_LATENCY_STATS 389 390# Enable MSI interrupt Support 391 DHDCFLAGS += -DDHD_MSI_SUPPORT 392 DHDCFLAGS += -DDHD_RECOVER_TIMEOUT 393endif 394 395ifeq ($(CONFIG_DHD_CHIP), cyw43455) 396 DHDCFLAGS += -DCONFIG_DHD_CYW43455 397endif 398 399ifeq ($(CONFIG_DHD_CHIP), cyw4354) 400 DHDCFLAGS += -DMAX_AP_CLIENT_CNT=10 401 DHDCFLAGS += -DMAX_GO_CLIENT_CNT=5 402ifeq ($(CONFIG_BCMDHD_SDIO),y) 403 DHDCFLAGS += -DCUSTOM_AMPDU_MPDU=16 404 DHDCFLAGS += -DCUSTOM_AMPDU_BA_WSIZE=64 405endif 406ifneq ($(CONFIG_BCMDHD_PCIE),) 407 DHDCFLAGS += -DCUSTOM_AMPDU_BA_WSIZE=64 408endif 409endif 410 411ifeq ($(CONFIG_DHD_CHIP), cyw4373) 412 DHDCFLAGS += -DCUSTOM_AMPDU_BA_WSIZE=32 413endif 414 415ifeq ($(CONFIG_DHD_CHIP), cyw54591) 416 DHDCFLAGS += -DWL_FW_ARCH_MSCH 417 DHDCFLAGS += -DIGUANA_LEGACY_CHIPS 418endif 419 420ifeq ($(CONFIG_DHD_CHIP), cyw5557x) 421 DHDCFLAGS += -DWL_FW_ARCH_MSCH 422 DHDCFLAGS += -DIGUANA_LEGACY_CHIPS 423endif 424 425#EXTRA_LDFLAGS += --strip-debug 426 427ifeq ($(DRIVER_TYPE),y) 428 DHDCFLAGS += -DENABLE_INSMOD_NO_FW_LOAD 429 DHDCFLAGS += -DUSE_LATE_INITCALL_SYNC 430 # Use kernel strlcpy() implementation instead of one, defined in bcmstdlib_s.c 431 DHDCFLAGS += -DBCM_USE_PLATFORM_STRLCPY 432endif 433 434DHDOFILES += dhd_pno.o dhd_common.o dhd_ip.o dhd_custom_gpio.o \ 435 dhd_linux.o dhd_linux_sched.o dhd_cfg80211.o dhd_linux_wq.o aiutils.o \ 436 bcmevent.o bcmutils.o bcmwifi_channels.o hndpmu.o linux_osl.o linux_pkt.o \ 437 sbutils.o siutils.o wl_android.o wl_roam.o wl_cfg80211.o wl_cfgscan.o wl_cfgp2p.o \ 438 wl_cfg_btcoex.o wldev_common.o wl_linux_mon.o dhd_linux_platdev.o \ 439 dhd_pno.o dhd_linux_pktdump.o wl_cfg_btcoex.o hnd_pktq.o \ 440 hnd_pktpool.o wl_cfgvendor.o bcmxtlv.o bcm_app_utils.o dhd_debug.o \ 441 dhd_debug_linux.o dhd_mschdbg.o bcmbloom.o dhd_dbg_ring.o bcmstdlib_s.o \ 442 dhd_linux_exportfs.o 443 444ifeq ($(CONFIG_DHD_PLATFORM), Rockchip) 445 DHDCFLAGS += -DCONFIG_DHD_PLAT_ROCKCHIP 446 DHDCFLAGS += -DWL_ENABLE_P2P_IF 447 DHDCFLAGS += -DDHD_MAP_CHIP_FIRMWARE_PATH 448 DHDCFLAGS += -DDHD_FIRMWARE_DIR_PATH=\"/vendor/etc/firmware\" 449ifeq ($(CONFIG_BCMDHD_SDIO),y) 450 DHDCFLAGS += -DDHD_OF_SUPPORT 451 DHDCFLAGS += -DDHD_CUSTOM_PLAT_DATA 452 DHDCFLAGS += -DDHD_SDIO_MEM_BUF 453# DHDCFLAGS += -DANDROID_SDIO_RESET 454 DHDOFILES += dhd_custom_rockchip.o 455endif 456endif 457 458ifeq ($(CONFIG_DHD_PLATFORM), msm) 459ifneq ($(CONFIG_DHD_OF_SUPPORT),) 460 DHDCFLAGS += -DDHD_OF_SUPPORT 461 DHDOFILES += dhd_custom_msm.o 462ifneq ($(CONFIG_BROADCOM_WIFI_RESERVED_MEM),) 463 DHDOFILES += dhd_custom_memprealloc.o 464endif 465endif 466endif 467 468ifeq ($(CONFIG_BCMDHD_SDMMC),y) 469 DHDOFILES += bcmsdh_sdmmc.o bcmsdh_sdmmc_linux.o 470endif 471 472ifeq ($(CONFIG_BCMDHD_SDIO),y) 473 DHDOFILES += bcmsdh.o bcmsdh_linux.o 474 DHDOFILES += dhd_cdc.o dhd_wlfc.o dhd_sdio.o 475endif 476 477ifeq ($(CONFIG_BCMDHD_SDIOH_STD),y) 478 DHDOFILES += bcmsdstd.o bcmsdstd_linux.o 479endif 480 481ifneq ($(CONFIG_BCMDHD_PCIE),) 482 DHDOFILES += dhd_pcie.o dhd_pcie_linux.o dhd_msgbuf.o dhd_flowring.o 483 DHDOFILES += pcie_core.o 484endif 485 486ifneq ($(filter -DDHD_LB, $(DHDCFLAGS)),) 487DHDOFILES += dhd_linux_lb.o 488endif 489ifneq ($(filter -DDHD_BANDSTEER, $(DHDCFLAGS)),) 490 DHDOFILES += dhd_bandsteer.o 491endif 492 493ifneq ($(CONFIG_QT),y) 494 DHDCFLAGS += -DRTT_SUPPORT -DRTT_DEBUG 495 DHDOFILES += dhd_rtt.o 496endif 497EXTRA_CFLAGS += $(DHDCFLAGS) -DDHD_DEBUG 498EXTRA_CFLAGS += -DSRCBASE=\"$(src)\" 499EXTRA_CFLAGS += -I$(src)/include/ -I$(src)/ 500KBUILD_CFLAGS += -I$(KDIR)/include -I$(CURDIR) 501 502$(DHD_MODULE_NAME)-objs := $(DHDOFILES) 503obj-$(DRIVER_TYPE) += $(DHD_MODULE_NAME).o 504 505all: 506 @echo "$(MAKE) --no-print-directory -C $(KDIR) M=$(CURDIR) modules" 507 @$(MAKE) --no-print-directory -C $(KDIR) M=$(CURDIR) modules 508 509clean: 510 rm -rf *.o *.ko *.mod.c *~ .*.cmd *.o.cmd .*.o.cmd \ 511 Module.symvers modules.order .tmp_versions modules.builtin 512 513install: 514 @$(MAKE) --no-print-directory -C $(KDIR) \ 515 SUBDIRS=$(CURDIR) modules_install 516