From 3aecae1802f28d1662e29b31167f7959bfe6a7ce Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Tue, 30 Jan 2024 22:56:25 +0100 Subject: [PATCH] package/watchdogd: add menuconfig support for new system monitors Signed-off-by: Joachim Wiberg Signed-off-by: Yann E. MORIN --- package/watchdogd/Config.in | 10 ++++++++++ package/watchdogd/watchdogd.mk | 15 ++++++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/package/watchdogd/Config.in b/package/watchdogd/Config.in index 0b0480ea27..0aeaad165f 100644 --- a/package/watchdogd/Config.in +++ b/package/watchdogd/Config.in @@ -51,4 +51,14 @@ config BR2_PACKAGE_WATCHDOGD_MEMINFO help Enable memory leak monitor. +config BR2_PACKAGE_WATCHDOGD_FSMON + bool "File system monitor" + help + Enable file system monitor. + +config BR2_PACKAGE_WATCHDOGD_TEMPMON + bool "Temperature monitor" + help + Enable temperature monitor. + endif diff --git a/package/watchdogd/watchdogd.mk b/package/watchdogd/watchdogd.mk index 56816de94f..189efc81d4 100644 --- a/package/watchdogd/watchdogd.mk +++ b/package/watchdogd/watchdogd.mk @@ -16,9 +16,7 @@ WATCHDOGD_SELINUX_MODULES = watchdog WATCHDOGD_CONF_OPTS = \ --disable-compat \ --disable-examples \ - --disable-test-mode \ - --without-fsmon \ - --without-tempmon + --disable-test-mode ifneq ($(BR2_PACKAGE_WATCHDOGD_TEST_SUITE),y) WATCHDOGD_CONF_OPTS += --disable-builtin-tests @@ -49,6 +47,17 @@ WATCHDOGD_CONF_OPTS += --without-meminfo else WATCHDOGD_CONF_OPTS += --with-meminfo endif + +ifneq ($(BR2_PACKAGE_WATCHDOGD_FSMON),y) +WATCHDOGD_CONF_OPTS += --without-fsmon +else +WATCHDOGD_CONF_OPTS += --with-fsmon +endif + +ifneq ($(BR2_PACKAGE_WATCHDOGD_TEMPMON),y) +WATCHDOGD_CONF_OPTS += --without-tempmon +else +WATCHDOGD_CONF_OPTS += --with-tempmon endif define WATCHDOGD_INSTALL_INIT_SYSV