endif #CONFIG_COMPAT_KERNEL_27
ifdef CONFIG_COMPAT_KERNEL_33
-ifneq ($(CONFIG_FW_LOADER),)
+ifdef CONFIG_FW_LOADER
CONFIG_COMPAT_FIRMWARE_CLASS=m
-endif
+endif #CONFIG_FW_LOADER
endif #CONFIG_COMPAT_KERNEL_33
CONFIG_BT_BNEP_MC_FILTER=y
CONFIG_BT_BNEP_PROTO_FILTER=y
# CONFIG_BT_CMTP depends on ISDN_CAPI
-ifneq ($(CONFIG_ISDN_CAPI),)
+ifdef CONFIG_ISDN_CAPI
CONFIG_BT_CMTP=m
-endif
+endif #CONFIG_ISDN_CAPI
CONFIG_BT_HIDP=m
CONFIG_BT_HCIUART=M
CONFIG_BT_HCIVHCI=m
CONFIG_BT_MRVL=m
-ifneq ($(CONFIG_PCMCIA),)
+ifdef CONFIG_PCMCIA
CONFIG_BT_HCIDTL1=m
CONFIG_BT_HCIBT3C=m
CONFIG_BT_HCIBLUECARD=m
CONFIG_BT_HCIBTUART=m
-endif
+endif #CONFIG_PCMCIA
# CONFIG_CFG80211_WEXT will be resepected for
#
# For newer kernels we'll just respect your own kernel's
# autoconf.h
-ifneq ($(CONFIG_WIRELESS_EXT),)
+ifdef CONFIG_WIRELESS_EXT
CONFIG_CFG80211_WEXT=y
-endif
+endif #CONFIG_WIRELESS_EXT
ifneq ($(CONFIG_STAGING),)
-CONFIG_COMPAT_STAGING=m
+ CONFIG_COMPAT_STAGING=m
endif
# mac80211 test driver
CONFIG_MAC80211_HWSIM=m
# PCI Drivers
-ifneq ($(CONFIG_PCI),)
+ifdef CONFIG_PCI
CONFIG_ATH5K=m
# CONFIG_ATH5K_DEBUG=y
CONFIG_B43=m
CONFIG_B43_HWRNG=y
CONFIG_B43_PCI_AUTOSELECT=y
-ifneq ($(CONFIG_PCMCIA),)
+ifdef CONFIG_PCMCIA
CONFIG_B43_PCMCIA=y
-endif
+endif #CONFIG_PCMCIA
CONFIG_B43_LEDS=y
CONFIG_B43_PHY_LP=y
CONFIG_B43_NPHY=y
endif #CONFIG_WEXT_SPY
endif #CONFIG_WIRELESS_EXT
-ifneq ($(CONFIG_SSB),)
+ifdef 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),)
+ifdef CONFIG_PCMCIA
CONFIG_SSB_PCMCIAHOST=y
-endif
+endif #CONFIG_PCMCIA
# CONFIG_SSB_DEBUG=y
CONFIG_SSB_DRIVER_PCICORE=y
-endif
+endif #CONFIG_SSB
CONFIG_P54_PCI=m
CONFIG_RT2X00_LIB_PCI=m
CONFIG_RT2400PCI=m
CONFIG_RT2500PCI=m
-ifneq ($(CONFIG_CRC_CCITT),)
+ifdef CONFIG_CRC_CCITT
CONFIG_RT2800PCI=m
CONFIG_RT2800PCI_PCI=y
# CONFIG_RT2800PCI_RT30XX=y
# CONFIG_RT2800PCI_RT35XX=y
# CONFIG_RT2800PCI_SOC=y
-endif
+endif #CONFIG_CRC_CCITT
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),)
+ifdef CONFIG_CRC_ITU_T
CONFIG_RT61PCI=m
NEED_RT2X00_FIRMWARE=y
-endif
+endif #CONFIG_CRC_ITU_T
CONFIG_MWL8K=m
ifdef CONFIG_WEXT_PRIV
CONFIG_HERMES=m
CONFIG_HERMES_CACHE_FW_ON_INIT=y
-ifneq ($(CONFIG_PPC_PMAC),)
+ifdef CONFIG_PPC_PMAC
CONFIG_APPLE_AIRPORT=m
-endif
+endif #CONFIG_PPC_PMAC
CONFIG_PLX_HERMES=m
CONFIG_TMD_HERMES=m
CONFIG_NORTEL_HERMES=m
CONFIG_PCI_HERMES=m
-ifneq ($(CONFIG_PCMCIA),)
+ifdef CONFIG_PCMCIA
CONFIG_PCMCIA_HERMES=m
CONFIG_PCMCIA_SPECTRUM=m
-endif
+endif #CONFIG_PCMCIA
endif #CONFIG_WEXT_PRIV
endif #CONFIG_WEXT_SPY
endif #CONFIG_WIRELESS_EXT
-endif
+endif #CONFIG_PCI
## end of PCI
-ifneq ($(CONFIG_PCMCIA),)
+ifdef CONFIG_PCMCIA
ifdef CONFIG_COMPAT_KERNEL_27
CONFIG_LIBERTAS=n
NEED_LIBERTAS=y
endif #CONFIG_COMPAT_KERNEL_27
-endif
+endif #CONFIG_PCMCIA
## end of PCMCIA
# This is required for some cards
CONFIG_EEPROM_93CX6=m
# USB Drivers
-ifneq ($(CONFIG_USB),)
+ifdef CONFIG_USB
CONFIG_ZD1211RW=m
# CONFIG_ZD1211RW_DEBUG=y
# RT2500USB does not require firmware
CONFIG_RT2500USB=m
-ifneq ($(CONFIG_CRC_CCITT),)
+ifdef CONFIG_CRC_CCITT
CONFIG_RT2800USB=m
CONFIG_RT2800USB_RT30XX=y
CONFIG_RT2800USB_RT35XX=y
CONFIG_RT2800USB_UNKNOWN=y
-endif
+endif #CONFIG_CRC_CCITT
CONFIG_RT2X00_LIB_USB=m
NEED_RT2X00=y
# RT73USB requires firmware
-ifneq ($(CONFIG_CRC_ITU_T),)
+ifdef CONFIG_CRC_ITU_T
CONFIG_RT73USB=m
NEED_RT2X00_FIRMWARE=y
-endif
+endif #CONFIG_CRC_ITU_T
ifdef CONFIG_COMPAT_KERNEL_27
CONFIG_LIBERTAS_THINFIRM_USB=n
CONFIG_BT_HCIBFUSB=m
CONFIG_BT_ATH3K=m
-endif # end of USB driver list
+endif #CONFIG_USB end of USB driver list
-ifneq ($(CONFIG_SPI_MASTER),)
+ifdef CONFIG_SPI_MASTER
ifndef CONFIG_COMPAT_KERNEL_25
-ifneq ($(CONFIG_CRC7),)
+ifdef CONFIG_CRC7
CONFIG_WL1251_SPI=m
CONFIG_WL1271_SPI=m
-endif
+endif #CONFIG_CRC7
CONFIG_P54_SPI=m
ifdef CONFIG_COMPAT_KERNEL_27
endif #CONFIG_COMPAT_KERNEL_27
endif #CONFIG_COMPAT_KERNEL_25
-endif # end of SPI driver list
+endif #CONFIG_SPI_MASTER end of SPI driver list
-ifneq ($(CONFIG_MMC),)
+ifdef CONFIG_MMC
CONFIG_SSB_SDIOHOST=y
CONFIG_B43_SDIO=y
-ifneq ($(CONFIG_CRC7),)
+ifdef CONFIG_CRC7
CONFIG_WL1251_SDIO=m
ifndef CONFIG_COMPAT_KERNEL_32
CONFIG_WL1271_SDIO=m
endif #CONFIG_COMPAT_KERNEL_32
-endif
+endif #CONFIG_CRC7
ifdef CONFIG_COMPAT_KERNEL_27
CONFIG_LIBERTAS_SDIO=n
CONFIG_ATH6KL_VIRTUAL_SCATTER_GATHER=y
CONFIG_ATH6K_LEGACY=m
endif #CONFIG_WIRELESS_EXT
-endif
+endif #CONFIG_MMC
endif # end of SDIO driver list
# CONFIG_ATH_DEBUG=y
CONFIG_WL12XX=y
-ifneq ($(CONFIG_CRC7),)
+ifdef CONFIG_CRC7
CONFIG_WL1251=m
CONFIG_WL1271=m
-endif
+endif #CONFIG_CRC7
ifdef CONFIG_COMPAT_KERNEL_27
CONFIG_LIBERTAS=n