Skip to content

Commit

Permalink
rauc: register systemd service only if configured
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
swaeberle authored and ejoerns committed Aug 7, 2023
1 parent caa2c78 commit d8e2c00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes-core/rauc/rauc-target.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit d8e2c00

Please sign in to comment.