package/systemd: add optional support for coredump

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:13 +02:00 committed by Thomas Petazzoni
parent b663089078
commit 08e672fff3
2 changed files with 16 additions and 0 deletions

View File

@ -244,6 +244,15 @@ config BR2_PACKAGE_SYSTEMD_LOCALED
http://www.freedesktop.org/software/systemd/man/systemd-localed.service.html http://www.freedesktop.org/software/systemd/man/systemd-localed.service.html
config BR2_PACKAGE_SYSTEMD_COREDUMP
bool "enable coredump hook"
help
systemd-coredump can be used as a helper binary by the
kernel when a user space program receives a fatal signal and
dumps core.
http://www.freedesktop.org/software/systemd/man/systemd-coredump.html
config BR2_PACKAGE_SYSTEMD_NETWORKD config BR2_PACKAGE_SYSTEMD_NETWORKD
bool "enable network manager" bool "enable network manager"
help help

View File

@ -231,6 +231,12 @@ else
SYSTEMD_CONF_OPTS += --disable-localed SYSTEMD_CONF_OPTS += --disable-localed
endif endif
ifeq ($(BR2_PACKAGE_SYSTEMD_COREDUMP),y)
SYSTEMD_CONF_OPTS += --enable-coredump
else
SYSTEMD_CONF_OPTS += --disable-coredump
endif
ifeq ($(BR2_PACKAGE_SYSTEMD_NETWORKD),y) ifeq ($(BR2_PACKAGE_SYSTEMD_NETWORKD),y)
SYSTEMD_CONF_OPTS += --enable-networkd SYSTEMD_CONF_OPTS += --enable-networkd
define SYSTEMD_INSTALL_RESOLVCONF_HOOK define SYSTEMD_INSTALL_RESOLVCONF_HOOK
@ -289,6 +295,7 @@ SYSTEMD_POST_INSTALL_TARGET_HOOKS += \
SYSTEMD_INSTALL_RESOLVCONF_HOOK SYSTEMD_INSTALL_RESOLVCONF_HOOK
define SYSTEMD_USERS define SYSTEMD_USERS
systemd-coredump -1 systemd-coredump -1 * /var/lib/systemd/coredump - - Core Dumper
systemd-journal -1 systemd-journal -1 * /var/log/journal - - Journal systemd-journal -1 systemd-journal -1 * /var/log/journal - - Journal
systemd-journal-gateway -1 systemd-journal-gateway -1 * /var/log/journal - - Journal Gateway systemd-journal-gateway -1 systemd-journal-gateway -1 * /var/log/journal - - Journal Gateway
systemd-journal-remote -1 systemd-journal-remote -1 * /var/log/journal/remote - - Journal Remote systemd-journal-remote -1 systemd-journal-remote -1 * /var/log/journal/remote - - Journal Remote