Pull request #172: feat(watchdog): enabled watchdog for EAGLE40-03 with 5s timeout

Merge in ICO/coreos from enable_watchdog_with_default_time to master

* commit '5cadfef4893ca09107577bc48306fb4f9255b5b1':
  feat(watchdog): enabled watchdog for EAGLE40-03 with 5s timeout
This commit is contained in:
Darko Trogrlic 2024-03-26 09:54:30 +01:00
commit ca18bbaa0c
4 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,2 @@
CONFIG_F71808E_WDT=y
CONFIG_WATCHDOG_SYSFS=y

View File

@ -4,3 +4,5 @@ KMACHINE:eagle40-03 ?= "common-pc-64"
COMPATIBLE_MACHINE:eagle40-03 = "eagle40-03" COMPATIBLE_MACHINE:eagle40-03 = "eagle40-03"
require ${@bb.utils.contains("COMBINED_FEATURES", "efi", "linux-yocto-coreos-efi.inc", "", d)} require ${@bb.utils.contains("COMBINED_FEATURES", "efi", "linux-yocto-coreos-efi.inc", "", d)}
SRC_URI += " file://eagle40-03.cfg"

View File

@ -0,0 +1,2 @@
[Manager]
RuntimeWatchdogSec=5

View File

@ -1,10 +1,15 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/systemd-conf:"
SRC_URI += " file://system.conf-watchdog"
do_install:append(){ do_install:append(){
# the creation date/time of this file will be used as initial boot time. # the creation date/time of this file will be used as initial boot time.
# Creation time will be set to REPRODUCIBLE_TIMESTAMP_ROOTFS # Creation time will be set to REPRODUCIBLE_TIMESTAMP_ROOTFS
# More info about the date/time handling here: # More info about the date/time handling here:
# https://www.freedesktop.org/software/systemd/man/latest/systemd-timesyncd.service.html # https://www.freedesktop.org/software/systemd/man/latest/systemd-timesyncd.service.html
touch ${D}/${base_libdir}/clock-epoch touch ${D}/${base_libdir}/clock-epoch
install -D -m0644 ${WORKDIR}/system.conf-watchdog ${D}${systemd_unitdir}/system.conf.d/01-${PN}-watchdog.conf
} }
FILES:${PN} += "${base_libdir}/clock-epoch" FILES:${PN} += "${base_libdir}/clock-epoch"