blob: 2fcc409648f66b43adda638a85a0f539a632b84d [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 \
Arend van Sprielca9c7862011-06-29 16:47:34 -070023 -DMAX_HDR_READ=64
Arend van Spriel2ea0f6f2011-01-25 16:53:39 +010024
Arend van Sprielca9c7862011-06-29 16:47:34 -070025ccflags-$(CONFIG_BRCMDBG) += -DDHD_DEBUG -DSHOW_EVENTS
Arend van Spriel2ea0f6f2011-01-25 16:53:39 +010026
27ccflags-y += \
28 -Idrivers/staging/brcm80211/brcmfmac \
Henry Ptasinskifc84a712011-05-09 16:33:06 +020029 -Idrivers/staging/brcm80211/include
Henry Ptasinskicf2b4482010-09-20 22:33:12 -070030
Arend van Sprielf8559b6922011-01-21 10:54:48 +010031DHDOFILES = \
32 wl_cfg80211.o \
Arend van Sprielf8559b6922011-01-21 10:54:48 +010033 dhd_cdc.o \
34 dhd_common.o \
35 dhd_custom_gpio.o \
36 dhd_sdio.o \
37 dhd_linux.o \
Arend van Sprielf8559b6922011-01-21 10:54:48 +010038 bcmsdh.o \
39 bcmsdh_linux.o \
40 bcmsdh_sdmmc.o \
Henry Ptasinskib33f0e22011-05-10 22:25:29 +020041 bcmsdh_sdmmc_linux.o
Henry Ptasinskicf2b4482010-09-20 22:33:12 -070042
Arend van Spriel0c250c02011-05-13 11:59:30 +020043obj-$(CONFIG_BRCMFMAC) += brcmfmac.o
Henry Ptasinskicf2b4482010-09-20 22:33:12 -070044brcmfmac-objs += $(DHDOFILES)