Merge branch 'move-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/davej...
[linux-2.6/next.git] / drivers / staging / ath6kl / Makefile
blobab68078699f29012db533cfbce8ce38780dfe9b7
1 #------------------------------------------------------------------------------
2 # Copyright (c) 2004-2010 Atheros Communications Inc.
3 # All rights reserved.
5 #
7 # Permission to use, copy, modify, and/or distribute this software for any
8 # purpose with or without fee is hereby granted, provided that the above
9 # copyright notice and this permission notice appear in all copies.
11 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21 # Author(s): ="Atheros"
22 #------------------------------------------------------------------------------
24 ccflags-y += -I$(obj)/include
25 ccflags-y += -I$(obj)/include/common
26 ccflags-y += -I$(obj)/wlan/include
27 ccflags-y += -I$(obj)/os/linux/include
28 ccflags-y += -I$(obj)/os
29 ccflags-y += -I$(obj)/bmi/include
30 ccflags-y += -I$(obj)/include/common/AR6002/hw4.0
32 ifeq ($(CONFIG_AR600x_SD31_XXX),y)
33 ccflags-y += -DAR600x_SD31_XXX
34 endif
36 ifeq ($(CONFIG_AR600x_WB31_XXX),y)
37 ccflags-y += -DAR600x_WB31_XXX
38 endif
40 ifeq ($(CONFIG_AR600x_SD32_XXX),y)
41 ccflags-y += -DAR600x_SD32_XXX
42 endif
44 ifeq ($(CONFIG_AR600x_CUSTOM_XXX),y)
45 ccflags-y += -DAR600x_CUSTOM_XXX
46 endif
48 ifeq ($(CONFIG_ATH6KL_ENABLE_COEXISTENCE),y)
49 ccflags-y += -DENABLE_COEXISTENCE
50 endif
52 ifeq ($(CONFIG_AR600x_DUAL_ANTENNA),y)
53 ccflags-y += -DAR600x_DUAL_ANTENNA
54 endif
56 ifeq ($(CONFIG_AR600x_SINGLE_ANTENNA),y)
57 ccflags-y += -DAR600x_SINGLE_ANTENNA
58 endif
60 ifeq ($(CONFIG_AR600x_BT_QCOM),y)
61 ccflags-y += -DAR600x_BT_QCOM
62 endif
64 ifeq ($(CONFIG_AR600x_BT_CSR),y)
65 ccflags-y += -DAR600x_BT_CSR
66 endif
68 ifeq ($(CONFIG_AR600x_BT_AR3001),y)
69 ccflags-y += -DAR600x_BT_AR3001
70 endif
72 ifeq ($(CONFIG_ATH6KL_HCI_BRIDGE),y)
73 ccflags-y += -DATH_AR6K_ENABLE_GMBOX
74 ccflags-y += -DHCI_TRANSPORT_SDIO
75 ccflags-y += -DSETUPHCI_ENABLED
76 ccflags-y += -DSETUPBTDEV_ENABLED
77 ath6kl-y += htc2/AR6000/ar6k_gmbox.o
78 ath6kl-y += htc2/AR6000/ar6k_gmbox_hciuart.o
79 ath6kl-y += miscdrv/ar3kconfig.o
80 ath6kl-y += miscdrv/ar3kps/ar3kpsconfig.o
81 ath6kl-y += miscdrv/ar3kps/ar3kpsparser.o
82 endif
84 ifeq ($(CONFIG_ATH6KL_CONFIG_GPIO_BT_RESET),y)
85 ccflags-y += -DATH6KL_CONFIG_GPIO_BT_RESET
86 endif
88 ifeq ($(CONFIG_ATH6KL_CFG80211),y)
89 ccflags-y += -DATH6K_CONFIG_CFG80211
90 ath6kl-y += os/linux/cfg80211.o
91 endif
93 ifeq ($(CONFIG_ATH6KL_HTC_RAW_INTERFACE),y)
94 ccflags-y += -DHTC_RAW_INTERFACE
95 endif
97 ifeq ($(CONFIG_ATH6KL_ENABLE_HOST_DEBUG),y)
98 ccflags-y += -DDEBUG
99 ccflags-y += -DATH_DEBUG_MODULE
100 endif
102 ifeq ($(CONFIG_ATH6KL_ENABLE_TARGET_DEBUG_PRINTS),y)
103 ccflags-y += -DENABLEUARTPRINT_SET
104 endif
106 ifeq ($(CONFIG_ATH6KL_DISABLE_TARGET_DBGLOGS),y)
107 ccflags-y += -DATH6KL_DISABLE_TARGET_DBGLOGS
108 endif
110 ifeq ($(CONFIG_ATH6KL_VIRTUAL_SCATTER_GATHER),y)
111 ccflags-y += -DATH6KL_CONFIG_HIF_VIRTUAL_SCATTER
112 endif
114 ifeq ($(CONFIG_ATH6KL_SKIP_ABI_VERSION_CHECK),y)
115 ccflags-y += -DATH6KL_SKIP_ABI_VERSION_CHECK
116 endif
118 ccflags-y += -DLINUX -DKERNEL_2_6
119 ccflags-y += -DTCMD
120 ccflags-y += -DSEND_EVENT_TO_APP
121 ccflags-y += -DUSER_KEYS
122 ccflags-y += -DNO_SYNC_FLUSH
123 ccflags-y += -DHTC_EP_STAT_PROFILING
124 ccflags-y += -DATH_AR6K_11N_SUPPORT
125 ccflags-y += -DWAPI_ENABLE
126 ccflags-y += -DCHECKSUM_OFFLOAD
127 ccflags-y += -DWLAN_HEADERS
128 ccflags-y += -DINIT_MODE_DRV_ENABLED
129 ccflags-y += -DBMIENABLE_SET
131 obj-$(CONFIG_ATH6K_LEGACY) := ath6kl.o
132 ath6kl-y += htc2/AR6000/ar6k.o
133 ath6kl-y += htc2/AR6000/ar6k_events.o
134 ath6kl-y += htc2/htc_send.o
135 ath6kl-y += htc2/htc_recv.o
136 ath6kl-y += htc2/htc_services.o
137 ath6kl-y += htc2/htc.o
138 ath6kl-y += bmi/src/bmi.o
139 ath6kl-y += os/linux/ar6000_drv.o
140 ath6kl-y += os/linux/ar6000_raw_if.o
141 ath6kl-y += os/linux/ar6000_pm.o
142 ath6kl-y += os/linux/netbuf.o
143 ath6kl-y += os/linux/wireless_ext.o
144 ath6kl-y += os/linux/ioctl.o
145 ath6kl-y += os/linux/hci_bridge.o
146 ath6kl-y += os/linux/ar6k_pal.o
147 ath6kl-y += miscdrv/common_drv.o
148 ath6kl-y += miscdrv/credit_dist.o
149 ath6kl-y += wmi/wmi.o
150 ath6kl-y += reorder/rcv_aggr.o
151 ath6kl-y += wlan/src/wlan_node.o
152 ath6kl-y += wlan/src/wlan_recv_beacon.o
153 ath6kl-y += wlan/src/wlan_utils.o
155 # ATH_HIF_TYPE := sdio
156 ccflags-y += -I$(obj)/hif/sdio/linux_sdio/include
157 ccflags-y += -DSDIO
158 ath6kl-y += hif/sdio/linux_sdio/src/hif.o
159 ath6kl-y += hif/sdio/linux_sdio/src/hif_scatter.o