From: Felix Fietkau Date: Fri, 27 Sep 2013 21:12:15 +0000 (+0000) Subject: kernel: exclude regmap-spi.ko if SPI support cannot be selected X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=51971f1a3378ec1a9bf4222fe25a570abc0e6629;p=openwrt%2Fsvn-archive%2Farchive.git kernel: exclude regmap-spi.ko if SPI support cannot be selected Signed-off-by: Felix Fietkau SVN-Revision: 38245 --- diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk index b3e268e79c..bd8b357309 100644 --- a/package/kernel/linux/modules/other.mk +++ b/package/kernel/linux/modules/other.mk @@ -634,7 +634,7 @@ define KernelPackage/regmap FILES:= \ $(LINUX_DIR)/drivers/base/regmap/regmap-core.ko \ $(LINUX_DIR)/drivers/base/regmap/regmap-i2c.ko \ - $(LINUX_DIR)/drivers/base/regmap/regmap-spi.ko + $(if $(CONFIG_SPI),$(LINUX_DIR)/drivers/base/regmap/regmap-spi.ko) AUTOLOAD:=$(call AutoLoad,21,regmap-core regmap-i2c regmap-spi) endef