Advertisement
Guest User

config

a guest
Oct 27th, 2009
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.59 KB | None | 0 0
  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. ifeq ($(CONFIG_MAC80211),y)
  17. $(error "ERROR: you have MAC80211 compiled into the kernel, CONFIG_MAC80211=y, as such you cannot replace its mac80211 driver. You need this set to CONFIG_MAC80211=m. If you are using Fedora upgrade your kernel as later version should this set as modular. For further information on Fedora see https://bugzilla.redhat.com/show_bug.cgi?id=470143. If you are using your own kernel recompile it and make mac80211 modular")
  18. endif
  19.  
  20.  
  21. # We will warn when you don't have MQ support or NET_SCHED enabled.
  22. #
  23. # We could consider just quiting if MQ and NET_SCHED is disabled
  24. # as I suspect all users of this package want 802.11e (WME) and
  25. # 802.11n (HT) support.
  26. ifneq ($(wildcard $(KLIB_BUILD)/Makefile),)
  27. COMPAT_LATEST_VERSION = 32
  28. KERNEL_SUBLEVEL := $(shell $(MAKE) -C $(KLIB_BUILD) kernelversion | sed -n 's/^2\.6\.\([0-9]\+\).*/\1/p')
  29. COMPAT_VERSIONS := $(shell I=$(COMPAT_LATEST_VERSION); while [ "$$I" -gt $(KERNEL_SUBLEVEL) ]; do echo $$I; I=$$(($$I - 1)); done)
  30. $(foreach ver,$(COMPAT_VERSIONS),$(eval CONFIG_COMPAT_WIRELESS_$(ver)=y))
  31.  
  32. ifdef CONFIG_COMPAT_WIRELESS_25
  33. $(error "ERROR: You should use compat-wireless-2.6-old for older kernels, this one is for kernels >= 2.6.25")
  34. endif
  35.  
  36. ifeq ($(CONFIG_CFG80211),y)
  37. $(error "ERROR: your kernel has CONFIG_CFG80211=y, you should have it CONFIG_CFG80211=m if you want to use this thing.")
  38. endif
  39.  
  40.  
  41. # 2.6.27 has FTRACE_DYNAMIC borked, so we will complain if
  42. # you have it enabled, otherwise you will very likely run into
  43. # a kernel panic.
  44. ifeq ($(KERNEL_SUBLEVEL),27)
  45. ifeq ($(CONFIG_DYNAMIC_FTRACE),y)
  46. $(error "ERROR: Your 2.6.27 kernel has CONFIG_DYNAMIC_FTRACE, please upgrade your distribution kernel as newer ones should not have this enabled (and if so report a bug) or remove this warning if you know what you are doing")
  47. endif
  48. endif
  49.  
  50. # This is because with CONFIG_MAC80211 include/linux/skbuff.h will
  51. # enable on 2.6.27 a new attribute:
  52. #
  53. # skb->do_not_encrypt
  54. #
  55. # and on 2.6.28 another new attribute:
  56. #
  57. # skb->requeue
  58. #
  59. ifeq ($(shell test $(KERNEL_SUBLEVEL) -ge 27 && echo yes),yes)
  60. ifeq ($(CONFIG_MAC80211),)
  61. $(error "ERROR: Your >=2.6.27 kernel has CONFIG_MAC80211 disabled, you should have it CONFIG_MAC80211=m if you want to use this thing.")
  62. endif
  63. endif
  64.  
  65. ifneq ($(KERNELRELEASE),) # This prevents a warning
  66.  
  67. ifeq ($(CONFIG_NET_SCHED),)
  68. QOS_REQS_MISSING+=CONFIG_NET_SCHED
  69. endif
  70.  
  71. ifeq ($(QOS_REQS_MISSING),) # if our dependencies match for MAC80211_QOS
  72. CONFIG_MAC80211_QOS=y
  73. else # Complain about our missing dependencies
  74. $(warning "WARNING: You are running a kernel >= 2.6.23, you should enable in it $(QOS_REQS_MISSING) for 802.11[ne] support")
  75. endif
  76.  
  77. endif # build check
  78. endif # kernel Makefile check
  79.  
  80. # Wireless subsystem stuff
  81. CONFIG_MAC80211=m
  82.  
  83. # CONFIG_MAC80211_DEBUGFS=y
  84. # CONFIG_MAC80211_DEBUG_MENU=y
  85. # CONFIG_MAC80211_DEBUG_PACKET_ALIGNMENT=y
  86. # CONFIG_MAC80211_NOINLINE=y
  87. # CONFIG_MAC80211_VERBOSE_DEBUG=y
  88. # CONFIG_MAC80211_HT_DEBUG=y
  89. # CONFIG_MAC80211_TKIP_DEBUG=y
  90. # CONFIG_MAC80211_IBSS_DEBUG=y
  91. # CONFIG_MAC80211_VERBOSE_PS_DEBUG=y
  92. # CONFIG_MAC80211_VERBOSE_MPL_DEBUG=y
  93. # CONFIG_MAC80211_DEBUG_COUNTERS=y
  94.  
  95. # choose between pid and minstrel as default rate control algorithm
  96. CONFIG_MAC80211_RC_DEFAULT=minstrel
  97. CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y
  98. # CONFIG_MAC80211_RC_DEFAULT_PID=y
  99. # This is the one used by our compat-wireless net/mac80211/rate.c
  100. # in case you have and old kernel which is overriding this to pid.
  101. CONFIG_COMPAT_MAC80211_RC_DEFAULT=minstrel
  102. CONFIG_MAC80211_RC_PID=y
  103. CONFIG_MAC80211_RC_MINSTREL=y
  104. CONFIG_MAC80211_LEDS=y
  105.  
  106. # enable mesh networking too
  107. CONFIG_MAC80211_MESH=y
  108.  
  109. CONFIG_CFG80211=m
  110. CONFIG_CFG80211_DEFAULT_PS=y
  111. CONFIG_CFG80211_DEFAULT_PS_VALUE=1
  112. # CONFIG_CFG80211_REG_DEBUG=y
  113. # See below for wext stuff
  114.  
  115. CONFIG_LIB80211=m
  116. CONFIG_LIB80211_CRYPT_WEP=m
  117. CONFIG_LIB80211_CRYPT_CCMP=m
  118. CONFIG_LIB80211_CRYPT_TKIP=m
  119. # CONFIG_LIB80211_DEBUG=y
  120.  
  121. CONFIG_WIRELESS_OLD_REGULATORY=n
  122.  
  123. ifdef CONFIG_COMPAT_WIRELESS_32
  124. # Old kernels stil do depend on CONFIG_WIRELESS_EXT
  125. # as we add the wireless handler back to the struct
  126. # netdevice
  127. ifneq ($(CONFIG_WIRELESS_EXT),)
  128. CONFIG_CFG80211_WEXT=y
  129. endif
  130. else
  131. # 2.6.33 and above do not need CONFIG_WIRELESS_EXT, but the
  132. # reality is we should select CONFIG_WIRELESS_EXT only if a
  133. # driver claims for it (one of the old non-cfg80211 drivers).
  134. # Then users could either have this on or off but we leave it
  135. # on in case users on >= 2.6.33 still have iwconfig and other
  136. # old deprecated userspace applications.
  137. CONFIG_CFG80211_WEXT=y
  138. endif # CONFIG_COMPAT_WIRELESS_32
  139.  
  140. # mac80211 test driver
  141. CONFIG_MAC80211_HWSIM=m
  142.  
  143. # PCI Drivers
  144. ifneq ($(CONFIG_PCI),)
  145.  
  146. CONFIG_ATH5K=m
  147. # CONFIG_ATH5K_DEBUG=y
  148. CONFIG_ATH5K_RFKILL=y
  149. CONFIG_ATH9K_HW=m
  150. CONFIG_ATH9K=m
  151. CONFIG_ATH9K_DEBUG=y
  152.  
  153.  
  154. CONFIG_IWLWIFI=m
  155. CONFIG_IWLWIFI_LEDS=y
  156. CONFIG_IWLWIFI_RFKILL=y
  157. CONFIG_IWLWIFI_SPECTRUM_MEASUREMENT=y
  158. # CONFIG_IWLWIFI_DEBUG=y
  159. # CONFIG_IWLWIFI_DEBUGFS=y
  160. CONFIG_IWLAGN=m
  161. CONFIG_COMPAT_IWL4965=y
  162. CONFIG_IWL5000=y
  163. CONFIG_IWL3945=m
  164. CONFIG_IWL3945_SPECTRUM_MEASUREMENT=y
  165.  
  166.  
  167. CONFIG_B43=m
  168. CONFIG_B43_HWRNG=y
  169. CONFIG_B43_PCI_AUTOSELECT=y
  170. CONFIG_B43_PCICORE_AUTOSELECT=y
  171. ifneq ($(CONFIG_PCMCIA),)
  172. CONFIG_B43_PCMCIA=y
  173. endif
  174. CONFIG_B43_PIO=y
  175. CONFIG_B43_LEDS=y
  176. CONFIG_B43_RFKILL=y
  177. CONFIG_B43_PHY_LP=y
  178. # CONFIG_B43_DEBUG=y
  179. # CONFIG_B43_FORCE_PIO=y
  180.  
  181. CONFIG_B43LEGACY=m
  182. CONFIG_B43LEGACY_HWRNG=y
  183. CONFIG_B43LEGACY_PCI_AUTOSELECT=y
  184. CONFIG_B43LEGACY_PCICORE_AUTOSELECT=y
  185. CONFIG_B43LEGACY_LEDS=y
  186. CONFIG_B43LEGACY_RFKILL=y
  187. # CONFIG_B43LEGACY_DEBUG=y
  188. CONFIG_B43LEGACY_DMA=y
  189. CONFIG_B43LEGACY_PIO=y
  190. CONFIG_B43LEGACY_DMA_AND_PIO_MODE=y
  191. # CONFIG_B43LEGACY_DMA_MODE=y
  192. # CONFIG_B43LEGACY_PIO_MODE=y
  193.  
  194. # The Intel ipws
  195. CONFIG_LIBIPW=m
  196. # CONFIG_LIBIPW_DEBUG=y
  197.  
  198.  
  199. CONFIG_IPW2100=m
  200. CONFIG_IPW2100_MONITOR=y
  201. # CONFIG_IPW2100_DEBUG=y
  202. CONFIG_IPW2200=m
  203. CONFIG_IPW2200_MONITOR=y
  204. CONFIG_IPW2200_RADIOTAP=y
  205. CONFIG_IPW2200_PROMISCUOUS=y
  206. CONFIG_IPW2200_QOS=y
  207. # CONFIG_IPW2200_DEBUG=y
  208. # The above enables use a second interface prefixed 'rtap'.
  209. # Example usage:
  210. #
  211. # % modprobe ipw2200 rtap_iface=1
  212. # % ifconfig rtap0 up
  213. # % tethereal -i rtap0
  214. #
  215. # If you do not specify 'rtap_iface=1' as a module parameter then
  216. # the rtap interface will not be created and you will need to turn
  217. # it on via sysfs:
  218. #
  219. # % echo 1 > /sys/bus/pci/drivers/ipw2200/*/rtap_iface
  220.  
  221. CONFIG_SSB_BLOCKIO=y
  222. CONFIG_SSB_PCIHOST_POSSIBLE=y
  223. CONFIG_SSB_PCIHOST=y
  224. CONFIG_SSB_B43_PCI_BRIDGE=y
  225. ifneq ($(CONFIG_PCMCIA),)
  226. CONFIG_SSB_PCMCIAHOST_POSSIBLE=y
  227. CONFIG_SSB_PCMCIAHOST=y
  228. endif
  229. # CONFIG_SSB_DEBUG=y
  230. CONFIG_SSB_DRIVER_PCICORE_POSSIBLE=y
  231. CONFIG_SSB_DRIVER_PCICORE=y
  232.  
  233. CONFIG_P54_PCI=m
  234.  
  235. CONFIG_B44=m
  236. CONFIG_B44_PCI_AUTOSELECT=y
  237. CONFIG_B44_PCICORE_AUTOSELECT=y
  238. CONFIG_B44_PCI=y
  239.  
  240. CONFIG_RTL8180=m
  241.  
  242. CONFIG_ADM8211=m
  243. ifneq ($(CONFIG_PCMCIA),)
  244. CONFIG_PCMCIA_ATMEL=m
  245. endif
  246.  
  247. CONFIG_RT2X00_LIB_PCI=m
  248. CONFIG_RT2400PCI=m
  249. CONFIG_RT2500PCI=m
  250. CONFIG_RT2800PCI=m
  251. NEED_RT2X00=y
  252.  
  253. # Two rt2x00 drivers require firmware: rt61pci and rt73usb. They depend on
  254. # CRC to check the firmware. We check here first for the PCI
  255. # driver as we're in the PCI section.
  256. ifneq ($(CONFIG_CRC_ITU_T),)
  257. CONFIG_RT61PCI=m
  258. NEED_RT2X00_FIRMWARE=y
  259. endif
  260.  
  261. CONFIG_ATMEL=m
  262. CONFIG_PCI_ATMEL=m
  263.  
  264. CONFIG_MWL8K=m
  265.  
  266. endif
  267. ## end of PCI
  268.  
  269. ifneq ($(CONFIG_PCMCIA),)
  270.  
  271. ifdef CONFIG_COMPAT_WIRELESS_27
  272. CONFIG_LIBERTAS=n
  273. CONFIG_LIBERTAS_CS=n
  274. else
  275. CONFIG_LIBERTAS_CS=m
  276. NEED_LIBERTAS=y
  277. endif
  278.  
  279. endif
  280. ## end of PCMCIA
  281.  
  282. # This is required for some cards
  283. CONFIG_EEPROM_93CX6=m
  284.  
  285. # USB Drivers
  286. ifneq ($(CONFIG_USB),)
  287. CONFIG_ZD1211RW=m
  288. # CONFIG_ZD1211RW_DEBUG=y
  289.  
  290. # Sorry, rndis_wlan uses cancel_work_sync which is new and can't be done in compat...
  291.  
  292. # Wireless RNDIS USB support (RTL8185 802.11g) A-Link WL54PC
  293. # All of these devices are based on Broadcom 4320 chip which
  294. # is only wireless RNDIS chip known to date.
  295. # Note: this depends on CONFIG_USB_NET_RNDIS_HOST and CONFIG_USB_NET_CDCETHER
  296. # it also requires new RNDIS_HOST and CDC_ETHER modules which we add
  297. CONFIG_USB_NET_RNDIS_HOST=m
  298. CONFIG_USB_NET_RNDIS_WLAN=m
  299. CONFIG_USB_NET_CDCETHER=m
  300.  
  301.  
  302. CONFIG_P54_USB=m
  303. CONFIG_RTL8187=m
  304.  
  305. CONFIG_AT76C50X_USB=m
  306.  
  307. ifndef CONFIG_COMPAT_WIRELESS_28
  308. CONFIG_AR9170_USB=m
  309. CONFIG_AR9170_LEDS=y
  310. endif
  311.  
  312. # RT2500USB does not require firmware
  313. CONFIG_RT2500USB=m
  314. CONFIG_RT2800USB=m
  315. CONFIG_RT2X00_LIB_USB=m
  316. NEED_RT2X00=y
  317. # RT73USB requires firmware
  318. ifneq ($(CONFIG_CRC_ITU_T),)
  319. CONFIG_RT73USB=m
  320. NEED_RT2X00_FIRMWARE=y
  321. endif
  322.  
  323. ifdef CONFIG_COMPAT_WIRELESS_27
  324. CONFIG_LIBERTAS_THINFIRM_USB=n
  325. CONFIG_LIBERTAS_USB=n
  326. NEED_LIBERTAS=n
  327. else
  328. CONFIG_LIBERTAS_THINFIRM_USB=m
  329. CONFIG_LIBERTAS_USB=m
  330. NEED_LIBERTAS=y
  331. endif
  332.  
  333. endif # end of USB driver list
  334.  
  335. ifneq ($(CONFIG_SPI_MASTER),)
  336.  
  337. CONFIG_WL1251=m
  338. CONFIG_P54_SPI=m
  339.  
  340. ifdef CONFIG_COMPAT_WIRELESS_27
  341. CONFIG_LIBERTAS_SPI=n
  342. NEED_LIBERTAS=n
  343. else
  344. CONFIG_LIBERTAS_SPI=m
  345. NEED_LIBERTAS=y
  346. endif
  347.  
  348. endif # end of SPI driver list
  349.  
  350. ifneq ($(CONFIG_MMC),)
  351.  
  352. ifdef CONFIG_COMPAT_WIRELESS_27
  353. CONFIG_LIBERTAS_SDIO=n
  354. NEED_LIBERTAS=n
  355. else
  356. CONFIG_LIBERTAS_SDIO=m
  357. NEED_LIBERTAS=y
  358. endif
  359.  
  360. # Activate iwmc3200wifi support only on kernel >= 2.6.29.
  361. # iwmc3200wifi uses new netdev_ops api no supported by old kernel.
  362. ifndef CONFIG_COMPAT_WIRELESS_29
  363. CONFIG_IWM=m
  364. # CONFIG_IWM_DEBUG=y
  365. endif
  366.  
  367. endif # end of SDIO driver list
  368.  
  369. # Common rt2x00 requirements
  370. ifeq ($(NEED_RT2X00),y)
  371. CONFIG_RT2X00=m
  372. CONFIG_RT2X00_LIB=m
  373. CONFIG_RT2X00_LIB_HT=y
  374. CONFIG_RT2X00_LIB_FIRMWARE=y
  375. CONFIG_RT2X00_LIB_CRYPTO=y
  376. CONFIG_RT2X00_LIB_RFKILL=y
  377. CONFIG_RT2X00_LIB_LEDS=y
  378. # CONFIG_RT2X00_LIB_DEBUGFS=y
  379. # CONFIG_RT2X00_DEBUG=y
  380. endif
  381.  
  382. ifeq ($(NEED_RT2X00_FIRMWARE),y)
  383. CONFIG_RT2X00_LIB_FIRMWARE=y
  384. endif
  385.  
  386. # p54
  387. CONFIG_P54_COMMON=m
  388. CONFIG_P54_LEDS=y
  389.  
  390. # Atheros
  391. CONFIG_ATH_COMMON=m
  392. CONFIG_ATH_DEBUG=y
  393.  
  394. CONFIG_WL12XX=y
  395. CONFIG_WL1251=m
  396. CONFIG_WL1251_SPI=m
  397. CONFIG_WL1251_SDIO=m
  398. CONFIG_WL1271=m
  399.  
  400. # Sonics Silicon Backplane
  401. CONFIG_SSB_POSSIBLE=y
  402. CONFIG_SSB=m
  403. CONFIG_SSB_SPROM=y
  404. # CONFIG_SSB_DEBUG=y
  405.  
  406. ifdef CONFIG_COMPAT_WIRELESS_27
  407. CONFIG_LIBERTAS=n
  408. else
  409. ifeq ($(NEED_LIBERTAS),y)
  410. CONFIG_LIBERTAS_THINFIRM=m
  411. CONFIG_LIBERTAS=m
  412. # CONFIG_LIBERTAS_DEBUG=y
  413. endif
  414. endif
  415.  
  416. # We need the backported rfkill module on kernel < 2.6.31.
  417. # In more recent kernel versions use the in kernel rfkill module.
  418. ifdef CONFIG_COMPAT_WIRELESS_31
  419. CONFIG_RFKILL_BACKPORT=m
  420. CONFIG_RFKILL_BACKPORT_LEDS=y
  421. CONFIG_RFKILL_BACKPORT_INPUT=y
  422. endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement