All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH][meta-oe] minicoredumper: add the recipe
Date: Tue, 12 Apr 2016 11:07:10 +0200	[thread overview]
Message-ID: <20160412090710.GC2564@jama> (raw)
In-Reply-To: <1459318294-8974-1-git-send-email-rongqing.li@windriver.com>

[-- Attachment #1: Type: text/plain, Size: 2873 bytes --]

On Wed, Mar 30, 2016 at 02:11:34PM +0800, rongqing.li@windriver.com wrote:
> From: Roy Li <rongqing.li@windriver.com>
> 
> minicoredumper provides an alternate core dump facility for Linux
> to allow minimal and customized crash dumps
> 
> Signed-off-by: Roy Li <rongqing.li@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

Use 4 spaces for indentation.

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

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

  reply	other threads:[~2016-04-12  9:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-30  6:11 [PATCH][meta-oe] minicoredumper: add the recipe rongqing.li
2016-04-12  9:07 ` Martin Jansa [this message]
2016-07-22  3:01   ` Huang, Jie (Jackie)

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=20160412090710.GC2564@jama \
    --to=martin.jansa@gmail.com \
    --cc=openembedded-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.