Browse Source

rauc: build without background service

The allows us to drop the RDEPENDS on dbus.
neels/inmarsat
Jan Luebbe 6 years ago
committed by Holger Hans Peter Freyther
parent
commit
20d03de6b2
  1. 12
      recipes-extra/rauc/files/rauc.service
  2. 11
      recipes-extra/rauc/rauc.bb

12
recipes-extra/rauc/files/rauc.service

@ -1,12 +0,0 @@
[Unit]
Description=Rauc Update Service
[Service]
Type=dbus
BusName=de.pengutronix.rauc
#User=root
ExecStart=@BINDIR@/rauc service
[Install]
WantedBy=multi-user.target

11
recipes-extra/rauc/rauc.bb

@ -6,7 +6,6 @@ PR = "r4"
SRC_URI = "git://github.com/jluebbe/rauc.git;protocol=https \
file://dev-ca.pem \
file://system.conf \
file://rauc.service \
file://rauc-done.service \
file://rauc-ubi.rules \
file://system.conf "
@ -14,23 +13,22 @@ PV = "0+git${SRCPV}"
S = "${WORKDIR}/git"
SRCREV = "7904e2e9d17fe0319bc46912e3531cf1b5ed4533"
SRCREV = "cb56cb46412cd25088635394043c9ff8a29c8df5"
DEPENDS = "curl openssl glib-2.0"
RDEPENDS_${PN} += "dbus"
# rauc is invoking these depending the machine
RDEPENDS_${PN}_append_sysmobts-v2 = " barebox-state"
RDEPENDS_${PN}_append_sysmocom-odu = " barebox-state"
RDEPENDS_${PN}_append_sysmocom-bsc = " grub"
EXTRA_OECONF += " ac_cv_prog_MKSQUASHFS=mksquashfs"
FILES_${PN} += "/mnt/rauc"
FILES_${PN} += "${base_libdir}/udev/rules.d/*.rules"
inherit autotools pkgconfig gettext systemd
EXTRA_OECONF = "--disable-service"
do_install_append () {
# Create rauc config dir
mkdir -p ${D}${sysconfdir}/rauc
@ -54,7 +52,6 @@ do_install_append () {
# Systemd service
install -d ${D}${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/rauc.service ${D}${systemd_unitdir}/system/
install -m 0644 ${WORKDIR}/rauc-done.service ${D}${systemd_unitdir}/system/
sed -i -e 's!@BINDIR@!${bindir}!g' ${D}${systemd_unitdir}/system/*.service
@ -64,6 +61,6 @@ do_install_append () {
}
SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE_${PN} = "rauc.service rauc-done.service"
SYSTEMD_SERVICE_${PN} = "rauc-done.service"
SYSTEMD_AUTO_ENABLE_${PN} = "enable"
Loading…
Cancel
Save