]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
kernel: modules: iio: package industrialio-backend module
authorThomas Richard <thomas.richard@bootlin.com>
Mon, 12 May 2025 12:15:37 +0000 (14:15 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 21 Jun 2025 12:28:42 +0000 (14:28 +0200)
The stm32-dfsdm-adc module depends on it (kernel 6.12).

Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
Link: https://github.com/openwrt/openwrt/pull/18740
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/kernel/linux/modules/iio.mk

index bd6a77f720af632e7cc7d75e826a47e64f51b518..d3bc1686acc23b07951aa50ddbeb9994c1ae8632 100644 (file)
@@ -47,6 +47,25 @@ endef
 $(eval $(call KernelPackage,iio-kfifo-buf))
 
 
+define KernelPackage/industrialio-backend
+  TITLE:=IIO Backend support
+  KCONFIG=CONFIG_IIO_BACKEND
+  FILES:=$(LINUX_DIR)/drivers/iio/industrialio-backend.ko
+  AUTOLOAD:=$(call AutoProbe,industrialio-backend)
+  $(call AddDepends/iio)
+endef
+
+define KernelPackage/industrialio-backend/description
+  Framework to handle complex IIO aggregate devices. The typical
+  architecture that can make use of this framework is to have one
+  device as the frontend device which can be "linked" against one or
+  multiple backend devices. The framework then makes it easy to get
+  and control such backend devices.
+endef
+
+$(eval $(call KernelPackage,industrialio-backend))
+
+
 define KernelPackage/industrialio-hw-consumer
   TITLE:=Provides a bonding way to an other device in hardware
   KCONFIG:=CONFIG_IIO_BUFFER_HW_CONSUMER