PageRenderTime 29ms CodeModel.GetById 26ms app.highlight 2ms RepoModel.GetById 0ms app.codeStats 0ms

/drivers/net/wireless/bcmdhd/Makefile

https://bitbucket.org/cyanogenmod/android_kernel_asus_tf300t
Makefile | 50 lines | 45 code | 3 blank | 2 comment | 0 complexity | 33e124a6d1a9128c4d0ff05db860c1bc MD5 | raw file
Possible License(s): LGPL-2.0, AGPL-1.0, GPL-2.0
 1# bcmdhd
 2DHDCFLAGS = -Wall -Wstrict-prototypes -Dlinux -DBCMDRIVER                     \
 3	-DBCMDONGLEHOST -DUNRELEASEDCHIP -DBCMDMA32 -DWLBTAMP -DBCMFILEIMAGE  \
 4	-DDHDTHREAD -DDHD_GPL -DDHD_SCHED -DDHD_DEBUG -DSDTEST -DBDC -DTOE    \
 5	-DDHD_BCMEVENTS -DSHOW_EVENTS -DDONGLEOVERLAYS -DBCMDBG               \
 6	-DCUSTOMER_HW2                                                        \
 7	-DMMC_SDIO_ABORT -DBCMSDIO -DBCMLXSDMMC -DBCMPLATFORM_BUS -DWLP2P     \
 8	-DNEW_COMPAT_WIRELESS -DWIFI_ACT_FRAME -DARP_OFFLOAD_SUPPORT          \
 9	-DKEEP_ALIVE -DCSCAN -DGET_CUSTOM_MAC_ENABLE -DPKT_FILTER_SUPPORT     \
10	-DEMBEDDED_PLATFORM -DENABLE_INSMOD_NO_FW_LOAD -DPNO_SUPPORT          \
11	-DSET_RANDOM_MAC_SOFTAP -DWL_CFG80211_STA_EVENT                       \
12	-Idrivers/net/wireless/bcmdhd -Idrivers/net/wireless/bcmdhd/include
13
14ifeq ($(CONFIG_BCMDHD_WIFI_CONTROL_FUNC),y)
15DHDCFLAGS += -DCONFIG_WIFI_CONTROL_FUNC
16else
17DHDCFLAGS += -DCUSTOM_OOB_GPIO_NUM=2
18endif
19
20# Use HW_OOB as default. HW_OOB is level-trigger
21ifeq ($(CONFIG_BCMDHD_HW_OOB),y)
22DHDCFLAGS += -DHW_OOB -DOOB_INTR_ONLY
23else
24DHDCFLAGS += -DSDIO_ISR_THREAD
25endif
26DHDOFILES = aiutils.o bcmsdh_sdmmc_linux.o dhd_linux.o siutils.o bcmutils.o   \
27	dhd_linux_sched.o bcmwifi.o dhd_sdio.o bcmevent.o dhd_bta.o hndpmu.o  \
28	bcmsdh.o dhd_cdc.o bcmsdh_linux.o dhd_common.o linux_osl.o            \
29	bcmsdh_sdmmc.o dhd_custom_gpio.o sbutils.o wldev_common.o wl_android.o dhd_cfg80211.o
30
31obj-$(CONFIG_BCM4330) += bcmdhd.o
32bcmdhd-objs += $(DHDOFILES)
33ifneq ($(CONFIG_BCMDHD_WEXT),)
34bcmdhd-objs += wl_iw.o
35DHDCFLAGS += -DSOFTAP -DWL_WIRELESS_EXT
36endif
37ifneq ($(CONFIG_CFG80211),)
38bcmdhd-objs += wl_cfg80211.o wl_cfgp2p.o wl_linux_mon.o
39DHDCFLAGS += -DWL_CFG80211
40endif
41ifneq ($(CONFIG_DHD_USE_SCHED_SCAN),)
42DHDCFLAGS += -DWL_SCHED_SCAN
43endif
44ifneq ($(CONFIG_DHD_ENABLE_P2P),)
45DHDCFLAGS += -DWL_ENABLE_P2P_IF
46endif
47EXTRA_CFLAGS = $(DHDCFLAGS)
48ifeq ($(CONFIG_BCM4330),m)
49EXTRA_LDFLAGS += --strip-debug
50endif