blob: 7441649d16a2652435f381bca5d7e08f70acc77a [file] [log] [blame]
Henry Ptasinskicf2b4482010-09-20 22:33:12 -07001#
2# Makefile fragment for Broadcom 802.11n Networking Device Driver
3#
4# Copyright (c) 2010 Broadcom Corporation
5#
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.
9#
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
Greg Kroah-Hartman449c6742010-09-23 16:28:53 -070018ccflags-y := \
Henry Ptasinski07610432010-09-29 14:50:49 -070019 -DBCMSDIO \
Greg Kroah-Hartman449c6742010-09-23 16:28:53 -070020 -DBRCM_FULLMAC \
Arend van Spriel8d825a82011-06-29 16:47:25 -070021 -DBRCMF_FIRSTREAD=64 \
Arend van Spriel8d825a82011-06-29 16:47:25 -070022 -DBRCMF_SDALIGN=64 \
Henry Ptasinski07610432010-09-29 14:50:49 -070023 -DMAX_HDR_READ=64 \
Arend van Spriel68d0a242011-06-29 16:47:33 -070024 -DSHOW_EVENTS
Arend van Spriel2ea0f6f2011-01-25 16:53:39 +010025
26ccflags-$(CONFIG_BRCMDBG) += -DDHD_DEBUG
27
28ccflags-y += \
29 -Idrivers/staging/brcm80211/brcmfmac \
Henry Ptasinskifc84a712011-05-09 16:33:06 +020030 -Idrivers/staging/brcm80211/include
Henry Ptasinskicf2b4482010-09-20 22:33:12 -070031
Arend van Sprielf8559b6922011-01-21 10:54:48 +010032DHDOFILES = \
33 wl_cfg80211.o \
Arend van Sprielf8559b6922011-01-21 10:54:48 +010034 dhd_cdc.o \
35 dhd_common.o \
36 dhd_custom_gpio.o \
37 dhd_sdio.o \
38 dhd_linux.o \
Arend van Sprielf8559b6922011-01-21 10:54:48 +010039 bcmsdh.o \
40 bcmsdh_linux.o \
41 bcmsdh_sdmmc.o \
Henry Ptasinskib33f0e22011-05-10 22:25:29 +020042 bcmsdh_sdmmc_linux.o
Henry Ptasinskicf2b4482010-09-20 22:33:12 -070043
Arend van Spriel0c250c02011-05-13 11:59:30 +020044obj-$(CONFIG_BRCMFMAC) += brcmfmac.o
Henry Ptasinskicf2b4482010-09-20 22:33:12 -070045brcmfmac-objs += $(DHDOFILES)