kernel: add industrialio-triggered-buffer.ko only when the config option is selected.
authorHauke Mehrtens <hauke@hauke-m.de>
Tue, 1 Oct 2013 22:40:32 +0000 (22:40 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 1 Oct 2013 22:40:32 +0000 (22:40 +0000)
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 38276

package/kernel/linux/modules/other.mk

index 7fcd1056c3004aece0d546b2cfead97e1ceef165..65f2975a2bb27954e8c80c6db7abdd1c10e5bf75 100644 (file)
@@ -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