From d8e2c00e3d167f6361e4b8702ec10ac61ce151d8 Mon Sep 17 00:00:00 2001 From: Stephan Wurm Date: Wed, 26 Jul 2023 12:26:52 +0200 Subject: [PATCH] rauc: register systemd service only if configured When the PACKAGECONFIG did not include service, bitbake was failing with ERROR: rauc-1.10-r0 do_package: Didn't find service unit 'rauc.service', specified in SYSTEMD_SERVICE:rauc-service. Fixed this by setting the SYSTEMD_SERVICE variable only when the corresponding service flag in the PACKAGCONFIG variable is also set. Signed-off-by: Stephan Wurm --- recipes-core/rauc/rauc-target.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-core/rauc/rauc-target.inc b/recipes-core/rauc/rauc-target.inc index 101104ba..164714d4 100644 --- a/recipes-core/rauc/rauc-target.inc +++ b/recipes-core/rauc/rauc-target.inc @@ -71,7 +71,7 @@ RRECOMMENDS:${PN}:append = " ${PN}-mark-good" FILES:${PN}-mark-good = "${systemd_unitdir}/system/rauc-mark-good.service ${sysconfdir}/init.d/rauc-mark-good" PACKAGES =+ "${PN}-service" -SYSTEMD_SERVICE:${PN}-service = "rauc.service" +SYSTEMD_SERVICE:${PN}-service = "${@bb.utils.contains('PACKAGECONFIG', 'service', 'rauc.service', '', d)}" SYSTEMD_PACKAGES += "${PN}-service" RDEPENDS:${PN}-service += "dbus"