mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH v3] minicoredumper: New package
@ 2018-10-23 13:28 Uwe Kleine-König
  2018-10-23 13:37 ` Alexander Dahl
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Kleine-König @ 2018-10-23 13:28 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
Changes since v2, sent with Message-Id:
20180814161539.16983-1-u.kleine-koenig@pengutronix.de:

 - drop $(call install_copy, minicoredumper, 0, 0, 0755, /var/crash)

 rules/minicoredumper.in   | 21 ++++++++++++
 rules/minicoredumper.make | 68 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 89 insertions(+)
 create mode 100644 rules/minicoredumper.in
 create mode 100644 rules/minicoredumper.make

diff --git a/rules/minicoredumper.in b/rules/minicoredumper.in
new file mode 100644
index 000000000000..969be8210c88
--- /dev/null
+++ b/rules/minicoredumper.in
@@ -0,0 +1,21 @@
+## SECTION=shell_and_console
+
+config MINICOREDUMPER
+	bool
+	prompt "minicoredumper"
+	select LIBELF
+	select JSON_C
+	help
+	  The minicoredumper project provides a program that handles the
+	  creation of core dump files on Linux. It can produce much smaller
+	  core dump files by making use of sparse files, compression, and
+	  allowing the user to configure what parts of the process memory image
+	  should be dumped.
+
+	  Note that there are currently no mechnisms integrated to
+	  automatically register minicoredumper as kernel coredump helper. So
+	  you might want to do
+
+	  	echo '|/usr/sbin/minicoredumper %P %u %g %s %t %h %e' > /proc/sys/kernel/core_pattern
+
+	  by hand to actually make use of it.
diff --git a/rules/minicoredumper.make b/rules/minicoredumper.make
new file mode 100644
index 000000000000..af01ece49805
--- /dev/null
+++ b/rules/minicoredumper.make
@@ -0,0 +1,68 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2018 by Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_MINICOREDUMPER) += minicoredumper
+
+#
+# Paths and names
+#
+MINICOREDUMPER_VERSION	:= 2.0.1
+MINICOREDUMPER_MD5	:= 813b864e0c6a833d14bab244723de6a4
+MINICOREDUMPER		:= minicoredumper-$(MINICOREDUMPER_VERSION)
+MINICOREDUMPER_SUFFIX	:= tar.xz
+MINICOREDUMPER_URL	:= https://linutronix.de/minicoredumper/files/$(MINICOREDUMPER).$(MINICOREDUMPER_SUFFIX)
+MINICOREDUMPER_SOURCE	:= $(SRCDIR)/$(MINICOREDUMPER).$(MINICOREDUMPER_SUFFIX)
+MINICOREDUMPER_DIR	:= $(BUILDDIR)/$(MINICOREDUMPER)
+MINICOREDUMPER_LICENSE	:= BSD AND LGPL-2.1
+MINICOREDUMPER_LICENSE_FILES := file://COPYING;md5=71827c617ec7b45a0dd23658347cc1e9
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+MINICOREDUMPER_CONF_TOOL := autoconf
+MINICOREDUMPER_CONF_OPT := \
+	$(CROSS_AUTOCONF_USR) \
+	--disable-silent-rules \
+	--without-coreinject \
+	--with-minicoredumper \
+	--without-minicoredumper_regd \
+	--without-minicoredumper_trigger \
+	--without-libminicoredumper \
+	--without-minicoredumper_demo \
+	--without-werror \
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/minicoredumper.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, minicoredumper)
+	@$(call install_fixup, minicoredumper, PRIORITY, optional)
+	@$(call install_fixup, minicoredumper, SECTION, base)
+	@$(call install_fixup, minicoredumper, AUTHOR, "Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>")
+	@$(call install_fixup, minicoredumper, DESCRIPTION, missing)
+
+	@$(call install_copy, minicoredumper, 0, 0, 0755, -, /usr/sbin/minicoredumper)
+
+	@$(call install_alternative_tree, minicoredumper, 0, 0, /etc/minicoredumper)
+
+	@$(call install_copy, minicoredumper, 0, 0, 0755, /var/crash/minicoredumper)
+
+	@$(call install_finish, minicoredumper)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.19.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] [PATCH v3] minicoredumper: New package
  2018-10-23 13:28 [ptxdist] [PATCH v3] minicoredumper: New package Uwe Kleine-König
@ 2018-10-23 13:37 ` Alexander Dahl
  0 siblings, 0 replies; 2+ messages in thread
From: Alexander Dahl @ 2018-10-23 13:37 UTC (permalink / raw)
  To: ptxdist; +Cc: Uwe Kleine-König

Hello Uwe,

what about the minor issues I reported with Message-Id 
<4087030.zncrgpGN7O@ada> back in August? ;-)

https://www.mail-archive.com/ptxdist@pengutronix.de/msg13290.html

Greets
Alex

Am Dienstag, 23. Oktober 2018, 15:28:46 CEST schrieb Uwe Kleine-König:
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
> Changes since v2, sent with Message-Id:
> 20180814161539.16983-1-u.kleine-koenig@pengutronix.de:
> 
>  - drop $(call install_copy, minicoredumper, 0, 0, 0755, /var/crash)
> 
>  rules/minicoredumper.in   | 21 ++++++++++++
>  rules/minicoredumper.make | 68 +++++++++++++++++++++++++++++++++++++++
>  2 files changed, 89 insertions(+)
>  create mode 100644 rules/minicoredumper.in
>  create mode 100644 rules/minicoredumper.make
> 
> diff --git a/rules/minicoredumper.in b/rules/minicoredumper.in
> new file mode 100644
> index 000000000000..969be8210c88
> --- /dev/null
> +++ b/rules/minicoredumper.in
> @@ -0,0 +1,21 @@
> +## SECTION=shell_and_console
> +
> +config MINICOREDUMPER
> +	bool
> +	prompt "minicoredumper"
> +	select LIBELF
> +	select JSON_C
> +	help
> +	  The minicoredumper project provides a program that handles the
> +	  creation of core dump files on Linux. It can produce much smaller
> +	  core dump files by making use of sparse files, compression, and
> +	  allowing the user to configure what parts of the process memory image
> +	  should be dumped.
> +
> +	  Note that there are currently no mechnisms integrated to
> +	  automatically register minicoredumper as kernel coredump helper. So
> +	  you might want to do
> +
> +	  	echo '|/usr/sbin/minicoredumper %P %u %g %s %t %h %e' >
> /proc/sys/kernel/core_pattern +
> +	  by hand to actually make use of it.
> diff --git a/rules/minicoredumper.make b/rules/minicoredumper.make
> new file mode 100644
> index 000000000000..af01ece49805
> --- /dev/null
> +++ b/rules/minicoredumper.make
> @@ -0,0 +1,68 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2018 by Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>
> +#
> +# See CREDITS for details about who has contributed to this project.
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_MINICOREDUMPER) += minicoredumper
> +
> +#
> +# Paths and names
> +#
> +MINICOREDUMPER_VERSION	:= 2.0.1
> +MINICOREDUMPER_MD5	:= 813b864e0c6a833d14bab244723de6a4
> +MINICOREDUMPER		:= minicoredumper-$(MINICOREDUMPER_VERSION)
> +MINICOREDUMPER_SUFFIX	:= tar.xz
> +MINICOREDUMPER_URL	:=
> https://linutronix.de/minicoredumper/files/$(MINICOREDUMPER).$(MINICOREDUMP
> ER_SUFFIX) +MINICOREDUMPER_SOURCE	:=
> $(SRCDIR)/$(MINICOREDUMPER).$(MINICOREDUMPER_SUFFIX) +MINICOREDUMPER_DIR	:=
> $(BUILDDIR)/$(MINICOREDUMPER)
> +MINICOREDUMPER_LICENSE	:= BSD AND LGPL-2.1
> +MINICOREDUMPER_LICENSE_FILES :=
> file://COPYING;md5=71827c617ec7b45a0dd23658347cc1e9 +
> +#
> ---------------------------------------------------------------------------
> - +# Prepare
> +#
> ---------------------------------------------------------------------------
> - +
> +MINICOREDUMPER_CONF_TOOL := autoconf
> +MINICOREDUMPER_CONF_OPT := \
> +	$(CROSS_AUTOCONF_USR) \
> +	--disable-silent-rules \
> +	--without-coreinject \
> +	--with-minicoredumper \
> +	--without-minicoredumper_regd \
> +	--without-minicoredumper_trigger \
> +	--without-libminicoredumper \
> +	--without-minicoredumper_demo \
> +	--without-werror \
> +
> +#
> ---------------------------------------------------------------------------
> - +# Target-Install
> +#
> ---------------------------------------------------------------------------
> - +
> +$(STATEDIR)/minicoredumper.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, minicoredumper)
> +	@$(call install_fixup, minicoredumper, PRIORITY, optional)
> +	@$(call install_fixup, minicoredumper, SECTION, base)
> +	@$(call install_fixup, minicoredumper, AUTHOR, "Uwe Kleine-Koenig
> <u.kleine-koenig@pengutronix.de>") +	@$(call install_fixup, 
minicoredumper,
> DESCRIPTION, missing)
> +
> +	@$(call install_copy, minicoredumper, 0, 0, 0755, -,
> /usr/sbin/minicoredumper) +
> +	@$(call install_alternative_tree, minicoredumper, 0, 0,
> /etc/minicoredumper) +
> +	@$(call install_copy, minicoredumper, 0, 0, 0755,
> /var/crash/minicoredumper) +
> +	@$(call install_finish, minicoredumper)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make



_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-10-23 13:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-23 13:28 [ptxdist] [PATCH v3] minicoredumper: New package Uwe Kleine-König
2018-10-23 13:37 ` Alexander Dahl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox