[Buildroot] [PATCH] package/rauc/rauc.mk: add systemd service file hook

Bartosz Bilas b.bilas at grinn-global.com
Thu Nov 14 10:59:47 UTC 2019


Signed-off-by: Bartosz Bilas <b.bilas at grinn-global.com>
---
 package/rauc/rauc.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/rauc/rauc.mk b/package/rauc/rauc.mk
index a49a580..f3434e9 100644
--- a/package/rauc/rauc.mk
+++ b/package/rauc/rauc.mk
@@ -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 \
-- 
2.11.0



More information about the buildroot mailing list