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