[Buildroot] [git commit branch/2019.02.x] package/systemd-bootchart: enable systemd-bootchart.service

Peter Korsgaard peter at korsgaard.com
Thu Sep 26 09:26:35 UTC 2019


commit: https://git.buildroot.net/buildroot/commit/?id=060dbfc2f1a2a94cb79a5095865502f13de53fda
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2019.02.x

This would normally be enabled by systemctl preset-all however since we
don't have a host systemctl we need to enable the service manually.

Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit b81e00e2ed483e1f3079181b5fdb324da0f6d6ad)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/systemd-bootchart/systemd-bootchart.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/systemd-bootchart/systemd-bootchart.mk b/package/systemd-bootchart/systemd-bootchart.mk
index bcc3dbe22a..62bc79539b 100644
--- a/package/systemd-bootchart/systemd-bootchart.mk
+++ b/package/systemd-bootchart/systemd-bootchart.mk
@@ -16,4 +16,10 @@ SYSTEMD_BOOTCHART_DEPENDENCIES = systemd
 
 SYSTEMD_BOOTCHART_CONF_OPTS = --disable-man
 
+define SYSTEMD_BOOTCHART_INSTALL_INIT_SYSTEMD
+	mkdir -p $(TARGET_DIR)/etc/systemd/system/sysinit.target.wants
+	ln -sf ../../../../lib/systemd/system/systemd-bootchart.service \
+		$(TARGET_DIR)/etc/systemd/system/sysinit.target.wants/systemd-bootchart.service
+endef
+
 $(eval $(autotools-package))


More information about the buildroot mailing list