From: Roy Li <rongqing...@windriver.com>

minicoredumper provides an alternate core dump facility for Linux
to allow minimal and customized crash dumps

Signed-off-by: Roy Li <rongqing...@windriver.com>
---
 .../minicoredumper/files/minicoredumper.service    |  9 ++++++++
 .../minicoredumper/minicoredumper_1.0.2.bb         | 24 ++++++++++++++++++++++
 2 files changed, 33 insertions(+)
 create mode 100644 
meta-oe/recipes-kernel/minicoredumper/files/minicoredumper.service
 create mode 100644 
meta-oe/recipes-kernel/minicoredumper/minicoredumper_1.0.2.bb

diff --git a/meta-oe/recipes-kernel/minicoredumper/files/minicoredumper.service 
b/meta-oe/recipes-kernel/minicoredumper/files/minicoredumper.service
new file mode 100644
index 0000000..161ce88
--- /dev/null
+++ b/meta-oe/recipes-kernel/minicoredumper/files/minicoredumper.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Enable minicoredumper.
+
+[Service]
+Type=oneshot
+ExecStart=/bin/sh -c '/bin/echo "|/usr/bin/minicoredumper %%p %%u %%g %%s %%t 
%%h %%e" > /proc/sys/kernel/core_pattern'
+
+[Install]
+WantedBy=multi-user.target
diff --git a/meta-oe/recipes-kernel/minicoredumper/minicoredumper_1.0.2.bb 
b/meta-oe/recipes-kernel/minicoredumper/minicoredumper_1.0.2.bb
new file mode 100644
index 0000000..6b55732
--- /dev/null
+++ b/meta-oe/recipes-kernel/minicoredumper/minicoredumper_1.0.2.bb
@@ -0,0 +1,24 @@
+SUMMARY = "minicoredumper provides an alternate core dump facility for Linux \
+to allow minimal and customized crash dumps"
+LICENSE = " LGPLv2.1 & BSD"
+LIC_FILES_CHKSUM = "file://COPYING;md5=45445387350de96a0e70410470ee5cab"
+DEPENDS = "elfutils dbus dbus-glib-native glib-2.0 dbus-glib util-linux"
+
+inherit autotools pkgconfig systemd
+
+SRC_URI = "https://linutronix.de/${BPN}/files/${BPN}-${PV}.tar.gz \
+           file://minicoredumper.service \
+"
+SRC_URI[md5sum] = "5ba9d116b52a8e2fb93456260644e753"
+SRC_URI[sha256sum] = 
"1b0eeb3d70dbd2ad6f2f673e4e3446e5dd784e132730e21d8f9dc0977e47dd9a"
+
+SYSTEMD_SERVICE_${PN} = "minicoredumper.service"
+SYSTEMD_AUTO_ENABLE = "enable"
+
+do_install_append() {
+       install -d ${D}/${sysconfdir}/minicoredumper
+       cp -rf ${S}/etc/* ${D}/${sysconfdir}/
+
+       install -d ${D}${systemd_unitdir}/system
+       install -m 0644 ${WORKDIR}/minicoredumper.service 
${D}${systemd_unitdir}/system
+}
-- 
1.9.1

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Reply via email to