mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-26 12:00:48 -09:00
package/wilc-driver: fix build failure due to missing Linux options
Enable Linux options depending on the bus has been chosen, so:
1) enable by default common Linux options:
CONFIG_NET
CONFIG_WIRELESS
CONFIG_CFG80211
CONFIG_CRC_ITU_T
CONFIG_CRC7
2) enable for SDIO bus:
CONFIG_MMC
3) enable for SPI bus:
CONFIG_SPI
Fixes:
http://autobuild.buildroot.net/results/d8c4f0f959dd2ec110db8a75980f13172c3c116c/
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Reviewed-by: Kris Bahnsen <Kris@embeddedTS.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 9fe82e56d2)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
73b001dd81
commit
3c7c6cd598
@@ -13,11 +13,17 @@ WILC_DRIVER_LICENSE_FILES = LICENSE
|
||||
ifeq ($(BR2_PACKAGE_WILC_DRIVER_SPI),y)
|
||||
WILC_DRIVER_MODULE_MAKE_OPTS += \
|
||||
CONFIG_WILC_SPI=m
|
||||
define WILC_DRIVER_SPI_LINUX_CONFIG_FIXUPS
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_SPI)
|
||||
endef
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_WILC_DRIVER_SDIO),y)
|
||||
WILC_DRIVER_MODULE_MAKE_OPTS += \
|
||||
CONFIG_WILC_SDIO=m
|
||||
define WILC_DRIVER_SDIO_LINUX_CONFIG_FIXUPS
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_MMC)
|
||||
endef
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_WILC_DRIVER_SDIO_OOB),y)
|
||||
@@ -25,5 +31,15 @@ WILC_DRIVER_MODULE_MAKE_OPTS += \
|
||||
CONFIG_WILC_HW_OOB_INTR=y
|
||||
endif
|
||||
|
||||
define WILC_DRIVER_LINUX_CONFIG_FIXUPS
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_NET)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_WIRELESS)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_CFG80211)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_CRC_ITU_T)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_CRC7)
|
||||
$(WILC_DRIVER_SPI_LINUX_CONFIG_FIXUPS)
|
||||
$(WILC_DRIVER_SDIO_LINUX_CONFIG_FIXUPS)
|
||||
endef
|
||||
|
||||
$(eval $(kernel-module))
|
||||
$(eval $(generic-package))
|
||||
|
||||
Reference in New Issue
Block a user