diff options
author | Changqing Li <changqing.li@windriver.com> | 2025-02-10 11:30:48 +0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2025-03-03 08:00:21 -0500 |
commit | 653a615bc97475297a1f6c0449f4297ba24c0c08 (patch) | |
tree | 5d248032626773dad1ea65898e3459a12810e035 | |
parent | 0468aae77fe828a7a0018669a7f9834fcdc41269 (diff) | |
download | meta-openembedded-653a615bc97475297a1f6c0449f4297ba24c0c08.tar.gz |
dlt-daemon: make DLT_WatchdogSec configurable
On slow system, dlt service may fail since watchdog timeout, backport a
patch to make DLT_WatchdogSec configurable, so that this service can
start successfully during boot.
(cherry-picked from 1cf77003036049533fbda22b96c7fbad1cc693f9)
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0001-CMakeLists-txt-make-DLT_WatchdogSec-can-be-set-by-user.patch | 40 | ||||
-rw-r--r-- | meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.10.bb | 1 |
2 files changed, 41 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0001-CMakeLists-txt-make-DLT_WatchdogSec-can-be-set-by-user.patch b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0001-CMakeLists-txt-make-DLT_WatchdogSec-can-be-set-by-user.patch new file mode 100644 index 0000000000..335872c40f --- /dev/null +++ b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0001-CMakeLists-txt-make-DLT_WatchdogSec-can-be-set-by-user.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | From bc03f142507da92add8ba325fdf8187d47a7d719 Mon Sep 17 00:00:00 2001 | ||
2 | From: Changqing Li <changqing.li@windriver.com> | ||
3 | Date: Fri, 13 Dec 2024 16:37:24 +0800 | ||
4 | Subject: [PATCH] CMakeLists.txt: make DLT_WatchdogSec can be set by user | ||
5 | |||
6 | In my test env, WatchdogSec default value 2 is not enough, manually | ||
7 | changed to 3 is ok. This makes dlt.service/dlt-system.service start | ||
8 | failed during boot time. So, make DLT_WatchdogSec can be set by user, so | ||
9 | user can set them to proper value at build time, then service can start | ||
10 | successfully in boot time. | ||
11 | |||
12 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
13 | |||
14 | Upstream-Status: Backport [https://github.com/COVESA/dlt-daemon/pull/720/commits/bc03f142507da92add8ba325fdf8187d47a7d719] | ||
15 | |||
16 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
17 | --- | ||
18 | systemd/CMakeLists.txt | 8 ++++++-- | ||
19 | 1 file changed, 6 insertions(+), 2 deletions(-) | ||
20 | |||
21 | diff --git a/systemd/CMakeLists.txt b/systemd/CMakeLists.txt | ||
22 | index 16cbe86b5..659378d16 100644 | ||
23 | --- a/systemd/CMakeLists.txt | ||
24 | +++ b/systemd/CMakeLists.txt | ||
25 | @@ -18,10 +18,14 @@ if(WITH_SYSTEMD) | ||
26 | set(SYSTEMD_CONFIGURATIONS_FILES_DIR ${SYSTEMD_UNITDIR} ) | ||
27 | |||
28 | if(WITH_SYSTEMD_WATCHDOG) | ||
29 | - set( DLT_WatchdogSec 2 ) | ||
30 | + if(NOT DEFINED DLT_WatchdogSec) | ||
31 | + set(DLT_WatchdogSec 2 CACHE STRING "Watchdog timeout in seconds") | ||
32 | + endif() | ||
33 | message( STATUS "The systemd watchdog is enabled - timeout is set to ${DLT_WatchdogSec} seconds") | ||
34 | else(WITH_SYSTEMD_WATCHDOG) | ||
35 | - set( DLT_WatchdogSec 0 ) | ||
36 | + if(NOT DEFINED DLT_WatchdogSec) | ||
37 | + set(DLT_WatchdogSec 0 CACHE STRING "Watchdog timeout in seconds") | ||
38 | + endif() | ||
39 | message( STATUS "The systemd watchdog is disabled") | ||
40 | endif(WITH_SYSTEMD_WATCHDOG) | ||
diff --git a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.10.bb b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.10.bb index 3d2e4a73f1..888289b357 100644 --- a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.10.bb +++ b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.10.bb | |||
@@ -19,6 +19,7 @@ SRC_URI = "git://github.com/COVESA/${BPN}.git;protocol=https;branch=master \ | |||
19 | file://0004-Modify-systemd-config-directory.patch \ | 19 | file://0004-Modify-systemd-config-directory.patch \ |
20 | file://544.patch \ | 20 | file://544.patch \ |
21 | file://567.patch \ | 21 | file://567.patch \ |
22 | file://0001-CMakeLists-txt-make-DLT_WatchdogSec-can-be-set-by-user.patch \ | ||
22 | " | 23 | " |
23 | SRCREV = "0f2d4cfffada6f8448a2cb27995b38eb4271044f" | 24 | SRCREV = "0f2d4cfffada6f8448a2cb27995b38eb4271044f" |
24 | 25 | ||