[openwrt/openwrt] kernel: package industrialio-buffer-cb driver
LEDE Commits
lede-commits at lists.infradead.org
Sat Nov 23 07:21:01 PST 2024
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/b0adf5e0fdc0d4b449bced9191a95bf08124c1ac
commit b0adf5e0fdc0d4b449bced9191a95bf08124c1ac
Author: Thomas Richard <thomas.richard at bootlin.com>
AuthorDate: Tue Nov 5 10:39:47 2024 +0100
kernel: package industrialio-buffer-cb driver
It is needed for the stm32/stm32mp1 subtarget.
Signed-off-by: Thomas Richard <thomas.richard at bootlin.com>
Link: https://github.com/openwrt/openwrt/pull/16716
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
package/kernel/linux/modules/iio.mk | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/package/kernel/linux/modules/iio.mk b/package/kernel/linux/modules/iio.mk
index b9bcaad5b2..e98a6830da 100644
--- a/package/kernel/linux/modules/iio.mk
+++ b/package/kernel/linux/modules/iio.mk
@@ -63,6 +63,21 @@ endef
$(eval $(call KernelPackage,industrialio-hw-consumer))
+define KernelPackage/industrialio-buffer-cb
+ TITLE:=Provides callback buffer used for push in-kernel interfaces
+ KCONFIG:=CONFIG_IIO_BUFFER_CB
+ FILES:=$(LINUX_DIR)/drivers/iio/buffer/industrialio-buffer-cb.ko
+ AUTOLOAD:=$(call AutoLoad,55,industrialio-triggered-buffer-cb)
+ $(call AddDepends/iio)
+endef
+
+define KernelPackage/industrialio-buffer-cb/description
+ Should be selected by any drivers that do in-kernel push usage.
+endef
+
+$(eval $(call KernelPackage,industrialio-buffer-cb))
+
+
define KernelPackage/industrialio-triggered-buffer
TITLE:=Provides helper functions for setting up triggered buffers.
DEPENDS:=+kmod-iio-kfifo-buf
More information about the lede-commits
mailing list