From: John Ogness <john.ogness@linutronix.de>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH] add minicoredumper tool/libs
Date: Wed, 30 Nov 2016 17:39:58 +0100 [thread overview]
Message-ID: <87oa0wly5d.fsf@linutronix.de> (raw)
The minicoredumper project provides tools and libraries for extending
the Linux core dump facility in order to produce very small and highlx
customizable core dumps. This is particularly interesting for embedded
projects.
Signed-off-by: John Ogness <john.ogness@linutronix.de>
---
.../minicoredumper/remove-script-deps.patch | 22 +++++++
.../minicoredumper/minicoredumper_2.0.0.bb | 73 ++++++++++++++++++++++
2 files changed, 95 insertions(+)
create mode 100644 meta/recipes-extended/minicoredumper/minicoredumper/remove-script-deps.patch
create mode 100644 meta/recipes-extended/minicoredumper/minicoredumper_2.0.0.bb
diff --git a/meta/recipes-extended/minicoredumper/minicoredumper/remove-script-deps.patch b/meta/recipes-extended/minicoredumper/minicoredumper/remove-script-deps.patch
new file mode 100644
index 0000000..bcb64af
--- /dev/null
+++ b/meta/recipes-extended/minicoredumper/minicoredumper/remove-script-deps.patch
@@ -0,0 +1,22 @@
+--- a/etc/init.d/minicoredumper.in 2016-11-22 10:44:28.060000000 +0000
++++ b/etc/init.d/minicoredumper.in 2016-11-22 10:49:24.656000000 +0000
+@@ -33,13 +33,13 @@
+ # Read configuration variable file if it is present
+ [ -r @initdefaultsdir@/$NAME ] && . @initdefaultsdir@/$NAME
+
+-# Load the VERBOSE setting and other rcS variables
+-. /lib/init/vars.sh
++log_daemon_msg() {
++ echo "$@"
++}
+
+-# Define LSB log_* functions.
+-# Depend on lsb-base (>= 3.2-14) to ensure that this file is present
+-# and status_of_proc is working.
+-. /lib/lsb/init-functions
++log_end_msg() {
++ [ $1 -eq 0 ] || echo "$NAME: failed"
++}
+
+ #
+ # Function that starts the daemon/service
diff --git a/meta/recipes-extended/minicoredumper/minicoredumper_2.0.0.bb b/meta/recipes-extended/minicoredumper/minicoredumper_2.0.0.bb
new file mode 100644
index 0000000..7f7d5e2
--- /dev/null
+++ b/meta/recipes-extended/minicoredumper/minicoredumper_2.0.0.bb
@@ -0,0 +1,73 @@
+SUMMARY = "generate minimal and customized core dump files on Linux"
+DESCRIPTION = "minicoredumper is 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."
+HOMEPAGE = "https://www.linutronix.de/minicoredumper"
+BUGTRACKER = "https://bugs.linuxfoundation.org/buglist.cgi?product=Diamon&component=minicoredumper"
+
+SECTION = "devel"
+
+LICENSE = "BSD-2-Clause & LGPL-2.1"
+LICENSE_minicoredumper = "BSD-2-Clause"
+LICENSE_minicoredumper-utils = "BSD-2-Clause"
+LICENSE_libminicoredumper-dev = "LGPL-2.1"
+LICENSE_libminicoredumper = "LGPL-2.1"
+
+LIC_FILES_CHKSUM = " \
+ file://COPYING;md5=709087c2ed0acda54a4d91497a889e42 \
+ file://COPYING.BSD;md5=b915ac80d5236d6aa659cb986daf00e5 \
+ file://COPYING.LGPLv2.1;md5=321bf41f280cf805086dd5a720b37785 \
+ "
+
+DEPENDS = "elfutils json-c pkgconfig"
+RDEPENDS_${PN} = "base-files"
+
+SRC_URI = " \
+ https://linutronix.de/minicoredumper/files/minicoredumper-${PV}.tar.xz \
+ file://remove-script-deps.patch \
+ "
+
+SRC_URI[md5sum] = "543001b51de20a8b17fce462a7dfa377"
+SRC_URI[sha256sum] = "6b5355f94b8ba676515b4243752f231ace200dbb9195065bc2fdd397ae20d8c5"
+
+PACKAGECONFIG ??= ""
+
+EXTRA_OECONF = ""
+
+PACKAGES += "minicoredumper-utils libminicoredumper-dev libminicoredumper"
+
+FILES_${PN} = " \
+ ${sbindir}/minicoredumper \
+ ${sbindir}/minicoredumper_regd \
+ ${sysconfdir}/minicoredumper \
+ ${sysconfdir}/init.d \
+ ${sysconfdir}/default \
+ ${localstatedir}/crash \
+ ${localstatedir}/run \
+ /run \
+ "
+FILES_minicoredumper-utils = " \
+ ${bindir}/coreinject \
+ ${sbindir}/minicoredumper_trigger \
+ "
+FILES_libminicoredumper-dev = " \
+ ${includedir}/* \
+ ${libdir}/lib*.a \
+ ${libdir}/lib*.la \
+ ${libdir}/lib*.so \
+ ${libdir}/pkgconfig/* \
+ "
+FILES_${PN}-dbg = " \
+ ${libdir}/.debug \
+ ${bindir}/.debug \
+ ${sbindir}/.debug \
+ ${prefix}/src/debug \
+ "
+FILES_libminicoredumper = "${libdir}/lib*.so.*"
+FILES_libminicoredumper-doc = "${mandir}/*/*"
+
+INITSCRIPT_NAME = "minicoredumper"
+INITSCRIPT_PARAMS = "defaults 8"
+
+inherit autotools update-rc.d
--
2.1.4
reply other threads:[~2016-11-30 17:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87oa0wly5d.fsf@linutronix.de \
--to=john.ogness@linutronix.de \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox