[openwrt/openwrt] kernel/modules/other/mlx_wdt: add new package

LEDE Commits lede-commits at lists.infradead.org
Sat May 25 11:37:59 PDT 2024


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/0e56bd3eb591d6b2a3c96c7f913ea5651db7798e

commit 0e56bd3eb591d6b2a3c96c7f913ea5651db7798e
Author: Til Kaiser <mail at tk154.de>
AuthorDate: Sun Apr 28 15:16:57 2024 +0200

    kernel/modules/other/mlx_wdt: add new package
    
    This commit adds a new driver for the hardware watchdog
    on Mellanox systems.
    
    Signed-off-by: Til Kaiser <mail at tk154.de>
---
 package/kernel/linux/modules/other.mk | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk
index e227fd6a0f..916fd08ba0 100644
--- a/package/kernel/linux/modules/other.mk
+++ b/package/kernel/linux/modules/other.mk
@@ -244,6 +244,28 @@ endef
 $(eval $(call KernelPackage,lkdtm))
 
 
+define KernelPackage/mlx_wdt
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=Mellanox Watchdog
+  DEPENDS:=@TARGET_x86 +kmod-regmap-core
+  KCONFIG:= \
+	CONFIG_MELLANOX_PLATFORM=y \
+	CONFIG_MLX_WDT
+  FILES:=$(LINUX_DIR)/drivers/watchdog/mlx_wdt.ko
+  AUTOLOAD:=$(call AutoProbe,mlx_wdt)
+endef
+
+define KernelPackage/mlx_wdt/description
+  This is the driver for the hardware watchdog on Mellanox systems.
+  This driver can be used together with the watchdog daemon.
+  It can also watch your kernel to make sure it doesn't freeze,
+  and if it does, it reboots your system after a certain amount of
+  time.
+endef
+
+$(eval $(call KernelPackage,mlx_wdt))
+
+
 define KernelPackage/pinctrl-mcp23s08
   SUBMENU:=$(OTHER_MENU)
   TITLE:=Microchip MCP23xxx I/O expander




More information about the lede-commits mailing list