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