diff options
author | Luis R. Rodriguez | 2008-09-02 21:27:56 -0500 |
---|---|---|
committer | Luis R. Rodriguez | 2008-09-02 21:27:56 -0500 |
commit | d199a75a1cbdb2ff1678cdff01cd976b5552d73e (patch) | |
tree | 58823d344c28a5f99caf925a4bf3b7585cde099d /config.mk | |
download | compat-wireless-d199a75a1cbdb2ff1678cdff01cd976b5552d73e.tar.gz compat-wireless-d199a75a1cbdb2ff1678cdff01cd976b5552d73e.tar.xz compat-wireless-d199a75a1cbdb2ff1678cdff01cd976b5552d73e.zip |
Start of new compat-wireless git tree for kernels >= 2.6.27
For older kernels please see compat-wireless-2.6-old.git.
We split because of the new TX Multiqueue changes introduced which
were difficult to backport.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Diffstat (limited to 'config.mk')
-rw-r--r-- | config.mk | 241 |
1 files changed, 241 insertions, 0 deletions
diff --git a/config.mk b/config.mk new file mode 100644 index 0000000..b1859b3 --- /dev/null +++ b/config.mk | |||
@@ -0,0 +1,241 @@ | |||
1 | export | ||
2 | |||
3 | ## NOTE | ||
4 | ## Make sure to have each variable declaration start | ||
5 | ## in the first column, no whitespace allowed. | ||
6 | |||
7 | ifeq ($(wildcard $(KLIB_BUILD)/.config),) | ||
8 | # These will be ignored by compat autoconf | ||
9 | CONFIG_PCI=y | ||
10 | CONFIG_USB=y | ||
11 | CONFIG_PCMCIA=y | ||
12 | else | ||
13 | include $(KLIB_BUILD)/.config | ||
14 | endif | ||
15 | |||
16 | # Wireless subsystem stuff | ||
17 | CONFIG_MAC80211=m | ||
18 | |||
19 | # We will warn when you don't have MQ support or NET_SCHED enabled. | ||
20 | # | ||
21 | # We could consider just quiting if MQ and NET_SCHED is disabled | ||
22 | # as I suspect all users of this package want 802.11e (WME) and | ||
23 | # 802.11n (HT) support. | ||
24 | ifeq ($(shell test -e $(KLIB_BUILD)/Makefile && echo yes),yes) | ||
25 | KERNEL_SUBLEVEL = $(shell $(MAKE) -C $(KLIB_BUILD) kernelversion | sed -n 's/^2\.6\.\([0-9]\+\).*/\1/p') | ||
26 | |||
27 | ifeq ($(shell test $(KERNEL_SUBLEVEL) -lt 27 && echo yes),yes) | ||
28 | $(error "ERROR: You should use compat-wireless-2.6-old for older kernels, this one is for kenrels >= 2.6.27") | ||
29 | endif | ||
30 | |||
31 | ifneq ($(KERNELRELEASE),) # This prevents a warning | ||
32 | |||
33 | ifeq ($(CONFIG_NETDEVICES_MULTIQUEUE),) # checks MQ first | ||
34 | QOS_REQS_MISSING+=CONFIG_NETDEVICES_MULTIQUEUE | ||
35 | endif | ||
36 | |||
37 | ifeq ($(CONFIG_NET_SCHED),) | ||
38 | QOS_REQS_MISSING+=CONFIG_NET_SCHED | ||
39 | endif | ||
40 | |||
41 | ifeq ($(QOS_REQS_MISSING),) # if our dependencies match for MAC80211_QOS | ||
42 | CONFIG_MAC80211_QOS=y | ||
43 | else # Complain about our missing dependencies | ||
44 | $(warning "WARNING: You are running a kernel >= 2.6.23, you should enable in it $(QOS_REQS_MISSING) for 802.11[ne] support") | ||
45 | endif | ||
46 | |||
47 | endif # build check | ||
48 | endif # kernel Makefile check | ||
49 | |||
50 | CONFIG_MAC80211_RC_DEFAULT=pid | ||
51 | CONFIG_MAC80211_RC_PID=y | ||
52 | |||
53 | # enable mesh networking too | ||
54 | CONFIG_MAC80211_MESH=y | ||
55 | |||
56 | CONFIG_CFG80211=m | ||
57 | CONFIG_NL80211=y | ||
58 | |||
59 | # mac80211 test driver | ||
60 | CONFIG_MAC80211_HWSIM=m | ||
61 | |||
62 | # PCI Drivers | ||
63 | ifneq ($(CONFIG_PCI),) | ||
64 | |||
65 | CONFIG_ATH5K=m | ||
66 | CONFIG_ATH5K_DEBUG=n | ||
67 | CONFIG_ATH9K=m | ||
68 | CONFIG_ATH9K=m | ||
69 | |||
70 | # Required for older kernels which still use this flag. | ||
71 | CONFIG_IWLWIFI=m | ||
72 | |||
73 | CONFIG_IWLCORE=m | ||
74 | CONFIG_IWL3945=m | ||
75 | CONFIG_IWL4965=m | ||
76 | CONFIG_IWL4965_HT=y | ||
77 | CONFIG_B43=m | ||
78 | # B43 uses PCMCIA only for Compact Flash. The Cardbus cards uses PCI | ||
79 | # Example, bcm4318: | ||
80 | # http://www.multicap.biz/wireless-lan/indoor-wlan-hardware/sdc-cf10g-80211g-compact-flash-module | ||
81 | CONFIG_B43_PCMCIA=y | ||
82 | CONFIG_B43_DMA=y | ||
83 | CONFIG_B43_PIO=y | ||
84 | # B43_PIO selects SSB_BLOCKIO | ||
85 | CONFIG_SSB_BLOCKIO=y | ||
86 | CONFIG_B43_DMA_AND_PIO_MODE=y | ||
87 | CONFIG_B43_PCI_AUTOSELECT=y | ||
88 | CONFIG_B43_PCICORE_AUTOSELECT=y | ||
89 | #CONFIG_B43_RFKILL=n | ||
90 | CONFIG_B43_LEDS=y | ||
91 | # CONFIG_B43_DEBUG is not set | ||
92 | |||
93 | CONFIG_B43LEGACY=m | ||
94 | CONFIG_B43LEGACY_PCI_AUTOSELECT=y | ||
95 | CONFIG_B43LEGACY_PCICORE_AUTOSELECT=y | ||
96 | CONFIG_B43LEGACY_DMA=y | ||
97 | CONFIG_B43LEGACY_PIO=y | ||
98 | CONFIG_B43LEGACY_DMA_AND_PIO_MODE=y | ||
99 | |||
100 | # The Intel ipws | ||
101 | CONFIG_IPW2100=m | ||
102 | CONFIG_IPW2100_MONITOR=y | ||
103 | CONFIG_IPW2200=m | ||
104 | CONFIG_IPW2200_MONITOR=y | ||
105 | CONFIG_IPW2200_RADIOTAP=y | ||
106 | CONFIG_IPW2200_PROMISCUOUS=y | ||
107 | # The above enables use a second interface prefixed 'rtap'. | ||
108 | # Example usage: | ||
109 | # | ||
110 | # % modprobe ipw2200 rtap_iface=1 | ||
111 | # % ifconfig rtap0 up | ||
112 | # % tethereal -i rtap0 | ||
113 | # | ||
114 | # If you do not specify 'rtap_iface=1' as a module parameter then | ||
115 | # the rtap interface will not be created and you will need to turn | ||
116 | # it on via sysfs: | ||
117 | # | ||
118 | # % echo 1 > /sys/bus/pci/drivers/ipw2200/*/rtap_iface | ||
119 | CONFIG_IPW2200_QOS=y | ||
120 | |||
121 | NEED_IEEE80211=y | ||
122 | |||
123 | CONFIG_P54_PCI=m | ||
124 | |||
125 | CONFIG_SSB_PCIHOST_POSSIBLE=y | ||
126 | CONFIG_SSB_PCIHOST=y | ||
127 | CONFIG_SSB_DRIVER_PCICORE_POSSIBLE=y | ||
128 | CONFIG_SSB_DRIVER_PCICORE=y | ||
129 | CONFIG_SSB_B43_PCI_BRIDGE=y | ||
130 | |||
131 | CONFIG_RTL8180=m | ||
132 | CONFIG_ADM8211=m | ||
133 | |||
134 | CONFIG_RT2X00_LIB_PCI=m | ||
135 | CONFIG_RT2400PCI=m | ||
136 | CONFIG_RT2500PCI=m | ||
137 | NEED_RT2X00=y | ||
138 | |||
139 | # Two rt2x00 drivers require firmware: rt61pci and rt73usb. They depend on | ||
140 | # CRC to check the firmware. We check here first for the PCI | ||
141 | # driver as we're in the PCI section. | ||
142 | ifneq ($(CONFIG_CRC_ITU_T),) | ||
143 | CONFIG_RT61PCI=m | ||
144 | NEED_RT2X00_FIRMWARE=y | ||
145 | endif | ||
146 | |||
147 | endif | ||
148 | ## end of PCI | ||
149 | |||
150 | # This is required for some cards | ||
151 | CONFIG_EEPROM_93CX6=m | ||
152 | |||
153 | # USB Drivers | ||
154 | ifneq ($(CONFIG_USB),) | ||
155 | CONFIG_ZD1211RW=m | ||
156 | |||
157 | # support for USB Wireless devices using Atmel at76c503, | ||
158 | # at76c505 or at76c505a chips. | ||
159 | CONFIG_USB_ATMEL=m | ||
160 | |||
161 | # Sorry, rndis_wlan uses cancel_work_sync which is new and can't be done in compat... | ||
162 | |||
163 | # Wireless RNDIS USB support (RTL8185 802.11g) A-Link WL54PC | ||
164 | # All of these devices are based on Broadcom 4320 chip which | ||
165 | # is only wireless RNDIS chip known to date. | ||
166 | # Note: this depends on CONFIG_USB_NET_RNDIS_HOST and CONFIG_USB_NET_CDCETHER | ||
167 | # it also requires new RNDIS_HOST and CDC_ETHER modules which we add | ||
168 | CONFIG_USB_NET_RNDIS_HOST=m | ||
169 | CONFIG_USB_NET_RNDIS_WLAN=m | ||
170 | CONFIG_USB_NET_CDCETHER=m | ||
171 | |||
172 | CONFIG_P54_USB=m | ||
173 | CONFIG_RTL8187=m | ||
174 | |||
175 | # RT2500USB does not require firmware | ||
176 | CONFIG_RT2500USB=m | ||
177 | CONFIG_RT2X00_LIB_USB=m | ||
178 | NEED_RT2X00=y | ||
179 | # RT73USB requires firmware | ||
180 | ifneq ($(CONFIG_CRC_ITU_T),) | ||
181 | CONFIG_RT73USB=m | ||
182 | NEED_RT2X00_FIRMWARE=y | ||
183 | endif | ||
184 | |||
185 | endif # end of USB driver list | ||
186 | |||
187 | # Common rt2x00 requirements | ||
188 | ifeq ($(NEED_RT2X00),y) | ||
189 | CONFIG_RT2X00=m | ||
190 | CONFIG_RT2X00_LIB=m | ||
191 | # CONFIG_RT2X00_LIB_DEBUGFS is not set | ||
192 | # CONFIG_RT2X00_DEBUG is not set | ||
193 | endif | ||
194 | |||
195 | ifeq ($(NEED_RT2X00_FIRMWARE),y) | ||
196 | CONFIG_RT2X00_LIB_FIRMWARE=y | ||
197 | endif | ||
198 | |||
199 | # p54 | ||
200 | CONFIG_P54_COMMON=m | ||
201 | |||
202 | # Sonics Silicon Backplane | ||
203 | CONFIG_SSB_POSSIBLE=y | ||
204 | CONFIG_SSB=m | ||
205 | CONFIG_SSB_SPROM=y | ||
206 | |||
207 | ifneq ($(CONFIG_PCMCIA),) | ||
208 | CONFIG_SSB_PCMCIAHOST=y | ||
209 | endif | ||
210 | |||
211 | # These two are for mips | ||
212 | CONFIG_SSB_DRIVER_MIPS=n | ||
213 | CONFIG_SSB_PCICORE_HOSTMODE=n | ||
214 | # CONFIG_SSB_DEBUG is not set | ||
215 | # CONFIG_SSB_DRIVER_EXTIF=y | ||
216 | |||
217 | ifneq ($(CONFIG_USB),) | ||
218 | CONFIG_LIBERTAS_USB=m | ||
219 | NEED_LIBERTAS=y | ||
220 | endif | ||
221 | ifneq ($(CONFIG_PCMCIA),) | ||
222 | CONFIG_LIBERTAS_CS=m | ||
223 | NEED_LIBERTAS=y | ||
224 | endif | ||
225 | ifeq ($(NEED_LIBERTAS),y) | ||
226 | CONFIG_LIBERTAS=m | ||
227 | # Libertas uses the old stack but not fully, it will soon | ||
228 | # be cleaned. | ||
229 | NEED_IEEE80211=y | ||
230 | endif | ||
231 | |||
232 | ifeq ($(NEED_IEEE80211),y) | ||
233 | # Old ieee80211 "stack" | ||
234 | # Note: old softmac is scheduled for removal so we | ||
235 | # ignore that stuff | ||
236 | CONFIG_IEEE80211=m | ||
237 | CONFIG_IEEE80211_CRYPT_CCMP=m | ||
238 | CONFIG_IEEE80211_CRYPT_TKIP=m | ||
239 | CONFIG_IEEE80211_CRYPT_WEP=m | ||
240 | CONFIG_IEEE80211_SOFTMAC=n | ||
241 | endif | ||