package/systemd: add optional support for logind
authorGabe Evans <gabe@hashrabbit.co>
Fri, 1 Jul 2016 21:51:07 +0000 (23:51 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 2 Jul 2016 10:35:55 +0000 (12:35 +0200)
Signed-off-by: Gabe Evans <gabe@hashrabbit.co>
Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/systemd/Config.in
package/systemd/systemd.mk

index c3a1d004e463ce54da8270f3b97f694f1325df1a..c2499e6713376644ea24d261139cb5dc95129078 100644 (file)
@@ -185,6 +185,13 @@ config BR2_PACKAGE_SYSTEMD_RFKILL
 
          http://www.freedesktop.org/software/systemd/man/systemd-rfkill@.service.html
 
+config BR2_PACKAGE_SYSTEMD_LOGIND
+       bool "enable login daemon"
+       help
+         systemd-logind is a system service that manages user logins.
+
+         http://www.freedesktop.org/software/systemd/man/systemd-logind.service.html
+
 config BR2_PACKAGE_SYSTEMD_NETWORKD
        bool "enable network manager"
        help
index edd72c109e0b15c15b27f13effbce4ed782b986b..93b56fc3425fde515cc2db10d209c3eb4562cc75 100644 (file)
@@ -195,6 +195,12 @@ else
 SYSTEMD_CONF_OPTS += --disable-rfkill
 endif
 
+ifeq ($(BR2_PACKAGE_SYSTEMD_LOGIND),y)
+SYSTEMD_CONF_OPTS += --enable-logind
+else
+SYSTEMD_CONF_OPTS += --disable-logind
+endif
+
 ifeq ($(BR2_PACKAGE_SYSTEMD_NETWORKD),y)
 SYSTEMD_CONF_OPTS += --enable-networkd
 define SYSTEMD_INSTALL_RESOLVCONF_HOOK