From: Luis R. Rodriguez Date: Fri, 4 Jun 2010 15:03:44 +0000 (-0700) Subject: compat-wireless: add defconfigs directory X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=44398f9b5ba8403f49fd6dd7433545653824d667;p=openwrt%2Fstaging%2Fblogic.git compat-wireless: add defconfigs directory This lets you stuff custom config.mk files for debugging purposes or other reasons. Signed-off-by: Luis R. Rodriguez --- diff --git a/config.mk b/config.mk index 176c0afd4eaf..801b714cc0d6 100644 --- a/config.mk +++ b/config.mk @@ -179,7 +179,8 @@ CONFIG_ATH9K=m # CONFIG_ATH9K_COMMON to an area that doesn't depend on PCI # as you could then have ath9k disabled but ath9k_htc enabled. CONFIG_ATH9K_COMMON=m -# CONFIG_ATH9K_DEBUGFS=y +CONFIG_ATH9K_DEBUGFS=y +CONFIG_ATH9K_PKTLOG=y CONFIG_IWLWIFI=m @@ -361,6 +362,7 @@ CONFIG_AR9170_LEDS=y endif CONFIG_ATH9K_HTC=m +CONFIG_ATH9K_HTC_DEBUGFS=y # RT2500USB does not require firmware CONFIG_RT2500USB=m @@ -461,7 +463,7 @@ CONFIG_P54_LEDS=y # Atheros CONFIG_ATH_COMMON=m -# CONFIG_ATH_DEBUG=y +CONFIG_ATH_DEBUG=y CONFIG_WL12XX=y CONFIG_WL1251=m diff --git a/defconfigs/README b/defconfigs/README new file mode 100644 index 000000000000..5dcd84a364c0 --- /dev/null +++ b/defconfigs/README @@ -0,0 +1,2 @@ +You can stuff into this directory default config.mk files which are suited +for debugging or other testing purposes. diff --git a/defconfigs/atheros-debug.mk b/defconfigs/atheros-debug.mk new file mode 100644 index 000000000000..801b714cc0d6 --- /dev/null +++ b/defconfigs/atheros-debug.mk @@ -0,0 +1,492 @@ +export + +## NOTE +## Make sure to have each variable declaration start +## in the first column, no whitespace allowed. + +ifeq ($(wildcard $(KLIB_BUILD)/.config),) +# These will be ignored by compat autoconf + CONFIG_PCI=y + CONFIG_USB=y + CONFIG_PCMCIA=y + CONFIG_SSB=m +else +include $(KLIB_BUILD)/.config +endif + +# We will warn when you don't have MQ support or NET_SCHED enabled. +# +# We could consider just quiting if MQ and NET_SCHED is disabled +# as I suspect all users of this package want 802.11e (WME) and +# 802.11n (HT) support. +ifneq ($(wildcard $(KLIB_BUILD)/Makefile),) +COMPAT_LATEST_VERSION = 33 +KERNEL_SUBLEVEL := $(shell $(MAKE) -C $(KLIB_BUILD) kernelversion | sed -n 's/^2\.6\.\([0-9]\+\).*/\1/p') +COMPAT_VERSIONS := $(shell I=$(COMPAT_LATEST_VERSION); while [ "$$I" -gt $(KERNEL_SUBLEVEL) ]; do echo $$I; I=$$(($$I - 1)); done) +$(foreach ver,$(COMPAT_VERSIONS),$(eval CONFIG_COMPAT_KERNEL_$(ver)=y)) + +ifdef CONFIG_COMPAT_KERNEL_25 +$(error "ERROR: compat-wireless by default supports kernels >= 2.6.25, try enabling only one driver though") +endif + +ifeq ($(CONFIG_CFG80211),y) +$(error "ERROR: your kernel has CONFIG_CFG80211=y, you should have it CONFIG_CFG80211=m if you want to use this thing.") +endif + + +# 2.6.27 has FTRACE_DYNAMIC borked, so we will complain if +# you have it enabled, otherwise you will very likely run into +# a kernel panic. +ifeq ($(KERNEL_SUBLEVEL),27) +ifeq ($(CONFIG_DYNAMIC_FTRACE),y) +$(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") +endif +endif + +# This is because with CONFIG_MAC80211 include/linux/skbuff.h will +# enable on 2.6.27 a new attribute: +# +# skb->do_not_encrypt +# +# and on 2.6.28 another new attribute: +# +# skb->requeue +# +ifeq ($(shell test $(KERNEL_SUBLEVEL) -ge 27 && echo yes),yes) +ifeq ($(CONFIG_MAC80211),) +$(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.") +endif +endif + +ifneq ($(KERNELRELEASE),) # This prevents a warning + +ifeq ($(CONFIG_NET_SCHED),) + QOS_REQS_MISSING+=CONFIG_NET_SCHED +endif + +ifneq ($(QOS_REQS_MISSING),) # Complain about our missing dependencies +$(warning "WARNING: You are running a kernel >= 2.6.23, you should enable in it $(QOS_REQS_MISSING) for 802.11[ne] support") +endif + +endif # build check +endif # kernel Makefile check + +# These both are needed by compat-wireless || compat-bluetooth so enable them + CONFIG_COMPAT_RFKILL=y + +ifeq ($(CONFIG_MAC80211),y) +$(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") +else + CONFIG_COMPAT_WIRELESS=y + CONFIG_COMPAT_WIRELESS_MODULES=m + CONFIG_COMPAT_VAR_MODULES=m +# We could technically separate these but not yet, we only have b44 +# Note that we don't intend on backporting network drivers that +# use Multiqueue as that was a pain to backport to kernels older than +# 2.6.27. But -- we could just disable those drivers from kernels +# older than 2.6.27 + CONFIG_COMPAT_NETWORK_MODULES=m + CONFIG_COMPAT_NET_USB_MODULES=m +endif + +# The Bluetooth compatibility only builds on kernels >= 2.6.27 for now +ifndef CONFIG_COMPAT_KERNEL_27 +ifeq ($(CONFIG_BT),y) +# we'll ignore compiling bluetooth +else + CONFIG_COMPAT_BLUETOOTH=y + CONFIG_COMPAT_BLUETOOTH_MODULES=m +endif +endif # Kernel >= 2.6.26 + +ifeq ($(CONFIG_COMPAT_KERNEL_33),y) +ifneq ($(CONFIG_FW_LOADER),) + CONFIG_COMPAT_FIRMWARE_CLASS=m +endif +endif + + +# Wireless subsystem stuff +CONFIG_MAC80211=m + +# CONFIG_MAC80211_DEBUGFS=y +# CONFIG_MAC80211_NOINLINE=y +# CONFIG_MAC80211_VERBOSE_DEBUG=y +# CONFIG_MAC80211_HT_DEBUG=y +# CONFIG_MAC80211_TKIP_DEBUG=y +# CONFIG_MAC80211_IBSS_DEBUG=y +# CONFIG_MAC80211_VERBOSE_PS_DEBUG=y +# CONFIG_MAC80211_VERBOSE_MPL_DEBUG=y +# CONFIG_MAC80211_VERBOSE_MHWMP_DEBUG=y +# CONFIG_MAC80211_DEBUG_COUNTERS=y +# CONFIG_MAC80211_DRIVER_API_TRACER=y + +# choose between pid and minstrel as default rate control algorithm +CONFIG_MAC80211_RC_DEFAULT=minstrel +CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y +# CONFIG_MAC80211_RC_DEFAULT_PID=y +# This is the one used by our compat-wireless net/mac80211/rate.c +# in case you have and old kernel which is overriding this to pid. +CONFIG_COMPAT_MAC80211_RC_DEFAULT=minstrel +CONFIG_MAC80211_RC_PID=y +CONFIG_MAC80211_RC_MINSTREL=y +CONFIG_MAC80211_LEDS=y + +# enable mesh networking too +CONFIG_MAC80211_MESH=y + +CONFIG_CFG80211=m +CONFIG_CFG80211_DEFAULT_PS=y +# CONFIG_CFG80211_DEBUGFS=y +# CONFIG_NL80211_TESTMODE=y +# CONFIG_CFG80211_DEVELOPER_WARNINGS=y +# CONFIG_CFG80211_REG_DEBUG=y +# See below for wext stuff + +CONFIG_LIB80211=m +CONFIG_LIB80211_CRYPT_WEP=m +CONFIG_LIB80211_CRYPT_CCMP=m +CONFIG_LIB80211_CRYPT_TKIP=m +# CONFIG_LIB80211_DEBUG=y + +CONFIG_BT=m +CONFIG_BT_L2CAP=m +CONFIG_BT_SCO=m +CONFIG_BT_RFCOMM=m +CONFIG_BT_BNEP=m +CONFIG_BT_ATH3K=m +# CONFIG_BT_CMTP depends on ISDN_CAPI +ifneq ($(CONFIG_BT_CMTP),) +CONFIG_BT_CMTP=m +endif +CONFIG_BT_HIDP=m + +ifneq ($(CONFIG_WIRELESS_EXT),) +CONFIG_CFG80211_WEXT=y +endif + +# mac80211 test driver +CONFIG_MAC80211_HWSIM=m + +# PCI Drivers +ifneq ($(CONFIG_PCI),) + +CONFIG_ATH5K=m +# CONFIG_ATH5K_DEBUG=y +CONFIG_ATH9K_HW=m +CONFIG_ATH9K=m +# Note: once ath9k_htc is added we'll have to move +# CONFIG_ATH9K_COMMON to an area that doesn't depend on PCI +# as you could then have ath9k disabled but ath9k_htc enabled. +CONFIG_ATH9K_COMMON=m +CONFIG_ATH9K_DEBUGFS=y +CONFIG_ATH9K_PKTLOG=y + + +CONFIG_IWLWIFI=m +# CONFIG_IWLWIFI_DEBUG=y +# CONFIG_IWLWIFI_DEBUGFS=y +# CONFIG_IWLWIFI_DEVICE_TRACING=y +CONFIG_IWLAGN=m +CONFIG_COMPAT_IWL4965=y +CONFIG_IWL5000=y +CONFIG_IWL3945=m + + +CONFIG_B43=m +CONFIG_B43_HWRNG=y +CONFIG_B43_PCI_AUTOSELECT=y +ifneq ($(CONFIG_PCMCIA),) +CONFIG_B43_PCMCIA=y +endif +CONFIG_B43_LEDS=y +CONFIG_B43_PHY_LP=y +CONFIG_B43_NPHY=y +# CONFIG_B43_FORCE_PIO=y +# CONFIG_B43_DEBUG=y + +CONFIG_B43LEGACY=m +CONFIG_B43LEGACY_HWRNG=y +CONFIG_B43LEGACY_PCI_AUTOSELECT=y +CONFIG_B43LEGACY_LEDS=y +# CONFIG_B43LEGACY_DEBUG=y +CONFIG_B43LEGACY_DMA=y +CONFIG_B43LEGACY_PIO=y + +# The Intel ipws +CONFIG_LIBIPW=m +# CONFIG_LIBIPW_DEBUG=y + + +CONFIG_IPW2100=m +CONFIG_IPW2100_MONITOR=y +# CONFIG_IPW2100_DEBUG=y +CONFIG_IPW2200=m +CONFIG_IPW2200_MONITOR=y +CONFIG_IPW2200_RADIOTAP=y +CONFIG_IPW2200_PROMISCUOUS=y +CONFIG_IPW2200_QOS=y +# CONFIG_IPW2200_DEBUG=y +# The above enables use a second interface prefixed 'rtap'. +# Example usage: +# +# % modprobe ipw2200 rtap_iface=1 +# % ifconfig rtap0 up +# % tethereal -i rtap0 +# +# If you do not specify 'rtap_iface=1' as a module parameter then +# the rtap interface will not be created and you will need to turn +# it on via sysfs: +# +# % echo 1 > /sys/bus/pci/drivers/ipw2200/*/rtap_iface + +ifneq ($(CONFIG_SSB),) +# Sonics Silicon Backplane +CONFIG_SSB_SPROM=y +# CONFIG_SSB_DEBUG=y + +CONFIG_SSB_BLOCKIO=y +CONFIG_SSB_PCIHOST=y +CONFIG_SSB_B43_PCI_BRIDGE=y +ifneq ($(CONFIG_PCMCIA),) +CONFIG_SSB_PCMCIAHOST=y +endif +# CONFIG_SSB_DEBUG=y +CONFIG_SSB_DRIVER_PCICORE=y +endif + +CONFIG_P54_PCI=m + +CONFIG_B44=m +CONFIG_B44_PCI=y + +CONFIG_RTL8180=m + +CONFIG_ADM8211=m + +CONFIG_RT2X00_LIB_PCI=m +CONFIG_RT2400PCI=m +CONFIG_RT2500PCI=m +ifneq ($(CONFIG_CRC_CCITT),) +CONFIG_RT2800PCI=m +CONFIG_RT2800PCI_PCI=y +# CONFIG_RT2800PCI_RT30XX=y +# CONFIG_RT2800PCI_RT35XX=y +# CONFIG_RT2800PCI_SOC=y +endif +NEED_RT2X00=y + +# Two rt2x00 drivers require firmware: rt61pci and rt73usb. They depend on +# CRC to check the firmware. We check here first for the PCI +# driver as we're in the PCI section. +ifneq ($(CONFIG_CRC_ITU_T),) +CONFIG_RT61PCI=m +NEED_RT2X00_FIRMWARE=y +endif + +CONFIG_MWL8K=m + +# Ethernet drivers go here +CONFIG_ATL1=m +CONFIG_ATL2=m +CONFIG_ATL1E=m +CONFIG_ATL1C=m + +CONFIG_HERMES=m +CONFIG_HERMES_CACHE_FW_ON_INIT=y +ifneq ($(CONFIG_PPC_PMAC),) +CONFIG_APPLE_AIRPORT=m +endif +CONFIG_PLX_HERMES=m +CONFIG_TMD_HERMES=m +CONFIG_NORTEL_HERMES=m +CONFIG_PCI_HERMES=m +ifneq ($(CONFIG_PCMCIA),) +CONFIG_PCMCIA_HERMES=m +CONFIG_PCMCIA_SPECTRUM=m +endif + +endif +## end of PCI + +ifneq ($(CONFIG_PCMCIA),) + +ifdef CONFIG_COMPAT_KERNEL_27 +CONFIG_LIBERTAS=n +CONFIG_LIBERTAS_CS=n +else +CONFIG_LIBERTAS_CS=m +NEED_LIBERTAS=y +endif + +endif +## end of PCMCIA + +# This is required for some cards +CONFIG_EEPROM_93CX6=m + +# USB Drivers +ifneq ($(CONFIG_USB),) +CONFIG_ZD1211RW=m +# CONFIG_ZD1211RW_DEBUG=y + +# Sorry, rndis_wlan uses cancel_work_sync which is new and can't be done in compat... + +# Wireless RNDIS USB support (RTL8185 802.11g) A-Link WL54PC +# All of these devices are based on Broadcom 4320 chip which +# is only wireless RNDIS chip known to date. +# Note: this depends on CONFIG_USB_NET_RNDIS_HOST and CONFIG_USB_NET_CDCETHER +# it also requires new RNDIS_HOST and CDC_ETHER modules which we add +ifdef CONFIG_COMPAT_KERNEL_29 +CONFIG_USB_COMPAT_USBNET=n +CONFIG_USB_NET_COMPAT_RNDIS_HOST=n +CONFIG_USB_NET_COMPAT_RNDIS_WLAN=n +CONFIG_USB_NET_COMPAT_CDCETHER=n +else +CONFIG_USB_COMPAT_USBNET=m +CONFIG_USB_NET_COMPAT_RNDIS_HOST=m +CONFIG_USB_NET_COMPAT_RNDIS_WLAN=m +CONFIG_USB_NET_COMPAT_CDCETHER=m +endif + + +CONFIG_P54_USB=m +CONFIG_RTL8187=m +CONFIG_RTL8187_LEDS=y + +CONFIG_AT76C50X_USB=m + +ifndef CONFIG_COMPAT_KERNEL_28 +CONFIG_AR9170_USB=m +CONFIG_AR9170_LEDS=y +endif + +CONFIG_ATH9K_HTC=m +CONFIG_ATH9K_HTC_DEBUGFS=y + +# RT2500USB does not require firmware +CONFIG_RT2500USB=m +ifneq ($(CONFIG_CRC_CCITT),) +CONFIG_RT2800USB=m +# CONFIG_RT2800USB_RT30XX=y +# CONFIG_RT2800USB_RT35XX=y +# CONFIG_RT2800USB_UNKNOWN=y +endif +CONFIG_RT2X00_LIB_USB=m +NEED_RT2X00=y +# RT73USB requires firmware +ifneq ($(CONFIG_CRC_ITU_T),) +CONFIG_RT73USB=m +NEED_RT2X00_FIRMWARE=y +endif + +ifdef CONFIG_COMPAT_KERNEL_27 +CONFIG_LIBERTAS_THINFIRM_USB=n +CONFIG_LIBERTAS_USB=n +NEED_LIBERTAS=n +else +CONFIG_LIBERTAS_THINFIRM_USB=m +CONFIG_LIBERTAS_USB=m +NEED_LIBERTAS=y +endif + +CONFIG_ORINOCO_USB=m + +endif # end of USB driver list + +ifneq ($(CONFIG_SPI_MASTER),) + +CONFIG_WL1251=m +ifneq ($(CONFIG_CRC7),) +CONFIG_WL1251_SPI=m +endif +CONFIG_WL1271_SPI=m +CONFIG_P54_SPI=m + +ifdef CONFIG_COMPAT_KERNEL_27 +CONFIG_LIBERTAS_SPI=n +NEED_LIBERTAS=n +else +CONFIG_LIBERTAS_SPI=m +NEED_LIBERTAS=y +endif + +endif # end of SPI driver list + +ifneq ($(CONFIG_MMC),) + +CONFIG_SSB_SDIOHOST=y +CONFIG_B43_SDIO=y +CONFIG_WL1251_SDIO=m + +ifneq ($(CONFIG_ARM),) +CONFIG_WL1271_SDIO=m +endif + +ifdef CONFIG_COMPAT_KERNEL_27 +CONFIG_LIBERTAS_SDIO=n +NEED_LIBERTAS=n +else +CONFIG_LIBERTAS_SDIO=m +NEED_LIBERTAS=y +endif + +# Activate iwmc3200wifi support only on kernel >= 2.6.29. +# iwmc3200wifi uses new netdev_ops api no supported by old kernel. +ifndef CONFIG_COMPAT_KERNEL_29 +CONFIG_IWM=m +# CONFIG_IWM_DEBUG=y +endif + +endif # end of SDIO driver list + +# Common rt2x00 requirements +ifeq ($(NEED_RT2X00),y) +CONFIG_RT2X00=y +CONFIG_RT2X00_LIB=m +CONFIG_RT2800_LIB=m +CONFIG_RT2X00_LIB_HT=y +CONFIG_RT2X00_LIB_FIRMWARE=y +CONFIG_RT2X00_LIB_CRYPTO=y +CONFIG_RT2X00_LIB_LEDS=y +# CONFIG_RT2X00_DEBUG=y +# CONFIG_RT2X00_LIB_DEBUGFS +endif + +ifeq ($(NEED_RT2X00_FIRMWARE),y) +CONFIG_RT2X00_LIB_FIRMWARE=y +endif + +# p54 +CONFIG_P54_COMMON=m +CONFIG_P54_LEDS=y + +# Atheros +CONFIG_ATH_COMMON=m +CONFIG_ATH_DEBUG=y + +CONFIG_WL12XX=y +CONFIG_WL1251=m +ifneq ($(CONFIG_CRC7),) +CONFIG_WL1271=m +endif + +ifdef CONFIG_COMPAT_KERNEL_27 +CONFIG_LIBERTAS=n +else +ifeq ($(NEED_LIBERTAS),y) +CONFIG_LIBERTAS_THINFIRM=m +CONFIG_LIBERTAS=m +CONFIG_LIBERTAS_MESH=y +# CONFIG_LIBERTAS_DEBUG=y +endif +endif + +# We need the backported rfkill module on kernel < 2.6.31. +# In more recent kernel versions use the in kernel rfkill module. +ifdef CONFIG_COMPAT_KERNEL_31 +CONFIG_RFKILL_BACKPORT=m +CONFIG_RFKILL_BACKPORT_LEDS=y +CONFIG_RFKILL_BACKPORT_INPUT=y +endif +