swupdate: add config fragment to fix systemd initialization

Since commit 554b97a ("swupdate: Set service type to notify") in meta-swupdate
layer, the swupdate service fails on boot due to the following timeout error:

    swupdate.sh[2708]: [TRACE] : SWUPDATE running :  [listener_create] : creating socket at /tmp/swupdateprog
    swupdate.sh[2708]: [TRACE] : SWUPDATE running :  [listener_create] : creating socket at /tmp/sockinstctrl
    systemd[1]: swupdate.service: start operation timed out. Terminating.
    systemd[1]: swupdate.service: Failed with result 'timeout'.
    systemd[1]: Failed to start SWUpdate daemon.

This commit adds a config fragment to enable systemd support to swupdate daemon.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
This commit is contained in:
Arturo Buzarra 2022-11-14 18:44:41 +01:00
parent b7cd473b39
commit 7d9f278c41
2 changed files with 3 additions and 0 deletions

View File

@ -0,0 +1,2 @@
# Add support to systemd
CONFIG_SYSTEMD=y

View File

@ -8,6 +8,7 @@ RDEPENDS:${PN} += "libgcc"
SRC_URI += " \
file://0001-Makefile-change-Makefile-to-build-swupdate-library-s.patch \
file://0002-config-add-on-the-fly-build-configuration-variable.patch \
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'file://systemd.cfg', '', d)} \
"
do_configure:append() {