From: Gabe Evans Date: Fri, 1 Jul 2016 21:51:15 +0000 (+0200) Subject: package/systemd: add optional support for hibernation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3df9c47d73530c4d9e187fb17e1cb11e09ff631b;p=buildroot.git package/systemd: add optional support for hibernation Signed-off-by: Gabe Evans Signed-off-by: Maxime Hadjinlian Signed-off-by: Thomas Petazzoni --- 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