summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Seiderer <ps.report@gmx.net>2018-10-30 23:41:39 +0100
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-11-01 14:49:23 +0100
commitf0ea36edc263e940f8a6a2008ae6b21d60e1fb60 (patch)
tree62e5bef1e6391fc78c9eb7c434091263c1a7e16d
parentda9e06cabc578bf9138e100d1492a2d5f2038415 (diff)
downloadbuildroot-f0ea36edc263e940f8a6a2008ae6b21d60e1fb60.tar.gz
buildroot-f0ea36edc263e940f8a6a2008ae6b21d60e1fb60.zip
package/alsa-utils: install systemd service files
Signed-off-by: Peter Seiderer <ps.report@gmx.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/alsa-utils/alsa-utils.mk14
1 files changed, 14 insertions, 0 deletions
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))
OpenPOWER on IntegriCloud