Skip to content

Commit

Permalink
kernel: make kmod-mmc unavailable on UML
Browse files Browse the repository at this point in the history
MMC requires IOMEM support, which UML doesn't have.

Fixes mac80211 build, as mwifiex-sdio depends on MMC support.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
  • Loading branch information
KanjiMonster committed Apr 10, 2017
1 parent fc859fb commit ac388ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package/kernel/linux/modules/other.mk
Expand Up @@ -349,6 +349,7 @@ $(eval $(call KernelPackage,lp))
define KernelPackage/mmc
SUBMENU:=$(OTHER_MENU)
TITLE:=MMC/SD Card Support
DEPENDS:=@!TARGET_uml
KCONFIG:= \
CONFIG_MMC \
CONFIG_MMC_BLOCK \
Expand Down

2 comments on commit ac388ad

@uosbox
Copy link

@uosbox uosbox commented on ac388ad Apr 11, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

root@kk:~/lede# make menuconfig
Collecting package info: done
Collecting target info: done
tmp/.config-package.in:12490:error: recursive dependency detected!
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
tmp/.config-package.in:12490: symbol PACKAGE_kmod-brcmfmac depends on BRCMFMAC_SDIO
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
tmp/.config-package.in:12512: symbol BRCMFMAC_SDIO depends on PACKAGE_kmod-brcmfmac

Your configuration changes were NOT saved.

root@kk:~/lede#

@uosbox
Copy link

@uosbox uosbox commented on ac388ad Apr 11, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tmp/.config-package.in
[...]
config PACKAGE_kmod-brcmfmac
tristate "kmod-brcmfmac............... Broadcom IEEE802.11n USB FullMAC WLAN driver"
default y if DEFAULT_kmod-brcmfmac
default m if ALL||ALL_NONSHARED||ALL_KMODS
select DRIVER_11AC_SUPPORT
select PACKAGE_kmod-brcmutil
select PACKAGE_kmod-mmc if BRCMFMAC_SDIO
depends on PCI_SUPPORT||USB_SUPPORT
select DRIVER_11N_SUPPORT
depends on !(BRCMFMAC_SDIO) || !TARGET_uml
select PACKAGE_brcmfmac-firmware-usb if BRCMFMAC_USB
select PACKAGE_kmod-usb-core if BRCMFMAC_USB
depends on USB_SUPPORT
select PACKAGE_kmod-cfg80211
help
Kernel module for Broadcom IEEE802.11n USB Wireless cards
https://wireless.wiki.kernel.org/en/users/drivers/brcm80211
Felix Fietkau nbd@nbd.name

  if PACKAGE_kmod-brcmfmac

	config BRCMFMAC_SDIO
		bool "Enable SDIO bus interface support"
		default y if TARGET_brcm2708
		default n
		help
		  Enable support for cards attached to an SDIO bus.
		  Select this option only if you are sure that your
		  board has a Broadcom wireless chip atacched to
		  that bus.

	config BRCMFMAC_USB
		bool "Enable USB bus interface support"
		depends on USB_SUPPORT
		default y
		help
		  Supported USB connected chipsets:
		  BCM43235, BCM43236, BCM43238 (all in revision 3 only)
		  BCM43143, BCM43242, BCM43566, BCM43569

	config BRCMFMAC_PCIE
		bool "Enable PCIE bus interface support"
		depends on PCI_SUPPORT
		default y
		help
		  Supported PCIe connected chipsets:
		  BCM4354, BCM4356, BCM43567, BCM43570, BCM43602

  endif

[...]

Please sign in to comment.