package/rauc: add systemd service file hook

Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Bartosz Bilas 2019-11-14 11:59:47 +01:00 committed by Thomas Petazzoni
parent 9ae86ebece
commit 61d35fb727

View file

@ -30,6 +30,12 @@ ifeq ($(BR2_PACKAGE_SYSTEMD),y)
RAUC_DEPENDENCIES += systemd
endif
define RAUC_INSTALL_INIT_SYSTEMD
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
ln -sf ../../../../lib/systemd/system/rauc.service \
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/rauc.service
endef
HOST_RAUC_DEPENDENCIES = \
host-pkgconf \
host-openssl \