From 3df9c47d73530c4d9e187fb17e1cb11e09ff631b Mon Sep 17 00:00:00 2001 From: Gabe Evans Date: Fri, 1 Jul 2016 23:51:15 +0200 Subject: [PATCH] package/systemd: add optional support for hibernation Signed-off-by: Gabe Evans Signed-off-by: Maxime Hadjinlian Signed-off-by: Thomas Petazzoni --- package/systemd/Config.in | 8 ++++++++ package/systemd/systemd.mk | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/package/systemd/Config.in b/package/systemd/Config.in index 80796d2190..dcabf3b456 100644 --- a/package/systemd/Config.in +++ b/package/systemd/Config.in @@ -314,4 +314,12 @@ config BR2_PACKAGE_SYSTEMD_SMACK_SUPPORT When this feature is enabled, Systemd mounts smackfs and manages security labels for sockets. +config BR2_PACKAGE_SYSTEMD_HIBERNATE + bool "enable hibernation support" + help + When this features is enabled, additional tools and services + are built to support suspending and resuming the system. + + http://www.freedesktop.org/software/systemd/man/systemd-sleep.html + endif diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk index 5b0aa01b95..96c34a4c99 100644 --- a/package/systemd/systemd.mk +++ b/package/systemd/systemd.mk @@ -277,6 +277,12 @@ else SYSTEMD_CONF_OPTS += --disable-smack endif +ifeq ($(BR2_PACKAGE_SYSTEMD_HIBERNATE),y) +SYSTEMD_CONF_OPTS += --enable-hibernate +else +SYSTEMD_CONF_OPTS += --disable-hibernate +endif + # mq_getattr needs -lrt SYSTEMD_MAKE_OPTS += LIBS=-lrt SYSTEMD_MAKE_OPTS += LDFLAGS+=-ldl -- 2.30.2