[LEDE-DEV] [RFC 3/6 v2] x86: Add sp5100_tco as a kernel module

Chris Blake chrisrblake93 at gmail.com
Sat Oct 22 10:39:25 PDT 2016


This patch enables the kernel sp5100_tco watchdog driver to be built as
a kernel module.

Signed-off-by: Chris Blake <chrisrblake93 at gmail.com>
---
 target/linux/x86/modules.mk | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/target/linux/x86/modules.mk b/target/linux/x86/modules.mk
index 1fc5ce5..f6a87ee 100644
--- a/target/linux/x86/modules.mk
+++ b/target/linux/x86/modules.mk
@@ -19,3 +19,18 @@ define KernelPackage/gpio-nct5104d/description
 endef

 $(eval $(call KernelPackage,gpio-nct5104d))
+
+define KernelPackage/sp5100_tco
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=SP5100 Watchdog Support
+  DEPENDS:=@TARGET_x86
+  KCONFIG:=CONFIG_SP5100_TCO
+  FILES:=$(LINUX_DIR)/drivers/watchdog/sp5100_tco.ko
+  AUTOLOAD:=$(call AutoLoad,50,sp5100_tco,1)
+endef
+
+define KernelPackage/sp5100_tco/description
+ Kernel module for the SP5100_TCO hardware watchdog.
+endef
+
+$(eval $(call KernelPackage,sp5100_tco))
--
2.7.4



More information about the Lede-dev mailing list