mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 13:33:09 +07:00
Make sure built-in watchdog is disabled by default
Omitting --without-watchdog caused the watchdog to be enabled. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
+3
-2
@@ -122,7 +122,7 @@ AC_ARG_WITH(random-seed,
|
||||
|
||||
AC_ARG_WITH(watchdog,
|
||||
AS_HELP_STRING([--with-watchdog=[DEV]], [Enable built-in watchdog, default: /dev/watchdog]),
|
||||
[watchdog=$withval],[watchdog=])
|
||||
[watchdog=$withval], [with_watchdog=no watchdog=])
|
||||
|
||||
### Enable features ###########################################################################
|
||||
|
||||
@@ -198,7 +198,8 @@ AS_IF([test "x$with_watchdog" != "xno"], [
|
||||
AS_IF([test "x$watchdog" = "xyes"], [
|
||||
watchdog=/dev/watchdog])
|
||||
with_watchdog=yes
|
||||
AC_DEFINE_UNQUOTED(WDT_DEVNODE, "$watchdog", [Built-in watchdog device node])])
|
||||
AC_DEFINE_UNQUOTED(WDT_DEVNODE, "$watchdog", [Built-in watchdog device node])], [
|
||||
watchdog=])
|
||||
|
||||
# Control build with automake flags
|
||||
AM_CONDITIONAL(STATIC, [test "x$enable_static" = "xyes"])
|
||||
|
||||
Reference in New Issue
Block a user