diff options
author | Jan Remmet <j.remmet@phytec.de> | 2016-07-08 09:49:03 +0200 |
---|---|---|
committer | Enrico Jorns <ejo@pengutronix.de> | 2016-07-08 15:27:46 +0200 |
commit | fd832e149a6014b7489e6749952c4542c93b557b (patch) | |
tree | 2d8f11cdf9db5796f26d4f2e7c797afd969fa04f /recipes-core | |
parent | a9080a71cb08391a71d421b131c15631c4989bdb (diff) | |
download | meta-ptx-fd832e149a6014b7489e6749952c4542c93b557b.tar.gz meta-ptx-fd832e149a6014b7489e6749952c4542c93b557b.tar.xz |
rauc: make service configurable
Make service feature and auto mark-good service configurable
Move systemd units into packages rauc-service and rauc-mark-good
Rdepend on rauc-service if service feature is selected (default)
Rrecommend on rauc-mark-good (default) use BAD_RECOMMENDATIONS to
disable it.
Signed-off-by: Jan Remmet <j.remmet@phytec.de>
Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
Diffstat (limited to 'recipes-core')
-rw-r--r-- | recipes-core/rauc/rauc.inc | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/recipes-core/rauc/rauc.inc b/recipes-core/rauc/rauc.inc index 79211c9..0dc4f87 100644 --- a/recipes-core/rauc/rauc.inc +++ b/recipes-core/rauc/rauc.inc @@ -9,9 +9,17 @@ SRC_URI = "file://rauc.service file://rauc-mark-good.service " DEPENDS = "curl openssl glib-2.0" RDEPENDS_${PN}_class-target = "barebox-state" RRECOMMENDS_${PN} = "squashfs-tools" -RRECOMMENDS_${PN}_class-target = "mtd-utils" +RRECOMMENDS_${PN}_class-target = "mtd-utils ${PN}-mark-good" + +PACKAGES =+ "${PN}-service ${PN}-mark-good" FILES_${PN}_append = " /mnt/rauc" +FILES_${PN}-service = "${sysconfdir}/dbus-1/system.d/de.pengutronix.rauc.conf" +FILES_${PN}-service += "${systemd_unitdir}/system/rauc.service" +FILES_${PN}-mark-good = "${systemd_unitdir}/system/rauc-mark-good.service" + +PACKAGECONFIG ??= "service" +PACKAGECONFIG[service] = "--enable-service,--enable-service=no,,${PN}-service" inherit autotools pkgconfig gettext systemd @@ -70,8 +78,9 @@ do_deploy_append_class-native() { addtask deploy before do_package after do_install -SYSTEMD_PACKAGES = "${PN}" -SYSTEMD_SERVICE_${PN} = "rauc.service rauc-mark-good.service" +SYSTEMD_PACKAGES = "${PN}-service ${PN}-mark-good" +SYSTEMD_SERVICE_${PN}-service = "rauc.service" +SYSTEMD_SERVICE_${PN}-mark-good = "rauc-mark-good.service" SYSTEMD_AUTO_ENABLE_${PN} = "enable" BBCLASSEXTEND = "native nativesdk" |