diff --git a/recipes-bsp/watchdog/watchdog-5.9/sysmobts-v1/watchdog.conf b/recipes-bsp/watchdog/watchdog-5.9/sysmobts-v1/watchdog.conf new file mode 100644 index 0000000..2209e90 --- /dev/null +++ b/recipes-bsp/watchdog/watchdog-5.9/sysmobts-v1/watchdog.conf @@ -0,0 +1,41 @@ +#ping = 172.31.14.1 +#ping = 172.26.1.255 +#interface = eth0 +#file = /var/log/messages +#change = 1407 + +# Uncomment to enable test. Setting one of these values to '0' disables it. +# These values will hopefully never reboot your machine during normal use +# (if your machine is really hung, the loadavg will go much higher than 25) +#max-load-1 = 24 +#max-load-5 = 18 +#max-load-15 = 12 + +# Note that this is the number of pages! +# To get the real size, check how large the pagesize is on your machine. +#min-memory = 1 + +#repair-binary = /usr/sbin/repair +#repair-timeout = +#test-binary = +#test-timeout = + +watchdog-device = /dev/watchdog + +# Defaults compiled into the binary +#temperature-device = +#max-temperature = 120 + +# Defaults compiled into the binary +#admin = root +#interval = 1 +#logtick = 1 +#log-dir = /var/log/watchdog + +# This greatly decreases the chance that watchdog won't be scheduled before +# your machine is really loaded +realtime = yes +priority = 1 + +# Check if syslogd is still running by enabling the following line +#pidfile diff --git a/recipes-bsp/watchdog/watchdog-5.9/sysmobts-v2/watchdog.conf b/recipes-bsp/watchdog/watchdog-5.9/sysmobts-v2/watchdog.conf new file mode 100644 index 0000000..2209e90 --- /dev/null +++ b/recipes-bsp/watchdog/watchdog-5.9/sysmobts-v2/watchdog.conf @@ -0,0 +1,41 @@ +#ping = 172.31.14.1 +#ping = 172.26.1.255 +#interface = eth0 +#file = /var/log/messages +#change = 1407 + +# Uncomment to enable test. Setting one of these values to '0' disables it. +# These values will hopefully never reboot your machine during normal use +# (if your machine is really hung, the loadavg will go much higher than 25) +#max-load-1 = 24 +#max-load-5 = 18 +#max-load-15 = 12 + +# Note that this is the number of pages! +# To get the real size, check how large the pagesize is on your machine. +#min-memory = 1 + +#repair-binary = /usr/sbin/repair +#repair-timeout = +#test-binary = +#test-timeout = + +watchdog-device = /dev/watchdog + +# Defaults compiled into the binary +#temperature-device = +#max-temperature = 120 + +# Defaults compiled into the binary +#admin = root +#interval = 1 +#logtick = 1 +#log-dir = /var/log/watchdog + +# This greatly decreases the chance that watchdog won't be scheduled before +# your machine is really loaded +realtime = yes +priority = 1 + +# Check if syslogd is still running by enabling the following line +#pidfile diff --git a/recipes-bsp/watchdog/watchdog_5.9.bbappend b/recipes-bsp/watchdog/watchdog_5.9.bbappend new file mode 100644 index 0000000..dc58997 --- /dev/null +++ b/recipes-bsp/watchdog/watchdog_5.9.bbappend @@ -0,0 +1,16 @@ +SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" +FILESEXTRAPATHS_prepend := "${SYSMOCOM}/${PN}-${PV}:" +PRINC = "2" + +SRC_URI_append_sysmobts-v1 = " file://watchdog.conf" +SRC_URI_append_sysmobts-v2 = " file://watchdog.conf" + +do_install_append() { + + if [ -e ${WORKDIR}/watchdog.conf ]; then + install -D -m 0644 ${WORKDIR}/watchdog.conf ${D}/${sysconfdir}/ + fi +} + +# bug in poky meta/classes/base.bbclass? +PACKAGE_ARCH = "${MACHINE_ARCH}"