package/systemd: add optional support for backlight
authorGabe Evans <gabe@hashrabbit.co>
Fri, 1 Jul 2016 21:51:05 +0000 (23:51 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 2 Jul 2016 10:34:47 +0000 (12:34 +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 959154ea118b7d4607369fb539804223d2c866d9..46bbd13f2d1d50f4db741f2103ffa7323423672b 100644 (file)
@@ -169,6 +169,14 @@ config BR2_PACKAGE_SYSTEMD_RANDOMSEED
 
          http://www.freedesktop.org/software/systemd/man/systemd-random-seed.service.html
 
+config BR2_PACKAGE_SYSTEMD_BACKLIGHT
+       bool "enable backlight support"
+       help
+         systemd-backlight is a service that restores the display
+         backlight brightness at early boot and saves it at shutdown.
+
+         http://www.freedesktop.org/software/systemd/man/systemd-backlight@.service.html
+
 config BR2_PACKAGE_SYSTEMD_NETWORKD
        bool "enable network manager"
        help
index 5672f00fb30ee463dca055e6bad159ad0ff669e7..98c97c380ed168b9b6fca6822123f172429796fd 100644 (file)
@@ -183,6 +183,12 @@ else
 SYSTEMD_CONF_OPTS += --disable-randomseed
 endif
 
+ifeq ($(BR2_PACKAGE_SYSTEMD_BACKLIGHT),y)
+SYSTEMD_CONF_OPTS += --enable-backlight
+else
+SYSTEMD_CONF_OPTS += --disable-backlight
+endif
+
 ifeq ($(BR2_PACKAGE_SYSTEMD_NETWORKD),y)
 SYSTEMD_CONF_OPTS += --enable-networkd
 define SYSTEMD_INSTALL_RESOLVCONF_HOOK