1 # Helper makefile for building Broadcom wl device driver
2 # This file maps wl driver feature flags (import) to WLFLAGS and WLFILES_SRC (export).
4 # Copyright (C) 2010, Broadcom Corporation. All Rights Reserved.
6 # Permission to use, copy, modify, and/or distribute this software for any
7 # purpose with or without fee is hereby granted, provided that the above
8 # copyright notice and this permission notice appear in all copies.
10 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
13 # SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
15 # OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
16 # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 # $Id: wl.mk,v 1.369.2.53 2011-01-26 19:40:43 Exp $
21 ifeq ($(WL_PPR_SUBBAND
),1)
22 WLFLAGS
+= -DWL_PPR_SUBBAND
29 WLFLAGS
+= -DBCMDBG
-DWLTEST
-DWLTIMER
-DWIFI_ACT_FRAME
31 WLFLAGS
+= -DRWL_WIFI
-DWLRWL
46 WLFLAGS
+= -DWLMFG
-DWLTEST
47 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_mfg.c
53 ifeq ($(BCMDBG_MEM
),1)
54 WLFLAGS
+= -DBCMDBG_MEM
59 ifeq ($(BCMDBG_PKT
),1)
60 WLFLAGS
+= -DBCMDBG_PKT
65 # CPU debug traps (lomem access, divide by 0, etc) are enabled except when mogrified out for
67 WLFLAGS
+= -DBCMDBG_TRAP
72 WLFLAGS
+= -DWLLMAC
-DEXTENDED_SCAN
87 ## iff one of WLC_LOW and WLC_HIGH is defined, SPLIT is true
98 ifeq ($(RPC_NOCOPY
),1)
99 WLFLAGS
+= -DBCM_RPC_NOCOPY
101 ifeq ($(RPC_RXNOCOPY
),1)
102 WLFLAGS
+= -DBCM_RPC_RXNOCOPY
104 ifeq ($(RPC_TXNOCOPY
),1)
105 WLFLAGS
+= -DBCM_RPC_TXNOCOPY
108 WLFLAGS
+= -DBCM_RPC_TOC
111 WLFLAGS
+= -DBCM_RPC_ROC
113 ifeq ($(BMAC_ENABLE_LINUX_HOST_RPCAGG
),1)
114 WLFLAGS
+= -DBMAC_ENABLE_LINUX_HOST_RPCAGG
116 ifeq ($(DBUS_LINUX_RXDPC
),1)
117 WLFLAGS
+= -DDBUS_LINUX_RXDPC
119 ifneq ($(BCM_RPC_TP_DBUS_NTXQ
),)
120 WLFLAGS
+= -DBCM_RPC_TP_DBUS_NTXQ
=$(BCM_RPC_TP_DBUS_NTXQ
)
122 ifneq ($(BCM_RPC_TP_DBUS_NRXQ
),)
123 WLFLAGS
+= -DBCM_RPC_TP_DBUS_NRXQ
=$(BCM_RPC_TP_DBUS_NRXQ
)
125 ifeq ($(BCMUSBDEV_EP_FOR_RPCRETURN
),1)
126 WLFLAGS
+= -DBCMUSBDEV_EP_FOR_RPCRETURN
134 ifneq ($(BCM_RPC_TP_FLOWCTL_QWM_HIGH
),)
135 WLFLAGS
+= -DBCM_RPC_TP_FLOWCTL_QWM_HIGH
=$(BCM_RPC_TP_FLOWCTL_QWM_HIGH
)
141 WLFLAGS
+= -DWLC_HIGH
144 ifeq ($(GTK_RESET
),1)
145 WLFLAGS
+= -DGTK_RESET
150 #WLFLAGS += -DEHCI_FASTPATH_TX -DEHCI_FASTPATH_RX
153 # split driver infrastructure files
155 WLFILES_SRC
+= src
/shared
/bcm_xdr.c
156 WLFILES_SRC
+= src
/shared
/bcm_rpc.c
158 WLFILES_SRC_HI
+= src
/shared
/nvramstubs.c
161 WLFILES_SRC_HI
+= src
/shared
/linux_rpc_osl.c
165 WLFILES_SRC_HI
+= src
/shared
/ndis_rpc_osl.c
169 WLFILES_SRC_HI
+= src
/shared
/bcm_rpc_tp_dbus.c
172 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_bmac_stubs.c
173 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_rpctx.c
174 WLFILES_SRC_LO
+= src
/wl
/sys
/wlc_high_stubs.c
177 # for SDIO BMAC, OSLREGOPS can not be a global define, dbus need direct register access
178 # OSLREGOPS is defined in wlc_cfg.h
180 ifneq ($(WLVISTA
)$(WLWIN7
),)
181 WLFILES_SRC_HI
+= src
/shared
/sdh_ndis.c
184 WLFLAGS
+= -DBCMBUSTYPE
=RPC_BUS
185 WLFLAGS
+= -DOSLREGOPS
192 WLFILES_SRC
+= src
/shared
/bcmwifi.c
193 WLFILES_SRC
+= src
/shared
/bcmevent.c
194 WLFILES_SRC
+= src
/wl
/sys
/wlc_alloc.c
196 WLFILES_SRC_LO
+= src
/shared
/qmath.c
197 WLFILES_SRC_LO
+= src
/wl
/sys
/d11ucode_le15.c
198 WLFILES_SRC_LO
+= src
/wl
/sys
/d11ucode_gt15.c
199 WLFILES_SRC_LO
+= src
/wl
/sys
/d11ucode_ge24.c
200 WLFILES_SRC_LO
+= src
/wl
/phy
/wlc_phy_cmn.c
201 WLFILES_SRC_LO
+= src
/wl
/phy
/wlc_phy_ssn.c
202 WLFILES_SRC_LO
+= src
/wl
/phy
/wlc_phy_n.c
203 WLFILES_SRC_LO
+= src
/wl
/phy
/wlc_phytbl_n.c
204 WLFILES_SRC_LO
+= src
/wl
/phy
/wlc_phytbl_ssn.c
205 WLFILES_SRC_LO
+= src
/wl
/sys
/wlc_phy_shim.c
206 WLFILES_SRC_LO
+= src
/wl
/sys
/wlc_bmac.c
209 WLFILES_SRC_LO
+= src
/wl
/phy
/wlc_phy_ht.c
210 WLFILES_SRC_LO
+= src
/wl
/phy
/wlc_phytbl_ht.c
211 WLFILES_SRC_LO
+= src
/wl
/phy
/wlc_phy_lcn40.c
212 WLFILES_SRC_LO
+= src
/wl
/phy
/wlc_phytbl_lcn40.c
213 WLFILES_SRC_LO
+= src
/wl
/phy
/wlc_phy_lcn.c
214 WLFILES_SRC_LO
+= src
/wl
/phy
/wlc_phytbl_lcn.c
215 WLFILES_SRC_LO
+= src
/wl
/phy
/wlc_phy_lp.c
216 WLFILES_SRC_LO
+= src
/wl
/phy
/wlc_phytbl_lp.c
217 WLFILES_SRC_LO
+= src
/wl
/phy
/wlc_phy_abg.c
220 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc.c
221 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_assoc.c
222 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_rate.c
223 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_stf.c
226 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_security.c
227 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_key.c
229 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_scb.c
230 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_rate_sel.c
231 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_antsel.c
232 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_bsscfg.c
233 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_scan.c
234 WLFILES_SRC_HI
+= src
/wl
/phy
/wlc_phy_iovar.c
235 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_rm.c
236 # tpc module is shared by 11h tpc and wl tx power control */
242 WLFILES_SRC
+= src
/wl
/sys
/wlc_lmac.c
244 WLFILES_SRC
+= src
/wl
/sys
/wlc_lmac_sta.c
246 ifeq ($(WLLMACPROTO
),1)
247 WLFLAGS
+= -DWLLMACPROTO
248 WLFILES_SRC
+= src
/wl
/sys
/wlc_lmac_proto.c
250 ifeq ($(WLLMAC_ONLY
),1)
251 WLFLAGS
+= -DWLLMAC_ONLY
252 WLFLAGS
+= -DWLNOEIND
253 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_channel_dummy.c
255 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_event.c
256 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_channel.c
259 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_event.c
260 ifeq ($(WLCHANNEL_DUMMY
),1)
261 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_channel_dummy.c
263 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_channel.c
266 WLFILES_SRC_HI
+= src
/shared
/bcmwpa.c
268 ifneq ($(LINUX_CRYPTO
),1)
269 WLFILES_SRC_HI
+= src
/bcmcrypto
/rc4.c
270 WLFILES_SRC_HI
+= src
/bcmcrypto
/tkhash.c
271 WLFILES_SRC_HI
+= src
/bcmcrypto
/tkmic.c
272 WLFILES_SRC_HI
+= src
/bcmcrypto
/wep.c
274 #endif /* LINUX_CRYPTO */
277 WLFLAGS
+= -DWLEXTLOG
278 WLFILES_SRC
+= src
/wl
/sys
/wlc_extlog.c
282 ifeq ($(WLSCANCACHE
),1)
283 WLFLAGS
+= -DWLSCANCACHE
284 WLFILES_SRC
+= src
/wl
/sys
/wlc_scandb.c
294 WLFILES_SRC
+= src
/shared
/dbus.c
298 WLFILES_SRC_HI
+= src
/shared
/siutils.c
299 WLFILES_SRC_HI
+= src
/shared
/bcmotp.c
300 WLFILES_SRC_HI
+= src
/shared
/sbutils.c
301 WLFILES_SRC_HI
+= src
/shared
/aiutils.c
302 WLFILES_SRC_HI
+= src
/shared
/hndpmu.c
308 WLFILES_SRC
+= src
/shared
/dbus_sdh.c
309 WLFILES_SRC
+= src
/shared
/dbus_sdio_linux.c
311 WLFILES_SRC
+= src
/shared
/dbus_usb.c
312 WLFILES_SRC
+= src
/shared
/dbus_usb_linux.c
317 ifneq ($(WLVISTA
)$(WLWIN7
),)
318 WLFILES_SRC
+= src
/shared
/dbus_sdio.c
319 WLFILES_SRC
+= src
/shared
/dbus_sdio_ndis.c
321 WLFILES_SRC
+= src
/shared
/dbus_sdh.c
322 WLFILES_SRC
+= src
/shared
/dbus_sdh_ndis.c
325 WLFILES_SRC
+= src
/shared
/dbus_usb.c
326 WLFILES_SRC
+= src
/shared
/dbus_usb_ndis.c
334 ifeq ($(BCM_DNGL_EMBEDIMAGE
),1)
335 WLFLAGS
+= -DBCM_DNGL_EMBEDIMAGE
339 # For USBAP to select which images to embed
340 ifeq ($(EMBED_IMAGE_4319usb
),1)
341 WLFLAGS
+= -DEMBED_IMAGE_4319usb
343 ifeq ($(EMBED_IMAGE_4319sd
),1)
344 WLFLAGS
+= -DEMBED_IMAGE_4319sd
346 ifeq ($(EMBED_IMAGE_4322
),1)
347 WLFLAGS
+= -DEMBED_IMAGE_4322
350 ifeq ($(EMBED_IMAGE_43236b1
),1)
351 WLFLAGS
+= -DEMBED_IMAGE_43236b1
353 ifeq ($(EMBED_IMAGE_43237a0
),1)
354 WLFLAGS
+= -DEMBED_IMAGE_43237a0
357 ifeq ($(WL_DNGL_WD
),1)
358 WLFLAGS
+= -DWL_DNGL_WD
359 ifneq ($(WL_DNGL_WD_DEFAULT_TIMEOUT
),)
360 WLFLAGS
+= -DWL_DNGL_WD_DEFAULT_TIMEOUT
=$(WL_DNGL_WD_DEFAULT_TIMEOUT
)
367 WLFILES_SRC
+= src
/wl
/sys
/wl_vx.c
368 WLFILES_SRC
+= src
/shared
/bcmstdlib.c
369 WLFLAGS
+= -DSEC_TXC_ENABLED
375 WLFILES_SRC
+= src
/wl
/sys
/wl_bsd.c
381 WLFILES_SRC
+= src
/wl
/sys
/wl_usermode.c
382 WLFLAGS
+= -DUSER_MODE
389 WLFILES_SRC_LO
+= src
/wl
/sys
/wl_linux_bmac.c
390 WLFILES_SRC_LO
+= src
/shared
/bcm_rpc_char.c
393 WLFILES_SRC_HI
+= src
/wl
/sys
/wl_linux.c
396 WLFILES_SRC_HI
+= src
/wl
/sys
/wl_cdev.c
405 WLFILES_SRC_HI
+= src
/wl
/sys
/wl_iw.c
412 WLFILES_SRC
+= src
/wl
/sys
/wl_cfe.c
418 WLFILES_SRC
+= src
/wl
/sys
/wl_rte.c
420 WLFILES_SRC_LO
+= src
/shared
/bcm_rpc_tp_rte.c
425 ifeq ($(BCMECICOEX
),1)
426 WLFLAGS
+= -DBCMECICOEX
429 ifeq ($(CCA_STATS
),1)
430 WLFLAGS
+= -DCCA_STATS
431 ifeq ($(ISID_STATS
),1)
432 WLFLAGS
+= -DISID_STATS
436 ifeq ($(DNGL_WD_KEEP_ALIVE
),1)
437 WLFLAGS
+= -DDNGL_WD_KEEP_ALIVE
442 # anything Windows/NDIS specific for 2k/xp/vista/windows7
444 WLFILES_SRC
+= src
/wl
/sys
/wl_ndis.c
446 ifeq ($(WLNDIS_DHD
),)
447 WLFILES_SRC
+= src
/wl
/sys
/nhd_ndis.c
450 WLFLAGS
+= -DMEMORY_TAG
="'7034'"
452 WLFLAGS
+= -DMEMORY_TAG
='DWMB'
456 WLFLAGS
+= -DMEMORY_TAG
="'7034'"
458 WLFLAGS
+= -DMEMORY_TAG
='NWMB'
462 WLFILES_SRC
+= src
/dhd
/sys
/dhd_ndis.c
464 WLFLAGS
+= -DMEMORY_TAG
="'7034'"
466 WLFLAGS
+= -DMEMORY_TAG
='DWMB'
470 WLFILES_SRC
+= src
/wl
/sys
/wl_ndconfig.c
471 WLFILES_SRC
+= src
/shared
/bcmwifi.c
472 WLFILES_SRC
+= src
/shared
/bcmstdlib.c
474 # support host supplied nvram variables
476 ifeq ($(WLHOSTVARS
), 1)
477 WLFLAGS
+= -DBCMHOSTVARS
480 ifeq ($(BCMEXTNVM
),1)
481 ifeq ($(WLHOSTVARS
), 1)
482 WLFLAGS
+= -DBCMHOSTVARS
487 ifneq ($(WLVISTA
)$(WLWIN7
),)
489 WLFLAGS
+= -DWL_MONITOR
490 WLFLAGS
+= -DIBSS_PEER_GROUP_KEY
491 WLFLAGS
+= -DIBSS_PEER_DISCOVERY_EVENT
492 WLFLAGS
+= -DIBSS_PEER_MGMT
500 WLFLAGS
+= -DWLNOEIND
507 # HIGH driver for BMAC ?? any ndis/xp/vista ?
511 # DHD host: ?? to clean up and to support all other DHD OSes
512 ifeq ($(WLNDIS_DHD
),1)
513 WLFLAGS
+= -DSHOW_EVENTS
-DBCMPERFSTATS
514 WLFLAGS
+= -DBDC
-DBCMDONGLEHOST
518 WLFLAGS
+= -DBCMDHDUSB
519 WLFLAGS
+= -DBCM4328
-DBCM4322
522 WLFILES_SRC
+= src
/shared
/bcmevent.c
523 WLFILES_SRC
+= src
/dhd
/sys
/dhd_cdc.c
524 WLFILES_SRC
+= src
/dhd
/sys
/dhd_common.c
529 WLFILES_SRC
+= src
/dhd
/sys
/dhd_usb_ndis.c
532 ifneq ($(WLVISTA
)$(WLWIN7
),)
533 WLFILES_SRC
+= src
/wl
/sys
/wlc_rate.c
537 WLFILES_SRC
+= src
/wl
/sys
/wlc_ap.c
538 WLFILES_SRC
+= src
/wl
/sys
/wlc_apps.c
542 WLFLAGS
+= -DNDIS_DMAWAR
543 # move these non-wl flag to makefiles
544 WLFLAGS
+= -DBINARY_COMPATIBLE
-DWIN32_LEAN_AND_MEAN
=1
550 WLFILES_SRC
+= src
/dhd
/sys
/dhd_bta.c
553 WLFLAGS
+= -DWLBTWUSB
554 WLFILES_SRC
+= src
/wl
/sys
/bt_int.c
556 #endif /* WLBTWUSB */
563 ifeq ($(ADV_PS_POLL
),1)
564 WLFLAGS
+= -DADV_PS_POLL
569 WLFLAGS
+= -DWLC_HOSTOID
570 WLFILES_SRC
+= src
/wl
/sys
/wlc_hostoid.c
582 # NCONF -- 0 is remove from code, else bit mask of supported nphy revs
584 WLFLAGS
+= -DNCONF
=$(NCONF
)
587 # HTCONF -- 0 is remove from code, else bit mask of supported htphy revs
589 WLFLAGS
+= -DHTCONF
=$(HTCONF
)
592 # ACONF -- 0 is remove from code, else bit mask of supported aphy revs
594 WLFLAGS
+= -DACONF
=$(ACONF
)
597 # GCONF -- 0 is remove from code, else bit mask of supported gphy revs
599 WLFLAGS
+= -DGCONF
=$(GCONF
)
602 # LPCONF -- 0 is remove from code, else bit mask of supported lpphy revs
604 WLFLAGS
+= -DLPCONF
=$(LPCONF
)
607 # SSLPNCONF -- 0 is remove from code, else bit mask of supported sslpnphy revs
608 ifneq ($(SSLPNCONF
),)
609 WLFLAGS
+= -DSSLPNCONF
=$(SSLPNCONF
)
612 # LCNCONF -- 0 is remove from code, else bit mask of supported lcnphy revs
614 WLFLAGS
+= -DLCNCONF
=$(LCNCONF
)
620 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_ap.c
621 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_apps.c
634 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_apcs.c
638 # WME_PER_AC_TX_PARAMS
639 ifeq ($(WME_PER_AC_TX_PARAMS
),1)
640 WLFLAGS
+= -DWME_PER_AC_TX_PARAMS
644 ifeq ($(WME_PER_AC_TUNING
),1)
645 WLFLAGS
+= -DWME_PER_AC_TUNING
670 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_wet.c
674 #ifdef RXCHAIN_PWRSAVE
675 ifeq ($(RXCHAIN_PWRSAVE
), 1)
676 WLFLAGS
+= -DRXCHAIN_PWRSAVE
681 ifeq ($(RADIO_PWRSAVE
), 1)
682 WLFLAGS
+= -DRADIO_PWRSAVE
688 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_wmf.c
694 ifeq ($(MCAST_REGEN
), 1)
695 WLFLAGS
+= -DMCAST_REGEN
700 ifeq ($(ROUTER_COMA
), 1)
701 WLFILES_SRC_HI
+= src
/shared
/hndmips.c
702 WLFILES_SRC_HI
+= src
/shared
/hndchipc.c
703 WLFLAGS
+= -DROUTER_COMA
708 #ifdef WLOVERTHRUSTER
709 ifeq ($(WLOVERTHRUSTER
), 1)
710 WLFLAGS
+= -DWLOVERTHRUSTER
716 ifeq ($(MAC_SPOOF
),1)
717 WLFLAGS
+= -DMAC_SPOOF
722 # Router IBSS Security Support
723 ifeq ($(ROUTER_SECURE_IBSS
),1)
724 WLFLAGS
+= -DIBSS_PEER_GROUP_KEY
725 WLFLAGS
+= -DIBSS_PSK
726 WLFLAGS
+= -DIBSS_PEER_MGMT
727 WLFLAGS
+= -DIBSS_PEER_DISCOVERY_EVENT
742 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_led.c
748 ifeq ($(WL_MONITOR
),1)
749 WLFLAGS
+= -DWL_MONITOR
756 WLFLAGS
+= -DWL_PROMISC
760 ifeq ($(WL_ALL_PASSIVE
),1)
761 WLFLAGS
+= -DWL_ALL_PASSIVE
764 #ifdef ND_ALL_PASSIVE
765 ifeq ($(ND_ALL_PASSIVE
),1)
766 WLFLAGS
+= -DND_ALL_PASSIVE
777 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_cac.c
787 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_ba.c
795 WLFILES_SRC_LO
+= src
/wl
/sys
/wlc_pio.c
801 ifeq ($(WLAFTERBURNER
),1)
802 WLFLAGS
+= -DWLAFTERBURNER
810 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_cram.c
821 #ifdef WL11N_20MHZONLY
822 # 11N 20MHz only optimization
823 ifeq ($(WL11N_20MHZONLY
),1)
824 WLFLAGS
+= -DWL11N_20MHZONLY
828 #ifdef WL11N_SINGLESTREAM
829 # 11N single stream optimization
830 ifeq ($(WL11N_SINGLESTREAM
),1)
831 WLFLAGS
+= -DWL11N_SINGLESTREAM
858 ifeq ($(WLPROBRESP_SW
),1)
859 WLFLAGS
+= -DWLPROBRESP_SW
894 WLFLAGS
+= -DWLCHANIM
900 ifeq ($(WL_AP_TPC
),1)
901 WLFLAGS
+= -DWL_AP_TPC
918 ifeq ($(DELTASTATS
),1)
919 WLFLAGS
+= -DDELTASTATS
925 WLFLAGS
+= -DWLCNTSCB
938 # external linux supplicant
940 ifeq ($(LINUX_CRYPTO
), 1)
941 WLFLAGS
+= -DLINUX_CRYPTO
954 # in-driver supplicant
955 ifeq ($(BCMSUP_PSK
),1)
956 WLFLAGS
+= -DBCMSUP_PSK
-DBCMINTSUP
957 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_sup.c
958 WLFILES_SRC_HI
+= src
/bcmcrypto
/aes.c
959 WLFILES_SRC_HI
+= src
/bcmcrypto
/aeskeywrap.c
960 WLFILES_SRC_HI
+= src
/bcmcrypto
/hmac.c
961 WLFILES_SRC_HI
+= src
/bcmcrypto
/prf.c
962 WLFILES_SRC_HI
+= src
/bcmcrypto
/sha1.c
964 WLFILES_SRC_HI
+= src
/bcmcrypto
/hmac_sha256.c
965 WLFILES_SRC_HI
+= src
/bcmcrypto
/sha256.c
967 # NetBSD 2.0 has MD5 and AES built in
969 WLFILES_SRC_HI
+= src
/bcmcrypto
/md5.c
970 WLFILES_SRC_HI
+= src
/bcmcrypto
/rijndael-alg-fst.c
972 WLFILES_SRC_HI
+= src
/bcmcrypto
/passhash.c
978 # in-driver authenticator
979 ifeq ($(BCMAUTH_PSK
),1)
980 WLFLAGS
+= -DBCMAUTH_PSK
981 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_auth.c
989 WLFILES_SRC_HI
+= src
/bcmcrypto
/aes.c
990 # BSD has AES built in
992 WLFILES_SRC_HI
+=src
/bcmcrypto
/rijndael-alg-fst.c
998 # Management Frame Protection
1001 WLFILES_SRC_HI
+= src
/bcmcrypto
/aes.c
1002 WLFILES_SRC_HI
+= src
/bcmcrypto
/sha256.c
1003 WLFILES_SRC_HI
+= src
/bcmcrypto
/hmac_sha256.c
1004 # BSD has AES built in
1006 WLFILES_SRC_HI
+=src
/bcmcrypto
/rijndael-alg-fst.c
1013 ifeq ($(BCMWAPI_WPI
),1)
1014 WLFILES_SRC_HI
+= src
/bcmcrypto
/sms4.c
1015 WLFLAGS
+= -DBCMWAPI_WPI
1016 ifeq ($(BCMSMS4_TEST
),1)
1017 WLFLAGS
+= -DBCMSMS4_TEST
1022 #ifdef WIFI_ACT_FRAME
1024 ifeq ($(WIFI_ACT_FRAME
),1)
1025 WLFLAGS
+= -DWIFI_ACT_FRAME
1030 ifeq ($(BCMDMA32
),1)
1031 WLFLAGS
+= -DBCMDMA32
1034 ifeq ($(BCMDMA64OSL
),1)
1035 WLFLAGS
+= -DBCMDMA64OSL
1038 ifeq ($(BCMDMASGLISTOSL
),1)
1039 WLFLAGS
+= -DBCMDMASGLISTOSL
1042 # Early DMA TX Free for LOW driver
1043 ifeq ($(WL_DMA_TX_FREE
),1)
1044 ifneq ($(WL_HIGH
),1)
1045 ifeq ($(PT_GIANT
),1)
1046 WLFLAGS
+= -DDMA_TX_FREE
1054 WLFLAGS
+= -DBCMJTAG
-DBCMSLTGT
1055 WLFILES_SRC
+= src
/shared
/bcmjtag.c
1056 WLFILES_SRC
+= src
/shared
/bcmjtag_linux.c
1057 WLFILES_SRC
+= src
/shared
/ejtag.c
1058 WLFILES_SRC
+= src
/shared
/jtagm.c
1064 WLFLAGS
+= -DWLAMSDU
1065 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_amsdu.c
1069 #ifdef WLAMSDU_SWDEAGG
1070 ifeq ($(WLAMSDU_SWDEAGG
),1)
1071 WLFLAGS
+= -DWLAMSDU_SWDEAGG
1077 WLFLAGS
+= -DWLAMPDU
1078 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_ampdu.c
1079 ifeq ($(WLAMPDU_UCODE
),1)
1080 WLFLAGS
+= -DWLAMPDU_UCODE
-DWLAMPDU_MAC
1082 ifeq ($(WLAMPDU_HW
),1)
1083 WLFLAGS
+= -DWLAMPDU_HW
-DWLAMPDU_MAC
1085 ifeq ($(WLAMPDU_PRECEDENCE
),1)
1086 WLFLAGS
+= -DWLAMPDU_PRECEDENCE
1094 WLFILES_SRC_HI
+= src
/wl
/sys
/d11ucode_wowl.c
1095 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_wowl.c
1096 WLFILES_SRC_HI
+= src
/wl
/sys
/wowlaestbls.c
1101 ifeq ($(BTC2WIRE
),1)
1102 WLFLAGS
+= -DBTC2WIRE
1103 WLFILES_SRC_LO
+= src
/wl
/sys
/d11ucode_2w.c
1107 #ifdef WL_ASSOC_RECREATE
1108 ifeq ($(WL_ASSOC_RECREATE
),1)
1110 WLFLAGS
+= -DWL_ASSOC_RECREATE
1118 WLFLAGS
+= -DWLP2P
-DWL_BSSCFG_TX_SUPR
-DWIFI_ACT_FRAME
1119 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_p2p.c
1120 WLFILES_SRC_LO
+= src
/wl
/sys
/d11ucode_p2p.c
1121 ifeq ($(WLMCHAN
), 1)
1122 WLFLAGS
+= -DWLMCHAN
1123 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_mchan.c
1125 ifeq ($(WLMULTIQUEUE
), 1)
1126 WLFLAGS
+= -DWL_MULTIQUEUE
1134 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_rwl.c
1138 ifneq ($(WLNDIS_DHD
),1)
1140 ifeq ($(AP
)$(STA
),11)
1142 WLFLAGS
+= -DWLBTAMP
1143 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_bta.c
1145 ifeq ($(WLBTWUSB
),1)
1146 WLFLAGS
+= -DWLBTWUSB
1147 WLFILES_SRC_HI
+= src
/wl
/sys
/bt_int.c
1149 #endif /* WLBTWUSB */
1152 #endif /* WLBTAMP */
1158 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_plt.c
1164 ifeq ($(WLNINTENDO2
),1)
1165 WLFLAGS
+= -DWLNINTENDO2
1171 WLFLAGS
+= -DWLMEDIA_EN
1172 WLFLAGS
+= -DWLMEDIA_RATESTATS
1173 WLFLAGS
+= -DWLMEDIA_MULTIQUEUE
1174 WLFLAGS
+= -DWLMEDIA_TXFIFO_FLUSH_SCB
1175 WLFLAGS
+= -DWLMEDIA_AMPDUSTATS
1176 WLFLAGS
+= -DWLMEDIA_TXFAILEVENT
1177 WLFLAGS
+= -DWLMEDIA_LQSTATS
1178 WLFLAGS
+= -DWLMEDIA_CALDBG
1179 WLFLAGS
+= -DWLMEDIA_EXT
1180 WLFLAGS
+= -DWLMEDIA_TXFILTER_OVERRIDE
1181 WLFLAGS
+= -DWLMEDIA_TSF
1182 WLFLAGS
+= -DWLMEDIA_PEAKRATE
1187 ifeq ($(WLPKTDLYSTAT
),1)
1188 WLFLAGS
+= -DWLPKTDLYSTAT
1197 ifeq ($(BCMSIBUS
),1)
1198 WLFLAGS
+= -DBCMBUSTYPE
=SI_BUS
1204 WLFLAGS
+= -DBCMCHIPTYPE
=SOCI_SB
1207 WLFLAGS
+= -DBCMCHIPTYPE
=SOCI_AI
1213 #ifndef LINUX_HYBRID
1214 # AP/ROUTER with SDSTD
1215 ifeq ($(WLAPSDSTD
),1)
1216 WLFILES_SRC
+= src
/shared
/nvramstubs.c
1217 WLFILES_SRC
+= src
/shared
/bcmsrom.c
1221 ## --- basic shared files
1224 ifeq ($(BCMHIGHSDIO
),1)
1225 WLFLAGS
+= -DBCMHIGHSDIO
1230 ifeq ($(BCMLOSDIO
),1)
1231 WLFLAGS
+= -DBCMLOSDIO
1236 ifeq ($(BCMHIGHUSB
),1)
1237 WLFLAGS
+= -DBCMHIGHUSB
1242 ifeq ($(BCMLOUSB
),1)
1243 WLFLAGS
+= -DBCMLOUSB
1249 WLFILES_SRC_LO
+= src
/shared
/hnddma.c
1254 ifeq ($(MSGTRACE
),1)
1255 WLFILES_SRC
+= src
/shared
/msgtrace.c
1256 WLFLAGS
+= -DMSGTRACE
1261 ifeq ($(BCMUTILS
),1)
1262 WLFILES_SRC
+= src
/shared
/bcmutils.c
1271 WLFILES_SRC_HI
+= src
/shared
/bcmsrom.c
1272 WLFILES_SRC_HI
+= src
/shared
/bcmotp.c
1275 WLFILES_SRC_LO
+= src
/shared
/bcmsrom.c
1276 WLFILES_SRC_LO
+= src
/shared
/bcmotp.c
1282 WLFILES_SRC_LO
+= src
/shared
/bcmotp.c
1283 WLFLAGS
+= -DBCMNVRAMR
1289 WLFILES_SRC_LO
+= src
/shared
/siutils.c
1290 WLFILES_SRC_LO
+= src
/shared
/sbutils.c
1291 WLFILES_SRC_LO
+= src
/shared
/aiutils.c
1292 WLFILES_SRC_LO
+= src
/shared
/hndpmu.c
1293 ifneq ($(BCMPCI
), 0)
1294 WLFILES_SRC_LO
+= src
/shared
/nicpci.c
1297 #endif /* SIUTILS */
1301 WLFLAGS
+= -DBCMMIPS
1302 WLFILES_SRC_LO
+= src
/shared
/hndmips.c
1303 WLFILES_SRC_LO
+= src
/shared
/hndchipc.c
1309 WLFILES_SRC_LO
+= src
/shared
/hndpci.c
1315 WLFILES_SRC_LO
+= src
/shared
/sflash.c
1320 ifeq ($(FLASHUTL
),1)
1321 WLFILES_SRC_LO
+= src
/shared
/flashutl.c
1329 WLFILES_SRC
+= src
/shared
/usermode_osl.c
1330 WLFLAGS
+= -DUSER_MODE
1337 WLFILES_SRC
+= src
/shared
/linux_osl.c
1344 WLFILES_SRC
+= src
/shared
/vx_osl.c
1345 WLFILES_SRC
+= src
/shared
/bcmallocache.c
1352 WLFILES_SRC
+= src
/shared
/bsd_osl.c
1353 WLFILES_SRC
+= src
/shared
/nvramstubs.c
1359 WLFILES_SRC
+= src
/shared
/cfe_osl.c
1365 WLFILES_SRC
+= src
/shared
/hndrte_osl.c
1371 WLFILES_SRC
+= src
/shared
/ndshared.c
1372 WLFILES_SRC
+= src
/shared
/ndis_osl.c
1376 #ifndef LINUX_HYBRID
1377 ifeq ($(CONFIG_USBRNDIS_RETAIL
),1)
1378 WLFLAGS
+= -DCONFIG_USBRNDIS_RETAIL
1379 WLFILES_SRC
+= src
/wl
/sys
/wl_ndconfig.c
1380 WLFILES_SRC
+= src
/shared
/bcmwifi.c
1384 WLFILES_SRC_LO
+= src
/dongle
/rte
/test/nvram.c
1385 WLFILES_SRC_LO
+= src
/dongle
/rte
/sim
/nvram.c
1386 WLFILES_SRC_LO
+= src
/shared
/nvram
/nvram.c
1390 WLFILES_SRC_LO
+= src
/shared
/nvram
/nvram_rw.c
1392 #endif /* LINUX_HYBRID */
1395 ifeq ($(BCMNVRAMR
),1)
1396 WLFILES_SRC_LO
+= src
/shared
/nvram
/nvram_ro.c
1397 WLFILES_SRC_LO
+= src
/shared
/sflash.c
1398 WLFILES_SRC_LO
+= src
/shared
/bcmotp.c
1399 WLFLAGS
+= -DBCMNVRAMR
1401 #else /* !BCMNVRAMR */
1402 ifneq ($(BCMNVRAMR
),1)
1403 ifeq ($(WLLXNOMIPSEL
),1)
1405 WLFILES_SRC
+= src
/shared
/nvramstubs.c
1409 WLFILES_SRC
+= src
/shared
/nvramstubs.c
1411 ifeq ($(BCMNVRAMW
),1)
1412 WLFILES_SRC_LO
+= src
/shared
/nvram
/nvram_ro.c
1413 WLFILES_SRC_LO
+= src
/shared
/sflash.c
1417 ifeq ($(BCMNVRAMW
),1)
1418 WLFILES_SRC_LO
+= src
/shared
/bcmotp.c
1419 WLFLAGS
+= -DBCMNVRAMW
1422 #endif /* !BCMNVRAMR */
1424 # Define one OTP mechanism, or none to support all dynamically
1425 ifeq ($(BCMHNDOTP
),1)
1426 WLFLAGS
+= -DBCMHNDOTP
1428 ifeq ($(BCMIPXOTP
),1)
1429 WLFLAGS
+= -DBCMIPXOTP
1436 WLFILES_SRC_LO
+= src
/wl
/sys
/wlc_diag.c
1442 ifeq ($(WLTINYDUMP
),1)
1443 WLFLAGS
+= -DWLTINYDUMP
1450 # Set flag to indicate emulated chip
1451 WLFLAGS
+= -DBCMSLTGT
-DBCMQT
1453 # Use of RTE implies embedded (CPU emulated)
1454 WLFLAGS
+= -DBCMQT_CPU
1462 WLFILES_SRC
+= src
/wl
/sys
/wl_pfn.c
1463 ifeq ($(WLPFN_AUTO_CONNECT
),1)
1464 WLFLAGS
+= -DWLPFN_AUTO_CONNECT
1472 WLFILES_SRC
+= src
/wl
/sys
/wl_toe.c
1479 WLFILES_SRC
+= src
/wl
/sys
/wl_arpoe.c
1486 WLFILES_SRC
+= src
/wl
/sys
/wl_plc_linux.c
1490 #ifdef PCOEM_LINUXSTA
1491 ifeq ($(PCOEM_LINUXSTA
),1)
1492 WLFLAGS
+= -DPCOEM_LINUXSTA
1497 ifeq ($(LINUXSTA_PS
),1)
1498 WLFLAGS
+= -DLINUXSTA_PS
1502 #ifndef LINUX_HYBRID
1503 ifeq ($(KEEP_ALIVE
),1)
1504 WLFLAGS
+= -DKEEP_ALIVE
1505 WLFILES_SRC
+= src
/wl
/sys
/wl_keep_alive.c
1508 #ifdef OPENSRC_IOV_IOCTL
1509 ifeq ($(OPENSRC_IOV_IOCTL
),1)
1510 WLFLAGS
+= -DOPENSRC_IOV_IOCTL
1514 ifeq ($(PACKET_FILTER
),1)
1515 WLFLAGS
+= -DPACKET_FILTER
1516 WLFILES_SRC
+= src
/wl
/sys
/wlc_pkt_filter.c
1519 ifeq ($(SEQ_CMDS
),1)
1520 WLFLAGS
+= -DSEQ_CMDS
1521 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_seq_cmds.c
1524 ifeq ($(RECEIVE_THROTTLE
),1)
1525 WLFLAGS
+= -DWL_PM2_RCV_DUR_LIMIT
1528 ifeq ($(ASYNC_TSTAMPED_LOGS
),1)
1529 WLFLAGS
+= -DBCMTSTAMPEDLOGS
1534 WLFILES_SRC
+= src
/wl
/sys
/wlc_rrm.c
1538 WLFILES_SRC
+= src
/wl
/sys
/wlc_wnm.c
1542 # Sort and remove duplicates from WLFILES*
1544 WLFILES_SRC
+= $(sort $(WLFILES_SRC_LO
))
1547 WLFILES_SRC
+= $(sort $(WLFILES_SRC_HI
))
1551 ifneq ($(WLPATCHFILE
), )
1552 WLFLAGS
+= -DWLC_PATCH
1553 WLFILES_SRC
+= $(WLPATCHFILE
)
1556 ifeq ($(SAMPLE_COLLECT
),1)
1557 WLFLAGS
+= -DSAMPLE_COLLECT
1560 # add a flag to indicate the split to linux kernels
1561 WLFLAGS
+= -DPHY_HAL
1563 ifeq ($(SMF_STATS
),1)
1564 WLFLAGS
+= -DSMF_STATS
1575 WLFLAGS
+= -DUSBSHIM
1581 WLFLAGS
+= -DBCM_DCS
1585 ifeq ($(WL_THREAD
),1)
1586 WLFLAGS
+= -DWL_THREAD
1589 ifeq ($(USBOS_THREAD
),1)
1590 WLFLAGS
+= -DUSBOS_THREAD
1592 ifeq ($(WL_NVRAM_FILE
),1)
1593 WLFLAGS
+= -DWL_NVRAM_FILE
1596 ifeq ($(WL_FW_DECOMP
),1)
1597 WLFLAGS
+= -DWL_FW_DECOMP
1598 WLFILES_SRC_HI
+= src
/shared
/zlib
/adler32.c
1599 WLFILES_SRC_HI
+= src
/shared
/zlib
/inffast.c
1600 WLFILES_SRC_HI
+= src
/shared
/zlib
/inflate.c
1601 WLFILES_SRC_HI
+= src
/shared
/zlib
/infcodes.c
1602 WLFILES_SRC_HI
+= src
/shared
/zlib
/infblock.c
1603 WLFILES_SRC_HI
+= src
/shared
/zlib
/inftrees.c
1604 WLFILES_SRC_HI
+= src
/shared
/zlib
/infutil.c
1605 WLFILES_SRC_HI
+= src
/shared
/zlib
/zutil.c
1606 WLFILES_SRC_HI
+= src
/shared
/zlib
/crc32.c
1609 ifeq ($(WL_WOWL_MEDIA
),1)
1610 WLFLAGS
+= -DWL_WOWL_MEDIA
1613 ifeq ($(WL_USB_ZLP_PAD
),1)
1614 WLFLAGS
+= -DWL_USB_ZLP_PAD
1617 ifeq ($(WL_URB_ZPKT
),1)
1618 WLFLAGS
+= -DWL_URB_ZPKT
1621 ifeq ($(WL_VMEM_NVRAM_DECOMP
),1)
1622 WLFLAGS
+= -DWL_VMEM_NVRAM_DECOMP
1626 # add a flag to indicate the split to linux kernels
1627 WLFLAGS
+= -DPHY_HAL
1629 ifeq ($(MEDIA_IPTV
),1)
1630 WLFLAGS
+= -DWLMEDIA_IPTV
1631 WLFLAGS
+= -DWET_TUNNEL
1632 WLFILES_SRC_HI
+= src
/wl
/sys
/wlc_wet_tunnel.c
1635 # Legacy WLFILES pathless definition, please use new src relative path
1637 WLFILES
:= $(sort $(notdir $(WLFILES_SRC
)))