package/systemd: add optional support for hibernation

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>
This commit is contained in:
Gabe Evans 2016-07-01 23:51:15 +02:00 committed by Thomas Petazzoni
parent 9a9e440b8e
commit 3df9c47d73
2 changed files with 14 additions and 0 deletions

View File

@ -314,4 +314,12 @@ config BR2_PACKAGE_SYSTEMD_SMACK_SUPPORT
When this feature is enabled, Systemd mounts smackfs and manages When this feature is enabled, Systemd mounts smackfs and manages
security labels for sockets. 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 endif

View File

@ -277,6 +277,12 @@ else
SYSTEMD_CONF_OPTS += --disable-smack SYSTEMD_CONF_OPTS += --disable-smack
endif endif
ifeq ($(BR2_PACKAGE_SYSTEMD_HIBERNATE),y)
SYSTEMD_CONF_OPTS += --enable-hibernate
else
SYSTEMD_CONF_OPTS += --disable-hibernate
endif
# mq_getattr needs -lrt # mq_getattr needs -lrt
SYSTEMD_MAKE_OPTS += LIBS=-lrt SYSTEMD_MAKE_OPTS += LIBS=-lrt
SYSTEMD_MAKE_OPTS += LDFLAGS+=-ldl SYSTEMD_MAKE_OPTS += LDFLAGS+=-ldl