package/mcelog: install init systemd
authorFrancois Perrad <fperrad@gmail.com>
Sat, 19 Sep 2020 11:11:37 +0000 (13:11 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 19 Sep 2020 12:14:01 +0000 (14:14 +0200)
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/mcelog/mcelog.mk

index dcabc2c96f1c36003c8f5d97e279b53598e94d41..9fbbbfb4d984309c96fd1ad2d0fe84e9e9ec5d02 100644 (file)
@@ -17,4 +17,9 @@ define MCELOG_INSTALL_TARGET_CMDS
        $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) DESTDIR=$(TARGET_DIR) install
 endef
 
+define MCELOG_INSTALL_INIT_SYSTEMD
+       $(INSTALL) -D -m 0644 $(@D)/mcelog.service \
+               $(TARGET_DIR)/usr/lib/systemd/system/mcelog.service
+endef
+
 $(eval $(generic-package))