Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 1 | # |
| 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-Hartman | 449c674 | 2010-09-23 16:28:53 -0700 | [diff] [blame] | 18 | ccflags-y := \ |
| 19 | -DBCMDBG \ |
| 20 | -DWLC_HIGH \ |
| 21 | -DSTA \ |
| 22 | -DWME \ |
| 23 | -DWL11N \ |
| 24 | -DDBAND \ |
| 25 | -DBCMDMA32 \ |
| 26 | -DBCMNVRAMR \ |
| 27 | -Idrivers/staging/brcm80211/sys \ |
| 28 | -Idrivers/staging/brcm80211/phy \ |
| 29 | -Idrivers/staging/brcm80211/util \ |
Greg Kroah-Hartman | efd89a2 | 2010-09-23 16:36:06 -0700 | [diff] [blame] | 30 | -Idrivers/staging/brcm80211/include |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 31 | |
| 32 | PCI_CFLAGS := -DWLC_LOW |
| 33 | |
| 34 | BRCM80211_OFILES := \ |
| 35 | util/siutils.o \ |
| 36 | util/aiutils.o \ |
| 37 | util/bcmotp.o \ |
| 38 | util/bcmsrom.o \ |
| 39 | util/bcmutils.o \ |
| 40 | util/bcmwifi.o \ |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 41 | util/hndpmu.o \ |
| 42 | util/linux_osl.o \ |
| 43 | sys/wlc_alloc.o \ |
| 44 | sys/wlc_antsel.o \ |
| 45 | sys/wlc_channel.o \ |
| 46 | sys/wlc_event.o \ |
| 47 | sys/wlc_mac80211.o \ |
| 48 | sys/wlc_rate.o \ |
| 49 | sys/wlc_stf.o \ |
| 50 | sys/wl_mac80211.o \ |
| 51 | sys/wlc_ampdu.o |
| 52 | |
| 53 | PCIFILES := \ |
| 54 | phy/wlc_phy_cmn.o \ |
| 55 | phy/wlc_phy_lcn.o \ |
| 56 | phy/wlc_phy_n.o \ |
| 57 | phy/wlc_phytbl_lcn.o \ |
| 58 | phy/wlc_phytbl_n.o \ |
| 59 | sys/wlc_bmac.o \ |
| 60 | sys/wlc_phy_shim.o \ |
| 61 | sys/wl_ucode_loader.o \ |
| 62 | util/hnddma.o \ |
| 63 | util/nicpci.o \ |
| 64 | util/nvram/nvram_ro.o \ |
| 65 | util/qmath.o |
| 66 | |
| 67 | MODULEPFX := brcm80211 |
| 68 | |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 69 | # PCI driver |
| 70 | ifeq ($(CONFIG_BRCM80211_PCI),y) |
Henry Ptasinski | 76a3cca | 2010-09-26 13:18:38 -0700 | [diff] [blame] | 71 | obj-m += $(MODULEPFX).o |
Greg Kroah-Hartman | 449c674 | 2010-09-23 16:28:53 -0700 | [diff] [blame] | 72 | ccflags-y += $(PCI_CFLAGS) |
Henry Ptasinski | a9533e7 | 2010-09-08 21:04:42 -0700 | [diff] [blame] | 73 | $(MODULEPFX)-objs = $(BRCM80211_OFILES) $(PCIFILES) |
| 74 | endif |
| 75 | |
Henry Ptasinski | cf2b448 | 2010-09-20 22:33:12 -0700 | [diff] [blame] | 76 | obj-$(CONFIG_BRCMFMAC) += brcmfmac/ |