From: Hauke Mehrtens Date: Tue, 1 Oct 2013 22:40:32 +0000 (+0000) Subject: kernel: add industrialio-triggered-buffer.ko only when the config option is selected. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c57ac5fcb7887ce79d25aa7a0fe1701b5ade6ee1;p=openwrt%2Fstaging%2Fluka.git kernel: add industrialio-triggered-buffer.ko only when the config option is selected. Signed-off-by: Hauke Mehrtens SVN-Revision: 38276 --- diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk index 7fcd1056c3..65f2975a2b 100644 --- a/package/kernel/linux/modules/other.mk +++ b/package/kernel/linux/modules/other.mk @@ -205,7 +205,7 @@ define KernelPackage/iio-core CONFIG_IIO_TRIGGERED_BUFFER FILES:= \ $(LINUX_DIR)/drivers/iio/industrialio.ko \ - $(LINUX_DIR)/drivers/iio/industrialio-triggered-buffer.ko \ + $(if $(CONFIG_IIO_TRIGGERED_BUFFER),$(LINUX_DIR)/drivers/iio/industrialio-triggered-buffer.ko) \ $(LINUX_DIR)/drivers/iio/kfifo_buf.ko AUTOLOAD:=$(call AutoLoad,55,industrialio kfifo_buf industrialio-triggered-buffer) endef