summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorJon Ringle <jringle@gridpoint.com>2014-10-01 01:09:57 -0400
committerMichael Olbrich <m.olbrich@pengutronix.de>2014-10-01 12:03:31 +0200
commitc2364f2e32872f0d4421e2c036e9cf41c0c869b0 (patch)
tree664ccb6e7f7851a944958ef671d4b43ada7f0104 /rules
parent45c235d9d86b1b31bfe61e59c557235c2ffd415c (diff)
downloadptxdist-c2364f2e32872f0d4421e2c036e9cf41c0c869b0.tar.gz
ptxdist-c2364f2e32872f0d4421e2c036e9cf41c0c869b0.tar.xz
systemd: PTXCONF_SYSTEMD_COREDUMPptxdist-2014.10.0
Allow coredumpctl to be built and installed to debug crashing systemd services Signed-off-by: Jon Ringle <jringle@gridpoint.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules')
-rw-r--r--rules/systemd.in6
-rw-r--r--rules/systemd.make3
2 files changed, 8 insertions, 1 deletions
diff --git a/rules/systemd.in b/rules/systemd.in
index ba69d8b0a..b6cdc1bbf 100644
--- a/rules/systemd.in
+++ b/rules/systemd.in
@@ -81,5 +81,11 @@ config SYSTEMD_TIMEDATE
help
NTP client for time synchronization and local timezone handling.
+config SYSTEMD_COREDUMP
+ bool
+ prompt "enable generating coredumps"
+ help
+ Enable this only if you need to debug a crashing systemd service
+
endif
diff --git a/rules/systemd.make b/rules/systemd.make
index ff3d6068f..6a7bf3a94 100644
--- a/rules/systemd.make
+++ b/rules/systemd.make
@@ -102,7 +102,7 @@ SYSTEMD_CONF_OPT := \
--$(call ptx/endis,PTXCONF_SYSTEMD_TIMEDATE)-timedated \
--$(call ptx/endis,PTXCONF_SYSTEMD_TIMEDATE)-timesyncd \
--$(call ptx/endis,PTXCONF_SYSTEMD_LOCALES)-localed \
- --disable-coredump \
+ --$(call ptx/endis,PTXCONF_SYSTEMD_COREDUMP)-coredump \
--disable-polkit \
--$(call ptx/endis,PTXCONF_SYSTEMD_NETWORK)-resolved \
--$(call ptx/endis,PTXCONF_SYSTEMD_NETWORK)-networkd \
@@ -170,6 +170,7 @@ SYSTEMD_HELPER := \
systemd-bootchart \
systemd-bus-proxyd \
systemd-cgroups-agent \
+ $(call ptx/ifdef, PTXCONF_SYSTEMD_COREDUMP,systemd-coredump,) \
systemd-fsck \
systemd-hostnamed \
systemd-initctl \