[Buildroot] [git commit] package/alsa-utils: install systemd service files
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Thu Nov 1 13:49:23 UTC 2018
commit: https://git.buildroot.net/buildroot/commit/?id=f0ea36edc263e940f8a6a2008ae6b21d60e1fb60
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Signed-off-by: Peter Seiderer <ps.report at gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
package/alsa-utils/alsa-utils.mk | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/package/alsa-utils/alsa-utils.mk b/package/alsa-utils/alsa-utils.mk
index e9a45c675f..0c65082a14 100644
--- a/package/alsa-utils/alsa-utils.mk
+++ b/package/alsa-utils/alsa-utils.mk
@@ -82,4 +82,18 @@ define ALSA_UTILS_INSTALL_TARGET_CMDS
fi
endef
+ifeq ($(BR2_PACKAGE_ALSA_UTILS_ALSACTL),y)
+define ALSA_UTILS_INSTALL_INIT_SYSTEMD
+ $(INSTALL) -D -m 0644 $(@D)/alsactl/alsa-restore.service \
+ $(TARGET_DIR)/usr/lib/systemd/system/alsa-restore.service
+ $(INSTALL) -D -m 0644 $(@D)/alsactl/alsa-state.service \
+ $(TARGET_DIR)/usr/lib/systemd/system/alsa-state.service
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/sound.target.wants
+ ln -sf ../../../../lib/systemd/system/alsa-restore.service \
+ $(TARGET_DIR)/etc/systemd/system/sound.target.wants/alsa-restore.service
+ ln -sf ../../../../lib/systemd/system/alsa-state.service \
+ $(TARGET_DIR)/etc/systemd/system/sound.target.wants/alsa-state.service
+endef
+endif
+
$(eval $(autotools-package))
More information about the buildroot
mailing list