Files
meta-st-stm32mp/recipes-core/systemd/systemd-conf_%.bbappend
T
Romuald JEANNE 0789e57e89 SYSTEMD: use generic bb file
Change-Id: Ie8f2934be96790b7b1e4cd94e8141421c64a480e
2020-06-23 17:23:50 +02:00

10 lines
504 B
Plaintext

do_install_append_stm32mpcommon() {
# enable watchdog on systemd configuration
if ${@bb.utils.contains('MACHINE_FEATURES','watchdog','true','false',d)}; then
install -d ${D}${systemd_unitdir}/system.conf.d/
echo "[Manager]" > ${D}${systemd_unitdir}/system.conf.d/01-watchdog.conf
echo "RuntimeWatchdogSec=32" >> ${D}${systemd_unitdir}/system.conf.d/01-watchdog.conf
echo "ShutdownWatchdogSec=2min" >> ${D}${systemd_unitdir}/system.conf.d/01-watchdog.conf
fi
}