From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-qc0-f175.google.com ([209.85.216.175]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1XZCBo-0003aO-RG for ptxdist@pengutronix.de; Wed, 01 Oct 2014 07:11:01 +0200 Received: by mail-qc0-f175.google.com with SMTP id w7so74304qcr.6 for ; Tue, 30 Sep 2014 22:10:09 -0700 (PDT) From: jon@ringle.org Date: Wed, 1 Oct 2014 01:09:57 -0400 Message-Id: <1412140197-32021-2-git-send-email-jon@ringle.org> In-Reply-To: <1412140197-32021-1-git-send-email-jon@ringle.org> References: <1412140197-32021-1-git-send-email-jon@ringle.org> Subject: [ptxdist] [PATCH v3 2/2] systemd: PTXCONF_SYSTEMD_COREDUMP Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Jon Ringle From: Jon Ringle Allow coredumpctl to be built and installed to debug crashing systemd services Signed-off-by: Jon Ringle --- rules/systemd.in | 6 ++++++ rules/systemd.make | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/rules/systemd.in b/rules/systemd.in index ba69d8b..b6cdc1b 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 51ffcac..110f6a5 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 \ -- 1.8.5.4 -- ptxdist mailing list ptxdist@pengutronix.de